Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3841

AST Browser - Generalize AST Browser so that it can produce TreeNodes for the UI or TextNodes for a file based tool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7-beta-2
    • 1.8-beta-2
    • Compiler
    • 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.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: