public final class NamedHandleObjectLabelProvider extends LabelProvider
NamedHandlerObject
, which
exposes the name as the label.Constructor and Description |
---|
NamedHandleObjectLabelProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getText(Object element)
The text of the element is simply the name of the element if its a
defined instance of
NamedHandleObject . |
getImage
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, dispose, isLabelProperty, removeListener
public final String getText(Object element)
NamedHandleObject
. Otherwise, this
method just returns null
.getText
in interface ILabelProvider
getText
in class LabelProvider
element
- The element for which the text should be retrieved; may be
null
.null
if there is no
name or if the element is not a named handle object.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.