コード例 #1
0
 /** Goes to source. */
 public void goToSource() {
   try {
     Line l = stackFrame.getLine();
     if (l != null) l.show(Line.SHOW_GOTO);
   } catch (DebuggerException e) {
   }
 }
コード例 #2
0
 /** Returns true if source is availabled. */
 public boolean canGoToSource() {
   try {
     Line l = stackFrame.getLine();
     if (l != null) return true;
   } catch (DebuggerException e) {
   }
   return false;
 }
コード例 #3
0
 /** 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();
 }
コード例 #4
0
 /** 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();
 }
コード例 #5
0
 void changeChildren() {
   // set locales as keys into our children
   CallStackLineChildren myChildren = (CallStackLineChildren) getChildren();
   myChildren.setMyKeys(stackFrame.getLocales());
 }