org.eclipse.xtext.resource
Interface ILocationInFileProvider
- All Known Implementing Classes:
- DefaultLocationInFileProvider, JvmLocationInFileProvider, XbaseLocationInFileProvider, XtendLocationInFileProvider, XtextLocationInFileProvider
public interface ILocationInFileProvider
Delivers ITextRegion
s for model elements or feature settings. The significant text is the part of the text
identifying the element, e.g. its name, as opposed to the full region which is the full text representing the
element.
In addition to this service, the extension interface ILocationInFileProviderExtension
allows to query
for the region that is spanned by an EObject
including its comments.
- Author:
- Sven Efftinge - Initial contribution and API, Jan Koehnlein - Distinguish significant and full region
getSignificantTextRegion
ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)
getSignificantTextRegion
ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList)
getFullTextRegion
ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject obj)
getFullTextRegion
ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList)