From: robekras Date: Sun, 11 Dec 2005 15:06:19 +0000 (+0000) Subject: 1) Not really necessary changes (made minor code changes when looking for the 'stackf... X-Git-Url: http://git.phpeclipse.com 1) Not really necessary changes (made minor code changes when looking for the 'stackframe info doesn't show line number' bug). --- diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPStackFrame.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPStackFrame.java index e47f21d..bbebc6a 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPStackFrame.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPStackFrame.java @@ -39,7 +39,7 @@ public class PHPStackFrame extends PHPDebugElement implements IStackFrame, Compa private int modno; // private PHPVariable[] variables; // The array of variables TODO: better introduce a vector? private Vector varList = new Vector (); - private String description; // + private String description; // The source file name with the full path on target/remote system private boolean fUpToDate; // /** @@ -372,10 +372,20 @@ public class PHPStackFrame extends PHPDebugElement implements IStackFrame, Compa } public String getName() { - if(!this.getDescription().equals("")) - return this.getDescription() + " [line: " + this.getLineNumber() + "]"; - else - return this.getFileName() + " [line: " + this.getLineNumber() + "]"; + StringBuffer name = new StringBuffer(); + + if (!this.getDescription().equals ("")) { + name.append (this.getDescription ()); + } + else { + name.append (this.getFileName ()); + } + + name.append (" [line "); + name.append (this.getLineNumber ()); + name.append ("]"); + + return name.toString(); } public String getFileName() {