Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Access model from the editor
Access model from the editor [message #1001997] Thu, 17 January 2013 17:22
Jeff MAURY is currently offline Jeff MAURYFriend
Messages: 39
Registered: July 2009
Member
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 ?

Thanks
Jeff
Previous Topic:Strange errors while building the workspace
Next Topic:How to trigger the serializer on existing EMF model?
Goto Forum:
  


Current Time: Sat Nov 22 16:46:40 GMT 2014

Powered by FUDForum. Page generated in 0.10778 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software