Interface ILocationInFileProviderExtension

    • Method Detail

      • getTextRegion

        org.eclipse.xtext.util.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.
        Parameters:
        object - the instance whose region should be returned.
        query - the hint about the requested range.
        Returns:
        the text region or null if the object does not have an associated text region.
      • getTextRegion

        org.eclipse.xtext.util.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.
        Parameters:
        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.
        Returns:
        the text region or null if the object does not have an associated text region.