Class DefaultLocationInFileProvider
- java.lang.Object
-
- com._1c.g5.modeling.xtext.resource.DefaultLocationInFileProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.resource.ILocationInFileProvider
public class DefaultLocationInFileProvider extends Object implements org.eclipse.xtext.resource.ILocationInFileProvider
Default implementation ofILocationInFileProviderforXtextXmlResource.This implementation doesn't discriminates significant and full region, it always returns full region. Clients can override.
-
-
Constructor Summary
Constructors Constructor Description DefaultLocationInFileProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.xtext.util.ITextRegioncreateRegion(List<INode> nodes)protected org.eclipse.xtext.util.ITextRegiondoGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, boolean isSignificant)org.eclipse.xtext.util.ITextRegiongetFullTextRegion(org.eclipse.emf.ecore.EObject obj)org.eclipse.xtext.util.ITextRegiongetFullTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)protected org.eclipse.xtext.util.ITextRegiongetLocationOfAttribute(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EAttribute attribute, int indexInList, boolean isSignificant)protected org.eclipse.xtext.util.ITextRegiongetLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference feature, int indexInList, boolean isSignificant)protected org.eclipse.xtext.util.ITextRegiongetLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, int indexInList, boolean isSignificant)org.eclipse.xtext.util.ITextRegiongetSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)org.eclipse.xtext.util.ITextRegiongetSignificantTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)protected org.eclipse.xtext.util.ITextRegiongetTextRegion(org.eclipse.emf.ecore.EObject obj, boolean isSignificant)
-
-
-
Method Detail
-
getSignificantTextRegion
public org.eclipse.xtext.util.ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)
- Specified by:
getSignificantTextRegionin interfaceorg.eclipse.xtext.resource.ILocationInFileProvider
-
getFullTextRegion
public org.eclipse.xtext.util.ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject obj)
- Specified by:
getFullTextRegionin interfaceorg.eclipse.xtext.resource.ILocationInFileProvider
-
getSignificantTextRegion
public org.eclipse.xtext.util.ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)- Specified by:
getSignificantTextRegionin interfaceorg.eclipse.xtext.resource.ILocationInFileProvider
-
getFullTextRegion
public org.eclipse.xtext.util.ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)- Specified by:
getFullTextRegionin interfaceorg.eclipse.xtext.resource.ILocationInFileProvider
-
getLocationOfCrossReference
protected org.eclipse.xtext.util.ITextRegion getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, int indexInList, boolean isSignificant)
-
getLocationOfAttribute
protected org.eclipse.xtext.util.ITextRegion getLocationOfAttribute(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EAttribute attribute, int indexInList, boolean isSignificant)
-
getLocationOfContainmentReference
protected org.eclipse.xtext.util.ITextRegion getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference feature, int indexInList, boolean isSignificant)
-
doGetLocationOfFeature
protected org.eclipse.xtext.util.ITextRegion doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, boolean isSignificant)
-
getTextRegion
protected org.eclipse.xtext.util.ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject obj, boolean isSignificant)
-
-