Package org.eclipse.jface.viewers
Class BaseLabelProvider
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
- All Implemented Interfaces:
IBaseLabelProvider
- Direct Known Subclasses:
CellLabelProvider
,LabelProvider
BaseLabelProvider is a default concrete implementation of
IBaseLabelProvider
- Since:
- 3.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ILabelProviderListener listener) Adds a listener to this label provider.void
dispose()
TheBaseLabelProvider
implementation of thisIBaseLabelProvider
method clears its internal listener list.protected void
Fires a label provider changed event to all registered listeners Only listeners registered at the time this method is called are notified.boolean
isLabelProperty
(Object element, String property) TheBaseLabelProvider
implementation of thisIBaseLabelProvider
method returnstrue
.void
removeListener
(ILabelProviderListener listener) Removes a listener to this label provider.Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
BaseLabelProvider
public BaseLabelProvider()
-
-
Method Details
-
addListener
Description copied from interface:IBaseLabelProvider
Adds a listener to this label provider. Has no effect if an identical listener is already registered.Label provider listeners are informed about state changes that affect the rendering of the viewer that uses this label provider.
- Specified by:
addListener
in interfaceIBaseLabelProvider
- Parameters:
listener
- a label provider listener
-
dispose
public void dispose()TheBaseLabelProvider
implementation of thisIBaseLabelProvider
method clears its internal listener list. Subclasses may extend but should call the super implementation.- Specified by:
dispose
in interfaceIBaseLabelProvider
-
isLabelProperty
TheBaseLabelProvider
implementation of thisIBaseLabelProvider
method returnstrue
. Subclasses may override.- Specified by:
isLabelProperty
in interfaceIBaseLabelProvider
- Parameters:
element
- the elementproperty
- the property- Returns:
true
if the label would be affected, andfalse
if it would be unaffected
-
removeListener
Description copied from interface:IBaseLabelProvider
Removes a listener to this label provider. Has no effect if an identical listener is not registered.- Specified by:
removeListener
in interfaceIBaseLabelProvider
- Parameters:
listener
- a label provider listener
-
fireLabelProviderChanged
Fires a label provider changed event to all registered listeners Only listeners registered at the time this method is called are notified.- Parameters:
event
- a label provider changed event- See Also:
-