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
public class SimpleMarkerAnnotation extends Annotation
An annotation representing a marker. This is a model annotation.- Since:
- 3.0
- See Also:
IMarker
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.text.source.Annotation
TYPE_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description SimpleMarkerAnnotation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)TheSimpleMarkerAnnotationimplementation of thisObjectmethod returnstrueiff the other object is of the same class and the marker handles are equal.IMarkergetMarker()Returns this annotation's underlying marker.StringgetText()Returns the text associated with this annotation.inthashCode()voidupdate()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
-
-
-
-
Method Detail
-
getMarker
public IMarker getMarker()
Returns this annotation's underlying marker.- Returns:
- the marker
-
equals
public boolean equals(Object o)
TheSimpleMarkerAnnotationimplementation of thisObjectmethod returnstrueiff the other object is of the same class and the marker handles are equal.- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
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
public String getText()
Description copied from class:AnnotationReturns the text associated with this annotation.- Overrides:
getTextin classAnnotation- Returns:
- the text associated with this annotation or
null
-
-