本文整理汇总了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;
}
示例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();
}
}
示例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;
}
示例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();
}
}
}
}
示例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);
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}