Package org.eclipse.jface.viewers
Class OpenEvent
java.lang.Object
java.util.EventObject
org.eclipse.jface.viewers.OpenEvent
- All Implemented Interfaces:
Serializable
Event object describing an open which may be generated from a
selection or default selection event. The source of these
events is a viewer.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionOpenEvent
(Viewer source, ISelection selection) Creates a new event for the given source and selection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the selection.Returns the viewer that is the source of this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
selection
The selection.
-
-
Constructor Details
-
OpenEvent
Creates a new event for the given source and selection.- Parameters:
source
- the viewerselection
- the selection
-
-
Method Details
-
getSelection
Returns the selection.- Returns:
- the selection
-
getViewer
Returns the viewer that is the source of this event.- Returns:
- the originating viewer
-