private JPDAClassType getCurrentType() { CallStackFrame currentCallStackFrame = debugger.getCurrentCallStackFrame(); if (currentCallStackFrame == null) { return null; } //currentCallStackFrame.getClassType() - TODO: Add to API try { Method getClassTypeMethod = currentCallStackFrame.getClass().getMethod("getClassType"); return (JPDAClassType) getClassTypeMethod.invoke(currentCallStackFrame); } catch (Exception ex) { Exceptions.printStackTrace(ex); return null; } }
public DebuggingJSTreeExpansionModelFilter(ContextProvider context) { debugger = context.lookupFirst(null, JPDADebugger.class); debugger.addPropertyChangeListener( JPDADebugger.PROP_CURRENT_CALL_STACK_FRAME, WeakListeners.propertyChange(this, JPDADebugger.PROP_CURRENT_CALL_STACK_FRAME, debugger)); dvSupport = context.lookupFirst(null, DVSupport.class); currentStackFrameChanged(debugger.getCurrentCallStackFrame()); }
final String[] fieldOfPtr, final boolean[] isFieldStatic) { final CallStackFrame currentFrame = debugger.getCurrentCallStackFrame(); if (currentFrame == null) { return false;
final String[] fieldOfPtr, final boolean[] isFieldStatic) { final CallStackFrame currentFrame = debugger.getCurrentCallStackFrame(); if (currentFrame == null) { return false;
return null; CallStackFrame frame = d.getCurrentCallStackFrame(); if (frame == null) { return null;
public static void setupContext(JEditorPane editorPane) { EditorKit kit = CloneableEditorSupport.getEditorKit("text/x-scala"); editorPane.setEditorKit(kit); DebuggerEngine en = DebuggerManager.getDebuggerManager ().getCurrentEngine(); JPDADebugger d = en.lookupFirst(null, JPDADebugger.class); CallStackFrame csf = d.getCurrentCallStackFrame(); if (csf != null) { String language = DebuggerManager.getDebuggerManager ().getCurrentSession().getCurrentLanguage(); SourcePath sp = en.lookupFirst(null, SourcePath.class); String url = sp.getURL(csf, language); int line = csf.getLineNumber(language); setupContext(editorPane, url, line); } }
CallStackFrame currentCallStackFrame = d.getCurrentCallStackFrame(); if (currentCallStackFrame != null) { v = findField(currentCallStackFrame, fieldClass, expression);
CallStackFrame currentCallStackFrame = d.getCurrentCallStackFrame(); if (currentCallStackFrame != null) { v = findField(currentCallStackFrame, fieldClass, expression);
return ; CallStackFrame frame = d.getCurrentCallStackFrame(); if (frame == null) { return ;