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


Java XLineBreakpoint.getProperties方法代码示例

本文整理汇总了Java中com.intellij.xdebugger.breakpoints.XLineBreakpoint.getProperties方法的典型用法代码示例。如果您正苦于以下问题:Java XLineBreakpoint.getProperties方法的具体用法?Java XLineBreakpoint.getProperties怎么用?Java XLineBreakpoint.getProperties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.xdebugger.breakpoints.XLineBreakpoint的用法示例。


在下文中一共展示了XLineBreakpoint.getProperties方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getHighlightRange

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@Nullable
@Override
public TextRange getHighlightRange(XLineBreakpoint<JavaLineBreakpointProperties> breakpoint) {
  JavaLineBreakpointProperties properties = breakpoint.getProperties();
  if (properties != null) {
    Integer ordinal = properties.getLambdaOrdinal();
    if (ordinal != null) {
      Breakpoint javaBreakpoint = BreakpointManager.getJavaBreakpoint(breakpoint);
      if (javaBreakpoint instanceof LineBreakpoint) {
        PsiElement method = getContainingMethod((LineBreakpoint)javaBreakpoint);
        if (method != null) {
          return method.getTextRange();
        }
      }
    }
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:JavaLineBreakpointType.java

示例2: saveTo

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XLineBreakpoint<JavaFieldBreakpointProperties> breakpoint) {
  boolean changed = breakpoint.getProperties().WATCH_ACCESS != myWatchAccessCheckBox.isSelected();
  breakpoint.getProperties().WATCH_ACCESS = myWatchAccessCheckBox.isSelected();
  changed = breakpoint.getProperties().WATCH_MODIFICATION != myWatchModificationCheckBox.isSelected() || changed;
  breakpoint.getProperties().WATCH_MODIFICATION = myWatchModificationCheckBox.isSelected();
  if (changed) {
    ((XBreakpointBase)breakpoint).fireBreakpointChanged();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:FieldBreakpointPropertiesPanel.java

示例3: getText

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
public String getText(XLineBreakpoint<JavaFieldBreakpointProperties> breakpoint) {
  //if(!isValid()) {
  //  return DebuggerBundle.message("status.breakpoint.invalid");
  //}

  JavaFieldBreakpointProperties properties = breakpoint.getProperties();
  final String className = properties.myClassName;
  return className != null && !className.isEmpty() ? className + "." + properties.myFieldName : properties.myFieldName;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:JavaFieldBreakpointType.java

示例4: saveTo

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@SuppressWarnings("ConstantConditions")
@Override
public void saveTo(@NotNull final XLineBreakpoint<CloudLineBreakpointProperties> ideBreakpoint) {
  CloudLineBreakpointProperties properties = ideBreakpoint.getProperties();
  if (properties == null) {
    LOG.error(
        "Could not save changes to the breakpoint because for some reason it does not have cloud "
            + "properties.");
    return;
  }

  XBreakpointBase lineBreakpointImpl =
      ideBreakpoint instanceof XBreakpointBase ? (XBreakpointBase) ideBreakpoint : null;

  if (rootNode != null && lineBreakpointImpl != null) {
    List<String> expressionsToSave = new ArrayList<String>();
    List<? extends WatchNode> children = rootNode.getAllChildren();
    if (children != null) {
      for (WatchNode node : rootNode.getAllChildren()) {
        expressionsToSave.add(node.getExpression().getExpression());
      }
      if (properties.setWatchExpressions(
          expressionsToSave.toArray(new String[expressionsToSave.size()]))) {
        lineBreakpointImpl.fireBreakpointChanged();
      }
    }
  }
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:29,代码来源:BreakpointConfigurationPanel.java

示例5: findLocationsImpl

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@NotNull
private static FindLocationResult findLocationsImpl(@NotNull final Project project,
		@NotNull final MonoVirtualMachineProxy virtualMachine,
		@NotNull final XLineBreakpoint<?> lineBreakpoint,
		@Nullable final TypeMirror typeMirror) throws TypeMirrorUnloadedException
{
	final int line = lineBreakpoint.getLine();
	final VirtualFile fileByUrl = VirtualFileManager.getInstance().findFileByUrl(lineBreakpoint.getFileUrl());
	final DotNetLineBreakpointProperties properties = (DotNetLineBreakpointProperties) lineBreakpoint.getProperties();
	return findLocationsImpl(project, virtualMachine, fileByUrl, line, properties.getExecutableChildrenAtLineIndex(), typeMirror);
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:12,代码来源:MonoBreakpointUtil.java

示例6: getText

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
public String getText(XLineBreakpoint<JavaFieldBreakpointProperties> breakpoint)
{
	//if(!isValid()) {
	//  return DebuggerBundle.message("status.breakpoint.invalid");
	//}

	JavaFieldBreakpointProperties properties = breakpoint.getProperties();
	final String className = properties.myClassName;
	return className != null && !className.isEmpty() ? className + "." + properties.myFieldName : properties.myFieldName;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:11,代码来源:JavaFieldBreakpointType.java

示例7: getHighlightRange

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@Nullable
@Override
@RequiredReadAction
public TextRange getHighlightRange(XLineBreakpoint<DotNetLineBreakpointProperties> breakpoint)
{
	DotNetLineBreakpointProperties properties = breakpoint.getProperties();
	if(properties == null)
	{
		return null;
	}
	Integer executableChildrenAtLineIndex = properties.getExecutableChildrenAtLineIndex();
	if(executableChildrenAtLineIndex == null || executableChildrenAtLineIndex == -1)
	{
		return null;
	}

	VirtualFile virtualFile = VirtualFileManager.getInstance().findFileByUrl(breakpoint.getFileUrl());
	if(virtualFile == null)
	{
		return null;
	}

	XBreakpointBase base = (XBreakpointBase) breakpoint;

	PsiFile file = PsiManager.getInstance(base.getProject()).findFile(virtualFile);
	if(file == null)
	{
		return null;
	}

	Set<PsiElement> allExecutableChildren = collectExecutableChildren(file, breakpoint.getLine());

	PsiElement[] psiElements = ContainerUtil.toArray(allExecutableChildren, PsiElement.ARRAY_FACTORY);
	// we need plus one, due first index - its original method or accessor
	PsiElement psiElement = ArrayUtil2.safeGet(psiElements, executableChildrenAtLineIndex + 1);
	if(psiElement == null)
	{
		return null;
	}
	return psiElement.getTextRange();
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:42,代码来源:DotNetLineBreakpointType.java

示例8: saveTo

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XLineBreakpoint<DotNetMethodBreakpointProperties> breakpoint)
{
	breakpoint.getProperties().METHOD_ENTRY = myWatchEntryCheckBox.isSelected();
	breakpoint.getProperties().METHOD_EXIT = myWatchExitCheckBox.isSelected();
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:7,代码来源:DotNetMethodBreakpointPropertiesPanel.java

示例9: saveTo

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@Override
public void saveTo(@NotNull XLineBreakpoint<JavaFieldBreakpointProperties> breakpoint)
{
	breakpoint.getProperties().WATCH_ACCESS = myWatchAccessCheckBox.isSelected();
	breakpoint.getProperties().WATCH_MODIFICATION = myWatchModificationCheckBox.isSelected();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:FieldBreakpointPropertiesPanel.java


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