use of com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl in project intellij-community by JetBrains.
the class JavaExecutionStack method createStackFrame.
private static XStackFrame createStackFrame(@NotNull StackFrameProxyImpl stackFrameProxy, @NotNull MethodsTracker tracker) {
StackFrameDescriptorImpl descriptor = new StackFrameDescriptorImpl(stackFrameProxy, tracker);
DebugProcessImpl debugProcess = (DebugProcessImpl) descriptor.getDebugProcess();
Location location = descriptor.getLocation();
if (location != null) {
XStackFrame customFrame = debugProcess.getPositionManager().createStackFrame(stackFrameProxy, debugProcess, location);
if (customFrame != null) {
return customFrame;
}
}
return new JavaStackFrame(descriptor, true);
}
use of com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl in project intellij-community by JetBrains.
the class ThreadsPanel method selectFrame.
private void selectFrame(DebuggerTreeNodeImpl node) {
StackFrameProxyImpl frame = ((StackFrameDescriptorImpl) node.getDescriptor()).getFrameProxy();
DebuggerContextUtil.setStackFrame(getContextManager(), frame);
}
use of com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl in project intellij-community by JetBrains.
the class GotoFrameSourceAction method doAction.
protected static void doAction(DataContext dataContext) {
final Project project = CommonDataKeys.PROJECT.getData(dataContext);
if (project == null)
return;
StackFrameDescriptorImpl stackFrameDescriptor = getStackFrameDescriptor(dataContext);
if (stackFrameDescriptor != null) {
//DebuggerContextUtil.setStackFrame(getContextManager(dataContext), stackFrameDescriptor.getFrameProxy());
SourcePosition sourcePosition = stackFrameDescriptor.getSourcePosition();
if (sourcePosition != null) {
sourcePosition.navigate(true);
}
}
}
use of com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl in project intellij-community by JetBrains.
the class PopFrameAction method isAtBreakpoint.
private static boolean isAtBreakpoint(AnActionEvent e) {
DebuggerTreeNodeImpl selectedNode = getSelectedNode(e.getDataContext());
if (selectedNode != null && selectedNode.getDescriptor() instanceof StackFrameDescriptorImpl) {
DebuggerTreeNodeImpl parent = selectedNode.getParent();
if (parent != null) {
return ((ThreadDescriptorImpl) parent.getDescriptor()).isAtBreakpoint();
}
}
DebuggerContextImpl debuggerContext = DebuggerAction.getDebuggerContext(e.getDataContext());
SuspendContextImpl suspendContext = debuggerContext.getSuspendContext();
return suspendContext != null && debuggerContext.getThreadProxy() == suspendContext.getThread();
}
Aggregations