|
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.ui.texteditor.DefaultMarkerAnnotationAccess
public class DefaultMarkerAnnotationAccess
Default class for accessing marker annotation properties.
| Field Summary | |
|---|---|
static java.lang.String |
BOOKMARK_SYSTEM_IMAGE
Constant for the bookmark system image. |
static java.lang.String |
ERROR_SYSTEM_IMAGE
Constant for the error system image. |
protected MarkerAnnotationPreferences |
fMarkerAnnotationPreferences
Deprecated. As of 3.0, no replacement |
static java.lang.String |
INFO_SYSTEM_IMAGE
Constant for the info system image. |
static java.lang.String |
TASK_SYSTEM_IMAGE
Constant for the task system image. |
static java.lang.String |
UNKNOWN
Deprecated. As of 3.0, replaced by Annotation.TYPE_UNKNOWN |
static java.lang.String |
WARNING_SYSTEM_IMAGE
Constant for the warning system image. |
| Fields inherited from interface org.eclipse.jface.text.source.IAnnotationAccessExtension |
|---|
DEFAULT_LAYER |
| Constructor Summary | |
|---|---|
DefaultMarkerAnnotationAccess()
Creates a new default marker annotation access using the standard preference lookup strategy which is the one provided by the enclosing plug-in. |
|
DefaultMarkerAnnotationAccess(MarkerAnnotationPreferences markerAnnotationPreferences)
Deprecated. As of 3.0, replaced by DefaultMarkerAnnotationAccess() |
|
| Method Summary | |
|---|---|
protected AnnotationPreferenceLookup |
getAnnotationPreferenceLookup()
Returns the annotation preference lookup used by this annotation access. |
protected org.eclipse.ui.internal.texteditor.AnnotationTypeHierarchy |
getAnnotationTypeHierarchy()
Returns the annotation type hierarchy used by this annotation access. |
int |
getLayer(Annotation annotation)
Returns the layer for given annotation. |
java.lang.Object[] |
getSupertypes(java.lang.Object annotationType)
Returns the list of super types for the given annotation type. |
java.lang.Object |
getType(Annotation annotation)
Returns the type of the given annotation. |
java.lang.String |
getTypeLabel(Annotation annotation)
Returns the label for the given annotation's type. |
boolean |
isMultiLine(Annotation annotation)
Returns whether the given annotation spans multiple lines. |
boolean |
isPaintable(Annotation annotation)
Returns true if painting annotation will produce something
meaningful, false if not. |
boolean |
isSubtype(java.lang.Object annotationType,
java.lang.Object potentialSupertype)
Returns true if the given annotation is of the given type
or false otherwise. |
boolean |
isTemporary(Annotation annotation)
Returns whether the given annotation is temporary rather than persistent. |
void |
paint(Annotation annotation,
GC gc,
Canvas canvas,
Rectangle bounds)
Draws a graphical representation of the given annotation within the given bounds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UNKNOWN
public static final java.lang.String ERROR_SYSTEM_IMAGE
error
public static final java.lang.String WARNING_SYSTEM_IMAGE
warning
public static final java.lang.String INFO_SYSTEM_IMAGE
info
public static final java.lang.String TASK_SYSTEM_IMAGE
task
public static final java.lang.String BOOKMARK_SYSTEM_IMAGE
bookmark
protected MarkerAnnotationPreferences fMarkerAnnotationPreferences
| Constructor Detail |
|---|
public DefaultMarkerAnnotationAccess(MarkerAnnotationPreferences markerAnnotationPreferences)
DefaultMarkerAnnotationAccess()
markerAnnotationPreferences - public DefaultMarkerAnnotationAccess()
| Method Detail |
|---|
protected AnnotationPreferenceLookup getAnnotationPreferenceLookup()
public java.lang.Object getType(Annotation annotation)
IAnnotationAccess
getType in interface IAnnotationAccessannotation - the annotation
null if it has none.public boolean isMultiLine(Annotation annotation)
IAnnotationAccess
isMultiLine in interface IAnnotationAccessannotation - the annotation
true if the annotation spans multiple lines,
false otherwisepublic boolean isTemporary(Annotation annotation)
IAnnotationAccess
isTemporary in interface IAnnotationAccessannotation - the annotation
true if the annotation is temporary,
false otherwisepublic java.lang.String getTypeLabel(Annotation annotation)
IAnnotationAccessExtension
getTypeLabel in interface IAnnotationAccessExtensionannotation - the annotation
null if no such label existspublic int getLayer(Annotation annotation)
IAnnotationAccessExtension
getLayer in interface IAnnotationAccessExtensionannotation - the annotation
public void paint(Annotation annotation,
GC gc,
Canvas canvas,
Rectangle bounds)
IAnnotationAccessExtension
paint in interface IAnnotationAccessExtensionannotation - the given annotationgc - the drawing GCcanvas - the canvas to draw onbounds - the bounds inside the canvas to draw onpublic boolean isPaintable(Annotation annotation)
IAnnotationAccessExtensiontrue if painting annotation will produce something
meaningful, false if not. E.g. if no image is available.
isPaintable in interface IAnnotationAccessExtensionannotation - the annotation to check whether it can be painted
true if painting annotation will succeed
public boolean isSubtype(java.lang.Object annotationType,
java.lang.Object potentialSupertype)
IAnnotationAccessExtensiontrue if the given annotation is of the given type
or false otherwise.
isSubtype in interface IAnnotationAccessExtensionannotationType - the annotation typepotentialSupertype - the potential super annotation type
true if annotation type is a sub-type of the potential annotation super typepublic java.lang.Object[] getSupertypes(java.lang.Object annotationType)
IAnnotationAccessExtension
getSupertypes in interface IAnnotationAccessExtensionannotationType - the annotation type to check
protected org.eclipse.ui.internal.texteditor.AnnotationTypeHierarchy getAnnotationTypeHierarchy()
|
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.