org.eclipse.xtext.xbase.resource
Class XbaseLocationInFileProvider

java.lang.Object
  extended by org.eclipse.xtext.resource.DefaultLocationInFileProvider
      extended by org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider
All Implemented Interfaces:
ILocationInFileProvider, ILocationInFileProviderExtension
Direct Known Subclasses:
JvmLocationInFileProvider

public class XbaseLocationInFileProvider
extends DefaultLocationInFileProvider

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.ILocationInFileProviderExtension
ILocationInFileProviderExtension.RegionDescription
 
Constructor Summary
XbaseLocationInFileProvider()
           
 
Method Summary
protected  java.util.List<INode> getLocationNodes(org.eclipse.emf.ecore.EObject obj)
           
protected  ITextRegion getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, int indexInList, boolean isSignificant)
           
 ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject element)
           
protected  boolean useKeyword(Keyword keyword, org.eclipse.emf.ecore.EObject context)
           
 
Methods inherited from class org.eclipse.xtext.resource.DefaultLocationInFileProvider
createRegion, createRegion, doGetLocationOfFeature, doGetLocationOfFeature, doGetTextRegion, findNodeFor, getFullTextRegion, getFullTextRegion, getIdentifierFeature, getLocationOfAttribute, getLocationOfContainmentReference, getLocationOfContainmentReference, getSignificantTextRegion, getTextRegion, getTextRegion, getTextRegion, isHidden, isHidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XbaseLocationInFileProvider

public XbaseLocationInFileProvider()
Method Detail

getSignificantTextRegion

public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject element)
Specified by:
getSignificantTextRegion in interface ILocationInFileProvider
Overrides:
getSignificantTextRegion in class DefaultLocationInFileProvider

getLocationOfCrossReference

protected ITextRegion getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner,
                                                  org.eclipse.emf.ecore.EReference reference,
                                                  int indexInList,
                                                  boolean isSignificant)
Overrides:
getLocationOfCrossReference in class DefaultLocationInFileProvider

getLocationNodes

protected java.util.List<INode> getLocationNodes(org.eclipse.emf.ecore.EObject obj)
Overrides:
getLocationNodes in class DefaultLocationInFileProvider

useKeyword

protected boolean useKeyword(Keyword keyword,
                             org.eclipse.emf.ecore.EObject context)
Overrides:
useKeyword in class DefaultLocationInFileProvider