Package org.eclipse.jface.viewers
Class LabelProviderChangedEvent
java.lang.Object
java.util.EventObject
org.eclipse.jface.viewers.LabelProviderChangedEvent
- All Implemented Interfaces:
Serializable
Event object describing a label provider state change.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCreates a new event for the given source, indicating that all labels provided by the source are no longer valid and should be updated.LabelProviderChangedEvent
(IBaseLabelProvider source, Object element) Creates a new event for the given source, indicating that the label provided by the source for the given element is no longer valid and should be updated.LabelProviderChangedEvent
(IBaseLabelProvider source, Object[] elements) Creates a new event for the given source, indicating that the label provided by the source for the given elements is no longer valid and should be updated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the first element whose label needs to be updated, ornull
if all labels need to be updated.Object[]
Returns the elements whose labels need to be updated, ornull
if all labels need to be updated.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LabelProviderChangedEvent
Creates a new event for the given source, indicating that all labels provided by the source are no longer valid and should be updated.- Parameters:
source
- the label provider
-
LabelProviderChangedEvent
Creates a new event for the given source, indicating that the label provided by the source for the given elements is no longer valid and should be updated.- Parameters:
source
- the label providerelements
- the element whose labels have changed
-
LabelProviderChangedEvent
Creates a new event for the given source, indicating that the label provided by the source for the given element is no longer valid and should be updated.- Parameters:
source
- the label providerelement
- the element whose label needs to be updated
-
-
Method Details
-
getElement
Returns the first element whose label needs to be updated, ornull
if all labels need to be updated.- Returns:
- the element whose label needs to be updated or
null
-
getElements
Returns the elements whose labels need to be updated, ornull
if all labels need to be updated.- Returns:
- the element whose labels need to be updated or
null
-