public class MarkerAnnotation extends SimpleMarkerAnnotation implements IQuickFixableAnnotation
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 |
boolean |
isQuickFixable()
Tells whether there are quick fixes for this annotation.
|
boolean |
isQuickFixableStateSet()
Tells whether the quick fixable state has been set.
|
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 |
setQuickFixable(boolean state)
Sets whether there are quick fixes available for
this annotation.
|
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 requestedpublic void setQuickFixable(boolean state)
setQuickFixable in interface IQuickFixableAnnotationstate - true if there are quick fixes available, false otherwisepublic boolean isQuickFixableStateSet()
Normally this means IQuickFixableAnnotation.setQuickFixable(boolean) has been
called at least once but it can also be hard-coded, e.g. always
return true.
isQuickFixableStateSet in interface IQuickFixableAnnotationtrue if the state has been setpublic boolean isQuickFixable()
Note: This method must only be called
if IQuickFixableAnnotation.isQuickFixableStateSet() returns true.
isQuickFixable in interface IQuickFixableAnnotationtrue if this annotation offers quick fixes
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.