public interface IViewerLabelProvider extends IBaseLabelProvider
IBaseLabelProvider
with the methods
to update the label for a given element. The label is represented by a
ViewerLabel
.
Unlike ILabelProvider
, this allows the text and image to be
set in the same request, rather than via separate requests.
It also allows the current values for the text and image to be considered by the label provider, allowing for potential optimizations. For example, decorating label providers that run in the background can hold off applying an update to a previously populated label until the decoration is ready, thereby reducing flicker.
IDelayedLabelDecorator
Modifier and Type | Method and Description |
---|---|
void |
updateLabel(ViewerLabel label,
Object element)
Updates the label for the given element.
|
addListener, dispose, isLabelProperty, removeListener
void updateLabel(ViewerLabel label, Object element)
label
- the label to updateelement
- the element
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.