本文整理汇总了Java中com.intellij.debugger.impl.DebuggerUtilsEx.toXSourcePosition方法的典型用法代码示例。如果您正苦于以下问题:Java DebuggerUtilsEx.toXSourcePosition方法的具体用法?Java DebuggerUtilsEx.toXSourcePosition怎么用?Java DebuggerUtilsEx.toXSourcePosition使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.debugger.impl.DebuggerUtilsEx
的用法示例。
在下文中一共展示了DebuggerUtilsEx.toXSourcePosition方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JavaStackFrame
import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
public JavaStackFrame(@NotNull StackFrameDescriptorImpl descriptor, boolean update) {
myDescriptor = descriptor;
if (update) {
myDescriptor.setContext(null);
myDescriptor.updateRepresentation(null, DescriptorLabelListener.DUMMY_LISTENER);
}
myEqualityObject = update ? NodeManagerImpl.getContextKeyForFrame(myDescriptor.getFrameProxy()) : null;
myDebugProcess = ((DebugProcessImpl)descriptor.getDebugProcess());
myNodeManager = myDebugProcess.getXdebugProcess().getNodeManager();
myXSourcePosition = myDescriptor.getSourcePosition() != null ? DebuggerUtilsEx.toXSourcePosition(myDescriptor.getSourcePosition()) : null;
}
示例2: CapturedStackFrame
import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
public CapturedStackFrame(DebugProcessImpl debugProcess, StackFrameItem item)
{
DebuggerManagerThreadImpl.assertIsManagerThread();
mySourcePosition = DebuggerUtilsEx.toXSourcePosition(debugProcess.getPositionManager().getSourcePosition(item.myLocation));
myIsSynthetic = DebuggerUtils.isSynthetic(item.myLocation.method());
myIsInLibraryContent = DebuggerUtilsEx.isInLibraryContent(mySourcePosition != null ? mySourcePosition.getFile() : null, debugProcess.getProject());
myPath = item.path();
myMethodName = item.myLocation.method().name();
myLineNumber = item.line();
myVariables = item.myVariables;
}
示例3: JavaStackFrame
import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
public JavaStackFrame(@NotNull StackFrameDescriptorImpl descriptor, boolean update)
{
myDescriptor = descriptor;
if(update)
{
myDescriptor.setContext(null);
myDescriptor.updateRepresentation(null, DescriptorLabelListener.DUMMY_LISTENER);
}
myEqualityObject = update ? NodeManagerImpl.getContextKeyForFrame(myDescriptor.getFrameProxy()) : null;
myDebugProcess = ((DebugProcessImpl) descriptor.getDebugProcess());
myNodeManager = myDebugProcess.getXdebugProcess().getNodeManager();
myXSourcePosition = DebuggerUtilsEx.toXSourcePosition(myDescriptor.getSourcePosition());
}
示例4: getSourcePosition
import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
@Override
public XSourcePosition getSourcePosition(@NotNull XBreakpoint<JavaLineBreakpointProperties> breakpoint)
{
Integer ordinal = getLambdaOrdinal(breakpoint);
if(ordinal != null && ordinal > -1)
{
SourcePosition linePosition = createLineSourcePosition((XLineBreakpointImpl) breakpoint);
if(linePosition != null)
{
return DebuggerUtilsEx.toXSourcePosition(new PositionManagerImpl.JavaSourcePosition(linePosition, ordinal));
}
}
return null;
}