|
Eclipse Platform Release 3.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)
Method Detail |
public void addSelectionChangedListener(ISelectionChangedListener listener)
public void fireSelectionChanged(SelectionChangedEvent event)
public MultiPageEditorPart getMultiPageEditor()
public ISelection getSelection()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
public void setSelection(ISelection selection)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.