|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.SimpleMarkerAnnotation
An annotation representing a marker. This is a model annotation.
IMarker
Field Summary |
---|
Fields inherited from class org.eclipse.jface.text.source.Annotation |
---|
TYPE_UNKNOWN |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.jface.text.source.Annotation |
---|
getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleMarkerAnnotation(IMarker marker)
marker
- the markerIMarker
public SimpleMarkerAnnotation(String annotationType, IMarker marker)
annotationType
- the annotation typemarker
- the markerMethod Detail |
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.
Object.equals(java.lang.Object)
public int hashCode()
public void update()
Subclasses may extend this method.
public String getText()
Annotation
getText
in class Annotation
null
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.