|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.part.MultiPageSelectionProvider
Manages the current selection in a multi-page editor by tracking the active nested editor within the multi-page editor. When the selection changes, notifications are sent to all registered listeners.
This class may be instantiated; it is not intended to be subclassed.
The base implementation of MultiPageEditor.init
creates
an instance of this class.
Constructor Summary | |
MultiPageSelectionProvider(MultiPageEditorPart multiPageEditor)
Creates a selection provider for the given multi-page editor. |
Method Summary | |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. |
void |
fireSelectionChanged(SelectionChangedEvent event)
Notifies all registered selection changed listeners that the editor's selection has changed. |
MultiPageEditorPart |
getMultiPageEditor()
Returns the multi-page editor. |
ISelection |
getSelection()
Returns the current selection for this provider. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. |
void |
setSelection(ISelection selection)
Sets the current selection for this selection provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiPageSelectionProvider(MultiPageEditorPart multiPageEditor)
multiPageEditor
- the multi-page editorMethod Detail |
public void addSelectionChangedListener(ISelectionChangedListener listener)
ISelectionProvider
addSelectionChangedListener
in interface ISelectionProvider
listener
- a selection changed listenerpublic void fireSelectionChanged(SelectionChangedEvent event)
event
- the selection changed eventpublic MultiPageEditorPart getMultiPageEditor()
public ISelection getSelection()
ISelectionProvider
getSelection
in interface ISelectionProvider
public void removeSelectionChangedListener(ISelectionChangedListener listener)
ISelectionProvider
removeSelectionChangedListener
in interface ISelectionProvider
listener
- a selection changed listenerpublic void setSelection(ISelection selection)
ISelectionProvider
setSelection
in interface ISelectionProvider
selection
- the new selection
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |