public class JvmLocationInFileProvider extends XbaseLocationInFileProvider
ILocationInFileProviderExtension.RegionDescription
Constructor and Description |
---|
JvmLocationInFileProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
convertToSource(org.eclipse.emf.ecore.EObject element) |
ITextRegion |
getFullTextRegion(org.eclipse.emf.ecore.EObject element) |
ITextRegion |
getFullTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList) |
ITextRegion |
getSignificantTextRegion(org.eclipse.emf.ecore.EObject element) |
ITextRegion |
getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList) |
ITextRegion |
getTextRegion(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList,
ILocationInFileProviderExtension.RegionDescription query)
Queries for parts of the text region that parts of the given object originate from.
|
ITextRegion |
getTextRegion(org.eclipse.emf.ecore.EObject object,
ILocationInFileProviderExtension.RegionDescription query)
Queries for parts of the text region that the given object is originates from.
|
getLocationNodes, getLocationOfContainmentReference, getLocationOfCrossReference, useKeyword
createRegion, createRegion, doGetLocationOfFeature, doGetLocationOfFeature, doGetTextRegion, findNodeFor, getIdentifierFeature, getLocationOfAttribute, getLocationOfContainmentReference, getTextRegion, isHidden, isHidden
public ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject element)
getFullTextRegion
in interface ILocationInFileProvider
getFullTextRegion
in class DefaultLocationInFileProvider
public ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)
getFullTextRegion
in interface ILocationInFileProvider
getFullTextRegion
in class DefaultLocationInFileProvider
public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject element)
getSignificantTextRegion
in interface ILocationInFileProvider
getSignificantTextRegion
in class XbaseLocationInFileProvider
public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)
getSignificantTextRegion
in interface ILocationInFileProvider
getSignificantTextRegion
in class DefaultLocationInFileProvider
@NonNullByDefault @Nullable public ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, ILocationInFileProviderExtension.RegionDescription query)
ILocationInFileProviderExtension
getTextRegion
in interface ILocationInFileProviderExtension
getTextRegion
in class DefaultLocationInFileProvider
object
- the instance whose region should be returned.feature
- the feature that was set when the requested range was consumed by the parser.indexInList
- the index in the list of feature values. -1
if all values should be considered.query
- the hint about the requested range.null
if the object does not have an associated text region.@NonNullByDefault @Nullable public ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject object, ILocationInFileProviderExtension.RegionDescription query)
ILocationInFileProviderExtension
getTextRegion
in interface ILocationInFileProviderExtension
getTextRegion
in class DefaultLocationInFileProvider
object
- the instance whose region should be returned.query
- the hint about the requested range.null
if the object does not have an associated text region.protected org.eclipse.emf.ecore.EObject convertToSource(org.eclipse.emf.ecore.EObject element)