Page 1 of 1

Extending oXygen - plug-in

Posted: Thu Oct 19, 2006 9:05 pm
by seppal
Hello,

I'm writing an Eclipse plug-in and would need an XML-editor as a base. oXygen looks very promising to me, as it seems that some kind of XML AST (Abstract Syntax Tree) is operating in the back. Is it possible to have access to the AST of an XML document from my Eclipse plug-in? For example, I would like to add some markers to an existing XML document, but would have to perform some checks (on the AST) before. Later on, when I click on one of my markers which are displayed in a separeted view, I would like to open your editor to show the exact position of the marker.

To me it seems that you support this kind of functionality, since when someone uses your XPath tool and clicks one of the results in the results pane, the corresponding part from the document is highlighted.

Would be great if you support this kind of funtionality and also if I would have access to it.

Cheers,
Sepp

Posted: Mon Oct 23, 2006 12:15 pm
by george
Hi,

There is no possibility to access the tree model that oXygen creates while editing. However the rest of your requirements are doable, as the markers are automatically associated with resources in Eclipse. I suggest that you eventually parse the document when you want to add a marker and check some conditions.

Best Regards,
George