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: 42
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:How to trigger the serializer on existing EMF model?
Next Topic: JvmTypesBuilder generate final parameters
Goto Forum:
  


Current Time: Wed Mar 29 03:30:11 GMT 2017

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

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