[stringtemplate-interest] visualizer mockup
Terence Parr
parrt at cs.usfca.edu
Tue Nov 24 10:33:37 PST 2009
Oh, and another architectural issue. Should this be a socket based thing like ANTLRWorks so C# and Python targets don't have to build their own GUI? I'd say yes, but then it's harder to drill down into objects in the attribute table. I'll have to YAML or JSON marshall objects across the socket. Some objects like binary arrays might be hard to represent properly in language indep manner in gui too.
thoughts?
Ter
On Nov 23, 2009, at 10:35 AM, Terence Parr wrote:
> Hiya...ST v3 has a nice XML tagged output that shows which template generated which output. I'd like an interactive thing that's easier to read for ST v4 I'm including a mockup.
>
> It starts with a window with the generated output. As I mouse over a section generated by a template, it highlights (one at a time) with a box or whatever. I can collapse output for any expression/template. If I hit "get info" key it would pop up a dialog showing the template pattern and the attribute table (an inspector). It seems like I'd need to detect mouse movement over a textpane and then expand and collapse sections (hopefully w/o having to do much; perhaps replace the char sequence with a new "collapse icon"). Intellij does it but I wonder how much they rely on Swing to do the fancy stuff they do in a textpane. Any thoughts about which components to use or avoid? Any architectural suggestions? Everything would happen in the text pane, except for the inspector which is probably a kind of treeview or something.
>
> Gerald probably has lots of suggestions as he's done something similar I think for Eclipse.
>
> I can't get to this for a while, but wanna start thinking.
>
> Thanks!
> Ter
>
> <visualization.gif>_______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list