- private String describedPath(TreePath path, StructureRegistry registry) {\r
- StringBuffer buf = new StringBuffer("");\r
- return buf.toString();\r
+ private void describedPath(TreeSPath path, StructureRegistry registry,\r
+ StringBuffer buf) {\r
+ // StringBuffer buf = new StringBuffer("");\r
+ if (path.getParent() != null) {\r
+ describedPath(path.getParent(), registry, buf);\r
+ }\r
+ String description = path.getName();\r
+ if (registry != null) {\r
+ StructureElement element = registry.getElement(path);\r
+ if (element != null) {\r
+ description = element.getDescription();\r
+ }\r
+ }\r
+ buf.append('/').append(description);\r