From 3aa000e95b197711b44572673539504be02763a6 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 31 Aug 2005 20:35:06 +0000 Subject: [PATCH] * Only show last two elements of script path in debugger. (Assume common case it is the prototype and the script.) --- src/helma/scripting/rhino/debug/HelmaDebugger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/debug/HelmaDebugger.java b/src/helma/scripting/rhino/debug/HelmaDebugger.java index 7c06c31a..4027ae6b 100644 --- a/src/helma/scripting/rhino/debug/HelmaDebugger.java +++ b/src/helma/scripting/rhino/debug/HelmaDebugger.java @@ -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]);