当前位置: 首页>>代码示例>>Java>>正文


Java XBreakpoint.getProperties方法代码示例

本文整理汇总了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);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:JavaMethodBreakpointType.java

示例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);
          }
        });
  }
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:20,代码来源:CloudBreakpointHandler.java

示例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;
}
 
开发者ID:TestRoots,项目名称:watchdog,代码行数:30,代码来源:BreakpointCreator.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:20,代码来源:MonoBreakpointUtil.java

示例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();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:25,代码来源:JavaMethodBreakpointType.java

示例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");
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:JavaExceptionBreakpointType.java

示例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();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:MethodBreakpointPropertiesPanel.java

示例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();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ExceptionBreakpointPropertiesPanel.java

示例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 "";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:PyExceptionBreakpointType.java

示例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";
	}
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:14,代码来源:DotNetExceptionBreakpointType.java

示例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();
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:8,代码来源:DotNetExceptionBreakpointPropertiesPanel.java

示例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");
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:14,代码来源:JavaExceptionBreakpointType.java

示例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();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:MethodBreakpointPropertiesPanel.java

示例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();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:ExceptionBreakpointPropertiesPanel.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:JavaLineBreakpointType.java


注:本文中的com.intellij.xdebugger.breakpoints.XBreakpoint.getProperties方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。