Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to obtain starting offset in textual representation of a model element?
How to obtain starting offset in textual representation of a model element? [message #1007330] Tue, 05 February 2013 09:45 Go to next message
Eclipse UserFriend
Hi

I would like to know how it is possible to get the starting offset in the textual representation in my DSL editor for a given element of the EMF model, in other words, for a node of the AST.

Thanks in advance,
Marco Smile
Re: How to obtain starting offset in textual representation of a model element? [message #1007412 is a reply to message #1007330] Tue, 05 February 2013 13:48 Go to previous message
Eclipse UserFriend
Hi,

org.eclipse.xtext.nodemodel.util.NodeModelUtils.findActualNodeFor(EObject)

is your friend,

~Christian
Previous Topic:Adding static imports to XExpressions scope
Next Topic:Customizing Syntax Highlighting
Goto Forum:
  


Current Time: Sun Jul 13 19:34:27 EDT 2025

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

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

Back to the top