org.eclipse.xtext.ui.editor.occurrences
Class DefaultOccurrenceComputer
java.lang.Object
org.eclipse.xtext.ui.editor.occurrences.DefaultOccurrenceComputer
- All Implemented Interfaces:
- IOccurrenceComputer
public class DefaultOccurrenceComputer
- extends java.lang.Object
- implements IOccurrenceComputer
- Author:
- Jan Koehnlein - Initial contribution and API
Method Summary |
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)
|
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)
|
boolean |
hasAnnotationType(java.lang.String annotationType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCCURRENCE_ANNOTATION_TYPE
public static final java.lang.String OCCURRENCE_ANNOTATION_TYPE
- See Also:
- Constant Field Values
DECLARATION_ANNOTATION_TYPE
public static final java.lang.String DECLARATION_ANNOTATION_TYPE
- See Also:
- Constant Field Values
DefaultOccurrenceComputer
public DefaultOccurrenceComputer()
addOccurrenceAnnotation
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)
createAnnotationMap
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)
- Specified by:
createAnnotationMap
in interface IOccurrenceComputer
hasAnnotationType
public boolean hasAnnotationType(java.lang.String annotationType)
- Specified by:
hasAnnotationType
in interface IOccurrenceComputer