hello! Heh, I'm working again on the ANTLR parser -> intellij integration and I am trying to do everything with ANTLR parse trees instead of the "native" PSI stuff in Intellij as I find my trees much easier to deal with. Anyway, this means of course that I have a lot of my own implementation work to do, which I'm okay with. My question is: can I build a structure view that doesn't use PSI? One would normally activate with <lang.psiStructureViewFactory...> in the plugin.xml but Intellij does not have a PsiFile to pass me.
Is it a matter of creating my own pane with my own JTree or something and then triggering an update in that pane when the editor changes?
Any suggestions would be welcome. I would like to use as much of the existing infrastructure as possible without resorting to the PSI.
PS I have it nicely doing syntax highlighting at the lexical and grammatical level from an antlr grammar. I'm working on a stringtemplate plugin as a demo. https://plugins.jetbrains.com/plugin/8041?pr=