| org.eclipse.jface.viewers.ILabelDecorator
All known Subclasses: org.eclipse.jface.viewers.LabelDecorator,
ILabelDecorator | public interface ILabelDecorator extends IBaseLabelProvider(Code) | | A label decorator decorates the label text and image for some element.
The original label text and image are obtained by some other means,
for example by a label provider.
See Also: ILabelProvider |
Method Summary | |
public Image | decorateImage(Image image, Object element) Returns an image that is based on the given image,
but decorated with additional information relating to the state
of the provided element. | public String | decorateText(String text, Object element) Returns a text label that is based on the given text label,
but decorated with additional information relating to the state
of the provided element. |
decorateImage | public Image decorateImage(Image image, Object element)(Code) | | Returns an image that is based on the given image,
but decorated with additional information relating to the state
of the provided element.
Text and image decoration updates can occur as a result of other updates
within the workbench including deferred decoration by background processes.
Clients should handle labelProviderChangedEvents for the given element to get
the complete decoration.
See Also: LabelProviderChangedEvent See Also: IBaseLabelProvider.addListener Parameters: image - the input image to decorate, or null if the element has no image Parameters: element - the element whose image is being decorated the decorated image, or null if no decoration is to be applied See Also: org.eclipse.jface.resource.CompositeImageDescriptor |
decorateText | public String decorateText(String text, Object element)(Code) | | Returns a text label that is based on the given text label,
but decorated with additional information relating to the state
of the provided element.
Text and image decoration updates can occur as a result of other updates
within the workbench including deferred decoration by background processes.
Clients should handle labelProviderChangedEvents for the given element to get
the complete decoration.
See Also: LabelProviderChangedEvent See Also: IBaseLabelProvider.addListener Parameters: text - the input text label to decorate Parameters: element - the element whose image is being decorated the decorated text label, or null if no decoration is to be applied |
|
|