public class SimpleMarkerAnnotation extends Annotation
IMarker
TYPE_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, setType
public SimpleMarkerAnnotation(IMarker marker)
marker
- the markerIMarker
public 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 Object
Object.equals(java.lang.Object)
public void update()
Subclasses may extend this method.
public String getText()
Annotation
getText
in class Annotation
null
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.