Package org.eclipse.ui.texteditor
Class SimpleMarkerAnnotation
java.lang.Object
org.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.SimpleMarkerAnnotation
- Direct Known Subclasses:
MarkerAnnotation
An annotation representing a marker. This is a model annotation.
- Since:
- 3.0
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.jface.text.source.Annotation
TYPE_UNKNOWN
-
Constructor Summary
ConstructorDescriptionSimpleMarkerAnnotation
(String annotationType, IMarker marker) Creates a new annotation of the given type for the given marker.SimpleMarkerAnnotation
(IMarker marker) Creates a new annotation for the given marker. -
Method Summary
Modifier and TypeMethodDescriptionboolean
TheSimpleMarkerAnnotation
implementation of thisObject
method returnstrue
iff the other object is of the same class and the marker handles are equal.Returns this annotation's underlying marker.getText()
Returns the text associated with this annotation.int
hashCode()
void
update()
Informs this annotation about changes applied to its underlying marker and adapts to those changes.Methods inherited from class org.eclipse.jface.text.source.Annotation
getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
-
Constructor Details
-
SimpleMarkerAnnotation
Creates a new annotation for the given marker.- Parameters:
marker
- the marker- See Also:
-
SimpleMarkerAnnotation
Creates a new annotation of the given type for the given marker.- Parameters:
annotationType
- the annotation typemarker
- the marker
-
-
Method Details
-
getMarker
Returns this annotation's underlying marker.- Returns:
- the marker
-
equals
TheSimpleMarkerAnnotation
implementation of thisObject
method returnstrue
iff the other object is of the same class and the marker handles are equal. -
hashCode
public int hashCode() -
update
public void update()Informs this annotation about changes applied to its underlying marker and adapts to those changes.Subclasses may extend this method.
-
getText
Description copied from class:Annotation
Returns the text associated with this annotation.- Overrides:
getText
in classAnnotation
- Returns:
- the text associated with this annotation or
null
-