* Only show last two elements of script path in debugger.

(Assume common case it is the prototype and the script.)
This commit is contained in:
hns 2005-08-31 20:35:06 +00:00
parent 24e878c176
commit 3aa000e95b

View file

@ -129,7 +129,7 @@ public class HelmaDebugger extends Main implements TreeSelectionListener {
String[] path = StringUtils.split(sourceName, ":/\\");
DebuggerTreeNode node = treeRoot;
DebuggerTreeNode newNode = null;
for (int i = 1; i < path.length; i++) {
for (int i = path.length-2; i < path.length; i++) {
DebuggerTreeNode n = node.get(path[i]);
if (n == null) {
n = new DebuggerTreeNode(path[i]);