/** Goes to source. */ public void goToSource() { try { Line l = stackFrame.getLine(); if (l != null) l.show(Line.SHOW_GOTO); } catch (DebuggerException e) { } }
/** Returns true if source is availabled. */ public boolean canGoToSource() { try { Line l = stackFrame.getLine(); if (l != null) return true; } catch (DebuggerException e) { } return false; }
/** Sets a new CallStackFrame and updates node. */ void updateCallStackFrame(CallStackFrame stackFrame) { this.stackFrame = stackFrame; try { String s = stackFrame.getClassName() + '.' + stackFrame.getMethodName() + " : " + // NOI18N stackFrame.getLineNumber(); setDisplayName(s); setName(s); } catch (DebuggerException e) { String s = e.getMessage(); setDisplayName(s); setName(s); } changeChildren(); }
/** Performes initialization of this nodeS */ private void initialize() { try { String s = stackFrame.getClassName() + '.' + stackFrame.getMethodName() + " : " + // NOI18N stackFrame.getLineNumber(); setDisplayName(s); setName(s); } catch (DebuggerException e) { String s = e.getMessage(); setDisplayName(s); setName(s); } setIconBase(ICON_BASE); createProperties(); getCookieSet().add(this); changeChildren(); }
void changeChildren() { // set locales as keys into our children CallStackLineChildren myChildren = (CallStackLineChildren) getChildren(); myChildren.setMyKeys(stackFrame.getLocales()); }