Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.7-beta-2
-
None
-
all
Description
The ScriptToTreeNodeAdapter converts Groovy code into Swing TreeNode objects. For developing and debugging it is sometimes useful to have the TreeNode in text format instead of Swing Component format. It would be quite simple to extract the TreeNode-ness out of the browser so that it could generate components or text as output.
The best approach is to extract a builder out of TreeNodeBuildingNodeOperation (inner class of ScriptToTreeNodeAdapter). So the ast visitor could just dispatch node creation to that builder, returning either text nodes or UI nodes depending on what it wants.