本文整理汇总了Java中com.intellij.xdebugger.breakpoints.XBreakpoint.getProperties方法的典型用法代码示例。如果您正苦于以下问题:Java XBreakpoint.getProperties方法的具体用法?Java XBreakpoint.getProperties怎么用?Java XBreakpoint.getProperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.xdebugger.breakpoints.XBreakpoint
的用法示例。
在下文中一共展示了XBreakpoint.getProperties方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getText
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
static String getText(XBreakpoint<JavaMethodBreakpointProperties> breakpoint) {
final StringBuilder buffer = StringBuilderSpinAllocator.alloc();
try {
//if(isValid()) {
final String className = breakpoint.getProperties().myClassPattern;
final boolean classNameExists = className != null && className.length() > 0;
if (classNameExists) {
buffer.append(className);
}
if(breakpoint.getProperties().myMethodName != null) {
if (classNameExists) {
buffer.append(".");
}
buffer.append(breakpoint.getProperties().myMethodName);
}
//}
//else {
// buffer.append(DebuggerBundle.message("status.breakpoint.invalid"));
//}
return buffer.toString();
}
finally {
StringBuilderSpinAllocator.dispose(buffer);
}
}
示例2: setStateToDisabled
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
/**
* Called when the server records a new snapshot, we find the IDE representation and disable it.
*/
public void setStateToDisabled(@NotNull Breakpoint serverBreakpoint) {
final XBreakpoint ideBreakpoint = ideBreakpoints.get(serverBreakpoint.getId());
if (ideBreakpoint != null
&& ideBreakpoint.getProperties() instanceof CloudLineBreakpointProperties) {
CloudLineBreakpointProperties properties =
(CloudLineBreakpointProperties) ideBreakpoint.getProperties();
properties.setDisabledByServer(true);
SwingUtilities.invokeLater(
new Runnable() {
@Override
public void run() {
ideBreakpoint.setEnabled(false);
}
});
}
}
示例3: createBreakpoint
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
/**
* Factory method that creates and returns a {@link Breakpoint} from a given
* {@link XBreakpoint}.
*/
public static Breakpoint createBreakpoint(XBreakpoint breakpoint) {
Breakpoint result = new Breakpoint(breakpoint.hashCode(),
BreakpointClassifier.classify(breakpoint));
// Initialize enabled and SuspendPolicy fields.
result.setEnabled(breakpoint.isEnabled());
result.setSuspendPolicy(breakpoint.getSuspendPolicy().ordinal());
// Initialize hit count field.
result.setHitCount(-1);
if (breakpoint.getProperties() instanceof JavaBreakpointProperties) {
JavaBreakpointProperties properties = (JavaBreakpointProperties) breakpoint.getProperties();
if (properties.isCOUNT_FILTER_ENABLED()) {
result.setHitCount(properties.getCOUNT_FILTER());
}
}
// Initialize condition fields if available.
XExpression condition = breakpoint.getConditionExpression();
if (condition != null) {
result.setCondition(condition.getExpression());
result.setConditionEnabled(true);
}
return result;
}
示例4: createExceptionRequest
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
public static void createExceptionRequest(@NotNull MonoVirtualMachineProxy virtualMachine, @NotNull XBreakpoint<DotNetExceptionBreakpointProperties> breakpoint, @Nullable TypeMirror typeMirror)
{
DotNetExceptionBreakpointProperties properties = breakpoint.getProperties();
if(typeMirror != null && !Comparing.equal(properties.VM_QNAME, typeMirror.fullName()) || StringUtil.isEmpty(properties.VM_QNAME) && typeMirror != null)
{
return;
}
virtualMachine.stopBreakpointRequests(breakpoint);
EventRequestManager eventRequestManager = virtualMachine.getDelegate().eventRequestManager();
ExceptionRequest exceptionRequest = eventRequestManager.createExceptionRequest(typeMirror, properties.NOTIFY_CAUGHT, properties.NOTIFY_UNCAUGHT, properties.SUBCLASSES);
exceptionRequest.setSuspendPolicy(mono.debugger.SuspendPolicy.ALL);
exceptionRequest.setEnabled(breakpoint.isEnabled());
virtualMachine.putRequest(breakpoint, exceptionRequest);
}
示例5: getText
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
static String getText(XBreakpoint<JavaMethodBreakpointProperties> breakpoint)
{
final StringBuilder buffer = new StringBuilder();
//if(isValid()) {
final String className = breakpoint.getProperties().myClassPattern;
final boolean classNameExists = className != null && className.length() > 0;
if(classNameExists)
{
buffer.append(className);
}
if(breakpoint.getProperties().myMethodName != null)
{
if(classNameExists)
{
buffer.append(".");
}
buffer.append(breakpoint.getProperties().myMethodName);
}
//}
//else {
// buffer.append(DebuggerBundle.message("status.breakpoint.invalid"));
//}
return buffer.toString();
}
示例6: getDisplayText
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public String getDisplayText(XBreakpoint<JavaExceptionBreakpointProperties> breakpoint) {
String name = breakpoint.getProperties().myQualifiedName;
if (name != null) {
return DebuggerBundle.message("breakpoint.exception.breakpoint.display.name", name);
}
else {
return DebuggerBundle.message("breakpoint.any.exception.display.name");
}
}
示例7: saveTo
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XBreakpoint<JavaMethodBreakpointProperties> breakpoint) {
boolean changed = breakpoint.getProperties().WATCH_ENTRY != myWatchEntryCheckBox.isSelected();
breakpoint.getProperties().WATCH_ENTRY = myWatchEntryCheckBox.isSelected();
changed = breakpoint.getProperties().WATCH_EXIT != myWatchExitCheckBox.isSelected() || changed;
breakpoint.getProperties().WATCH_EXIT = myWatchExitCheckBox.isSelected();
if (changed) {
((XBreakpointBase)breakpoint).fireBreakpointChanged();
}
}
示例8: saveTo
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XBreakpoint<JavaExceptionBreakpointProperties> breakpoint) {
boolean changed = breakpoint.getProperties().NOTIFY_CAUGHT != myNotifyCaughtCheckBox.isSelected();
breakpoint.getProperties().NOTIFY_CAUGHT = myNotifyCaughtCheckBox.isSelected();
changed = breakpoint.getProperties().NOTIFY_UNCAUGHT != myNotifyUncaughtCheckBox.isSelected() || changed;
breakpoint.getProperties().NOTIFY_UNCAUGHT = myNotifyUncaughtCheckBox.isSelected();
if (changed) {
((XBreakpointBase)breakpoint).fireBreakpointChanged();
}
}
示例9: getDisplayText
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public String getDisplayText(XBreakpoint<PyExceptionBreakpointProperties> breakpoint) {
PyExceptionBreakpointProperties properties = breakpoint.getProperties();
if (properties != null) {
String exception = properties.getException();
if (BASE_EXCEPTION.equals(exception)) {
return "All exceptions";
}
return exception;
}
return "";
}
示例10: getDisplayText
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public String getDisplayText(XBreakpoint<DotNetExceptionBreakpointProperties> breakpoint)
{
String name = breakpoint.getProperties().VM_QNAME;
if(name != null)
{
return name;
}
else
{
return "Any exception";
}
}
示例11: saveTo
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
@RequiredUIAccess
public void saveTo(@NotNull XBreakpoint<DotNetExceptionBreakpointProperties> breakpoint)
{
breakpoint.getProperties().NOTIFY_CAUGHT = myNotifyCaughtCheckBox.getValue();
breakpoint.getProperties().NOTIFY_UNCAUGHT = myNotifyUncaughtCheckBox.getValue();
}
示例12: getDisplayText
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public String getDisplayText(XBreakpoint<JavaExceptionBreakpointProperties> breakpoint)
{
String name = breakpoint.getProperties().myQualifiedName;
if(name != null)
{
return DebuggerBundle.message("breakpoint.exception.breakpoint.display.name", name);
}
else
{
return DebuggerBundle.message("breakpoint.any.exception.display.name");
}
}
示例13: saveTo
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XBreakpoint<JavaMethodBreakpointProperties> breakpoint)
{
breakpoint.getProperties().WATCH_ENTRY = myWatchEntryCheckBox.isSelected();
breakpoint.getProperties().WATCH_EXIT = myWatchExitCheckBox.isSelected();
}
示例14: saveTo
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XBreakpoint<JavaExceptionBreakpointProperties> breakpoint)
{
breakpoint.getProperties().NOTIFY_CAUGHT = myNotifyCaughtCheckBox.isSelected();
breakpoint.getProperties().NOTIFY_UNCAUGHT = myNotifyUncaughtCheckBox.isSelected();
}
示例15: getLambdaOrdinal
import com.intellij.xdebugger.breakpoints.XBreakpoint; //导入方法依赖的package包/类
@Nullable
private static Integer getLambdaOrdinal(XBreakpoint<JavaLineBreakpointProperties> breakpoint)
{
JavaLineBreakpointProperties properties = breakpoint.getProperties();
return properties != null ? properties.getLambdaOrdinal() : null;
}