public class MarkerAnnotation extends SimpleMarkerAnnotation
IMarker| Modifier and Type | Field and Description |
|---|---|
static int |
PROBLEM_LAYER
Deprecated.
As of 3.0, replaced by
IAnnotationAccessExtension |
TYPE_UNKNOWN| Constructor and Description |
|---|
MarkerAnnotation(IMarker marker)
Creates a new annotation for the given marker.
|
MarkerAnnotation(String annotationType,
IMarker marker)
Creates a new annotation of the given type for the given marker.
|
| Modifier and Type | Method and Description |
|---|---|
protected Image |
getImage(Display display)
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
protected static Image |
getImage(Display display,
ImageDescriptor descriptor)
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
protected Image |
getImage(String name)
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
protected static Map |
getImageRegistry(Display display)
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
int |
getLayer()
Deprecated.
As of 3.0, replaced by
IAnnotationAccessExtension.getLayer(org.eclipse.jface.text.source.Annotation) |
protected String |
getUnknownImageName(IMarker marker)
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
protected void |
initialize()
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
void |
paint(GC gc,
Canvas canvas,
Rectangle r)
Deprecated.
|
protected void |
setImage(Image image)
Deprecated.
As of 3.0, visual presentation is no longer supported,
annotation with a visible presentation should implement
IAnnotationPresentation |
protected void |
setLayer(int layer)
Deprecated.
As of 3.0, annotation with a visible presentation should implement
IAnnotationPresentation |
void |
update()
Informs this annotation about changes applied to its underlying marker
and adapts to those changes.
|
equals, getMarker, getText, hashCodegetType, isMarkedDeleted, isPersistent, markDeleted, setText, setTypepublic static final int PROBLEM_LAYER
IAnnotationAccessExtensionpublic MarkerAnnotation(IMarker marker)
marker - the markerprotected static Image getImage(Display display, ImageDescriptor descriptor)
IAnnotationPresentationdisplay - the displaydescriptor - the image descriptorprotected static Map getImageRegistry(Display display)
IAnnotationPresentationdisplay - the displayprotected void setImage(Image image)
IAnnotationPresentationimage - the new marker imageprotected void initialize()
IAnnotationPresentationpublic int getLayer()
IAnnotationAccessExtension.getLayer(org.eclipse.jface.text.source.Annotation)Note: This is only for backward compatibility.
protected void setLayer(int layer)
IAnnotationPresentationNote: This is only for backward compatibility.
layer - the layer of this annotationpublic void paint(GC gc, Canvas canvas, Rectangle r)
IAnnotationAccessExtension.paint(org.eclipse.jface.text.source.Annotation, GC, Canvas, Rectangle)Note: This is only for backward compatibility.
gc - the drawing GCcanvas - the canvas to draw onr - the bounds inside the canvas to draw onpublic void update()
update in class SimpleMarkerAnnotationprotected String getUnknownImageName(IMarker marker)
IAnnotationPresentationnull.
Subclasses may replace this method.marker - the marker of unknown typeprotected Image getImage(String name)
IAnnotationPresentationname - the name of the requested imagenull if there is no such imageprotected Image getImage(Display display)
IAnnotationPresentationdisplay - the display for which the image is requestedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.