|
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
org.eclipse.ui.texteditor.MarkerAnnotation
Annotation representing a marker on a resource in the workspace. This class may be instantiated or be subclassed.
IMarker
Field Summary | |
---|---|
static int |
PROBLEM_LAYER
Deprecated. As of 3.0, replaced by IAnnotationAccessExtension |
Fields inherited from class org.eclipse.jface.text.source.Annotation |
---|
TYPE_UNKNOWN |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. As of 3.0 replaced by IAnnotationAccessExtension.paint(org.eclipse.jface.text.source.Annotation, GC, Canvas, Rectangle) |
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. |
Methods inherited from class org.eclipse.ui.texteditor.SimpleMarkerAnnotation |
---|
equals, getMarker, getText, hashCode |
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 |
Field Detail |
public static final int PROBLEM_LAYER
IAnnotationAccessExtension
Constructor Detail |
public MarkerAnnotation(IMarker marker)
marker
- the markerpublic MarkerAnnotation(String annotationType, IMarker marker)
annotationType
- the annotation typemarker
- the markerMethod Detail |
protected static Image getImage(Display display, ImageDescriptor descriptor)
IAnnotationPresentation
display
- the displaydescriptor
- the image descriptor
protected static Map getImageRegistry(Display display)
IAnnotationPresentation
display
- the display
protected void setImage(Image image)
IAnnotationPresentation
image
- the new marker imageprotected void initialize()
IAnnotationPresentation
public int getLayer()
IAnnotationAccessExtension.getLayer(org.eclipse.jface.text.source.Annotation)
Note: This is only for backward compatibility.
protected void setLayer(int layer)
IAnnotationPresentation
Note: 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 SimpleMarkerAnnotation
protected String getUnknownImageName(IMarker marker)
IAnnotationPresentation
null
.
Subclasses may replace this method.
marker
- the marker of unknown type
protected Image getImage(String name)
IAnnotationPresentation
name
- the name of the requested image
null
if there is no such imageprotected Image getImage(Display display)
IAnnotationPresentation
display
- the display for which the image is requested
|
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.