Package org.eclipse.ui.texteditor
Class AnnotationTypeLookup
java.lang.Object
org.eclipse.ui.texteditor.AnnotationTypeLookup
Provides the strategy for determining annotation types for given markers.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationType
(String markerType, int markerSeverity) Computes the annotation type that corresponds to the given marker type and the given marker severity.getAnnotationType
(IMarker marker) Computes the annotation type that corresponds to the state of the given marker.
-
Constructor Details
-
AnnotationTypeLookup
public AnnotationTypeLookup()Creates a new annotation lookup object.
-
-
Method Details
-
getAnnotationType
Computes the annotation type that corresponds to the state of the given marker.- Parameters:
marker
- the marker- Returns:
- the annotation type or
null
-
getAnnotationType
Computes the annotation type that corresponds to the given marker type and the given marker severity.- Parameters:
markerType
- the marker typemarkerSeverity
- the marker severity- Returns:
- the annotation type or
null
-