Package org.eclipse.jface.viewers
Class SelectionChangedEvent
java.lang.Object
java.util.EventObject
org.eclipse.jface.viewers.SelectionChangedEvent
- All Implemented Interfaces:
Serializable
Event object describing a selection change. The source of these
events is a selection provider.
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSelectionChangedEvent
(ISelectionProvider source, ISelection selection) Creates a new event for the given source and selection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the selection.Returns the selection provider that is the source of this event.Returns the selection.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
selection
The selection.
-
-
Constructor Details
-
SelectionChangedEvent
Creates a new event for the given source and selection.- Parameters:
source
- the selection providerselection
- the selection
-
-
Method Details
-
getSelection
Returns the selection.- Returns:
- the selection
-
getStructuredSelection
Returns the selection.- Returns:
- IStructuredSelection
- Throws:
ClassCastException
- if the selection is not an instance of IStructuredSelection- Since:
- 3.13
-
getSelectionProvider
Returns the selection provider that is the source of this event.- Returns:
- the originating selection provider
-