public class DefaultOccurrenceComputer extends java.lang.Object implements IOccurrenceComputer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DECLARATION_ANNOTATION_TYPE |
static java.lang.String |
OCCURRENCE_ANNOTATION_TYPE |
Constructor and Description |
---|
DefaultOccurrenceComputer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOccurrenceAnnotation(java.lang.String type,
org.eclipse.jface.text.IDocument document,
ITextRegion textRegion,
java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> annotationMap) |
protected boolean |
canBeReferencedLocally(org.eclipse.emf.ecore.EObject object) |
java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> |
createAnnotationMap(XtextEditor editor,
org.eclipse.jface.text.ITextSelection selection,
org.eclipse.core.runtime.SubMonitor monitor) |
protected java.lang.Iterable<org.eclipse.emf.common.util.URI> |
getTargetURIs(org.eclipse.emf.ecore.EObject primaryTarget) |
boolean |
hasAnnotationType(java.lang.String annotationType) |
public static final java.lang.String OCCURRENCE_ANNOTATION_TYPE
public static final java.lang.String DECLARATION_ANNOTATION_TYPE
protected void addOccurrenceAnnotation(java.lang.String type, org.eclipse.jface.text.IDocument document, ITextRegion textRegion, java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> annotationMap)
public java.util.Map<org.eclipse.jface.text.source.Annotation,org.eclipse.jface.text.Position> createAnnotationMap(XtextEditor editor, org.eclipse.jface.text.ITextSelection selection, org.eclipse.core.runtime.SubMonitor monitor)
createAnnotationMap
in interface IOccurrenceComputer
protected java.lang.Iterable<org.eclipse.emf.common.util.URI> getTargetURIs(org.eclipse.emf.ecore.EObject primaryTarget)
protected boolean canBeReferencedLocally(org.eclipse.emf.ecore.EObject object)
public boolean hasAnnotationType(java.lang.String annotationType)
hasAnnotationType
in interface IOccurrenceComputer