Skip to main content

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: 44
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 ?

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

Current Time: Tue Feb 25 07:10:10 GMT 2020

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

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

Back to the top