[stringtemplate-interest] visualizer mockup
Terence Parr
parrt at cs.usfca.edu
Mon Nov 23 10:35:09 PST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visualization.gif
Type: image/gif
Size: 30551 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20091123/f7a04bee/attachment-0001.gif
More information about the stringtemplate-interest
mailing list