1) Not really necessary changes (made minor code changes when looking for the 'stackf...
authorrobekras <robekras>
Sun, 11 Dec 2005 15:06:19 +0000 (15:06 +0000)
committerrobekras <robekras>
Sun, 11 Dec 2005 15:06:19 +0000 (15:06 +0000)
net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPStackFrame.java

index e47f21d..bbebc6a 100644 (file)
@@ -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() {