|Access model from the editor [message #1001997]
||Thu, 17 January 2013 17:22
| Jeff MAURY
Registered: July 2009
I have the following request: I need to implement a breakpoint manager for my xtext grammar.|
In order to set a breakpoint, I need to verify that the line pointed by the breakpoint is a specific class in my Xtext model.
My following question is: how to I access the Xtext EMF model given the inputs: the Xtext editor and the selection (ITextSelection).
I've seen that from the XtextEditor you can get the parser result so access the EMF model (getRootASTElement) or the node model (getRootNode).
Do you see a better way to get it ?
Powered by FUDForum
. Page generated in 0.02092 seconds