From 0b9c4cbeb99b41c91874b2bea28bf85fb082f160 Mon Sep 17 00:00:00 2001 From: robekras Date: Sun, 11 Dec 2005 15:06:19 +0000 Subject: [PATCH] 1) Not really necessary changes (made minor code changes when looking for the 'stackframe info doesn't show line number' bug). --- .../internal/debug/core/model/PHPStackFrame.java | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) 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() { -- 1.7.1