public class SimpleMarkerAnnotation extends Annotation
IMarkerTYPE_UNKNOWN| Constructor and Description |
|---|
SimpleMarkerAnnotation(IMarker marker)
Creates a new annotation for the given marker.
|
SimpleMarkerAnnotation(String annotationType,
IMarker marker)
Creates a new annotation of the given type for the given marker.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
The
SimpleMarkerAnnotation implementation of this
Object method returns true iff the other
object is of the same class and the marker handles are equal. |
IMarker |
getMarker()
Returns this annotation's underlying marker.
|
String |
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.
|
getType, isMarkedDeleted, isPersistent, markDeleted, setText, setTypepublic SimpleMarkerAnnotation(IMarker marker)
marker - the markerIMarkerpublic IMarker getMarker()
public boolean equals(Object o)
SimpleMarkerAnnotation implementation of this
Object method returns true iff the other
object is of the same class and the marker handles are equal.equals in class ObjectObject.equals(java.lang.Object)public void update()
Subclasses may extend this method.
public String getText()
AnnotationgetText in class AnnotationnullGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.