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, removeListener
Image 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)
,
CompositeImageDescriptor
String 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)
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.