Class ListeningLabelProvider<E>
java.lang.Object
org.eclipse.jface.internal.databinding.provisional.viewers.ViewerLabelProvider
org.eclipse.jface.databinding.viewers.ListeningLabelProvider<E>
- Type Parameters:
E
- type of the viewer elements that labels are provided for
- All Implemented Interfaces:
IBaseLabelProvider
,ILabelProvider
,IViewerLabelProvider
public abstract class ListeningLabelProvider<E>
extends org.eclipse.jface.internal.databinding.provisional.viewers.ViewerLabelProvider
- Since:
- 1.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addListenerTo
(E next) void
dispose()
Disposes of this label provider.protected abstract void
removeListenerFrom
(E next) Methods inherited from class org.eclipse.jface.internal.databinding.provisional.viewers.ViewerLabelProvider
addListener, fireChangeEvent, getImage, getText, isLabelProperty, removeListener, updateLabel
-
Constructor Details
-
ListeningLabelProvider
- Parameters:
itemsThatNeedLabels
- the managed elements
-
-
Method Details
-
removeListenerFrom
- Parameters:
next
- element to remove listener from
-
addListenerTo
- Parameters:
next
- element to add listener to
-
dispose
public void dispose()Description copied from interface:IBaseLabelProvider
Disposes of this label provider. When a label provider is attached to a viewer, the viewer will automatically call this method when the viewer is being closed. When label providers are used outside of the context of a viewer, it is the client's responsibility to ensure that this method is called when the provider is no longer needed.- Specified by:
dispose
in interfaceIBaseLabelProvider
- Overrides:
dispose
in classorg.eclipse.jface.internal.databinding.provisional.viewers.ViewerLabelProvider
-