public class LabelProvider extends BaseLabelProvider implements ILabelProvider
toString value for its text and null for its
image.
This class may be used as is, or subclassed to provide richer labels. Subclasses may override any of the following methods:
isLabelPropertygetImagegetTextdispose| Constructor and Description |
|---|
LabelProvider()
Creates a new label provider.
|
| Modifier and Type | Method and Description |
|---|---|
Image |
getImage(Object element)
The
LabelProvider implementation of this
ILabelProvider method returns null. |
String |
getText(Object element)
The
LabelProvider implementation of this
ILabelProvider method returns the element's
toString string. |
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, dispose, isLabelProperty, removeListenerpublic Image getImage(Object element)
LabelProvider implementation of this
ILabelProvider method returns null.
Subclasses may override.getImage in interface ILabelProviderelement - the element for which to provide the label imagenull
if there is no image for the given objectpublic String getText(Object element)
LabelProvider implementation of this
ILabelProvider method returns the element's
toString string. Subclasses may override.getText in interface ILabelProviderelement - the element for which to provide the label textnull
if there is no text label for the given object
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.