public class EssentialOCLLocationInFileProvider extends BaseLocationInFileProvider
Constructor and Description |
---|
EssentialOCLLocationInFileProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.xtext.util.ITextRegion |
getTextRegion(org.eclipse.emf.ecore.EObject obj,
boolean isSignificant) |
org.eclipse.xtext.util.ITextRegion |
getTextRegionCS(ExpCS csExp,
boolean isSignificant)
For a CS-less element, the full text region is expanded to cover all children.
|
protected org.eclipse.xtext.util.ITextRegion |
getTextRegionNoCS(org.eclipse.emf.ecore.EObject obj,
boolean isSignificant)
For a CS-less element, the text region is determined from the CS parent and child.
|
getIdentifierFeature
createRegion, createRegion, doGetLocationOfFeature, doGetLocationOfFeature, doGetTextRegion, findNodeFor, getFullTextRegion, getFullTextRegion, getLocationNodes, getLocationOfAttribute, getLocationOfContainmentReference, getLocationOfContainmentReference, getLocationOfCrossReference, getSignificantTextRegion, getSignificantTextRegion, getTextRegion, getTextRegion, isHidden, isHidden, toZeroBasedRegion, useKeyword
@NonNull protected org.eclipse.xtext.util.ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject obj, boolean isSignificant)
getTextRegion
in class BaseLocationInFileProvider
@NonNull public org.eclipse.xtext.util.ITextRegion getTextRegionCS(@NonNull ExpCS csExp, boolean isSignificant)
This ensures that for an infix "or" the full region covers the input terms.
@NonNull protected org.eclipse.xtext.util.ITextRegion getTextRegionNoCS(org.eclipse.emf.ecore.EObject obj, boolean isSignificant)
This ensures that for an implicit oclAsSet() the significant region is the navigation operator.