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 . |
addListener, dispose, fireLabelProviderChanged, getImage, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
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.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.