Package org.eclipse.ui.texteditor
Interface IAnnotationImageProvider
public interface IAnnotationImageProvider
Provides an image for a given annotation.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptiongetImageDescriptor
(String imageDescritporId) Returns the image descriptor for the given symbolic name.getImageDescriptorId
(Annotation annotation) Returns the image descriptor id of the image for the given annotation.getManagedImage
(Annotation annotation) Returns the image for the given annotation ornull
.
-
Method Details
-
getManagedImage
Returns the image for the given annotation ornull
. The returned image is managed by this annotation image provided. If the annotation image provider does not support managed images, clients have to manage the annotation images. For that, clients first ask for the image descriptor id for a given annotation (getImageDescriptorId(Annotation)
) as then for the image descriptor. The image descriptor id should be used to manage the annotation images using anImageRegistry
.- Parameters:
annotation
- the annotation- Returns:
- the managed image
-
getImageDescriptorId
Returns the image descriptor id of the image for the given annotation.- Parameters:
annotation
- the annotation- Returns:
- the image descriptor id
-
getImageDescriptor
Returns the image descriptor for the given symbolic name.- Parameters:
imageDescritporId
- the image descriptor id- Returns:
- the image descriptor
-