public interface ILabelDecorator extends IBaseLabelProvider
ILabelProvider| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
addListener, dispose, isLabelProperty, removeListenerImage decorateImage(Image image, Object element)
image - the input image to decorate, or null if the element has no imageelement - the element whose image is being decoratednull if no decoration is to be appliedLabelProviderChangedEvent,
IBaseLabelProvider.addListener(org.eclipse.jface.viewers.ILabelProviderListener),
CompositeImageDescriptorString decorateText(String text, Object element)
text - the input text label to decorateelement - the element whose image is being decoratednull if no decoration is to be appliedLabelProviderChangedEvent,
IBaseLabelProvider.addListener(org.eclipse.jface.viewers.ILabelProviderListener)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.