public class MultiPageSelectionProvider implements IPostSelectionProvider(Code)
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.
removePostSelectionChangedListener(ISelectionChangedListener listener) Removes a listener for post selection changes in this multi page selection provider.
Creates a selection provider for the given multi-page editor.
Parameters: multiPageEditor - the multi-page editor
Method Detail
addPostSelectionChangedListener
public void addPostSelectionChangedListener(ISelectionChangedListener listener)(Code)
Adds a listener for post selection changes in this multi page selection provider.
Parameters: listener - a selection changed listener since: 3.2
addSelectionChangedListener
public void addSelectionChangedListener(ISelectionChangedListener listener)(Code)
firePostSelectionChanged
public void firePostSelectionChanged(SelectionChangedEvent event)(Code)
Notifies all post selection changed listeners that the editor's
selection has changed.
Parameters: event - the event to propogate. since: 3.2
fireSelectionChanged
public void fireSelectionChanged(SelectionChangedEvent event)(Code)
Notifies all registered selection changed listeners that the editor's
selection has changed. Only listeners registered at the time this method is
called are notified.
Parameters: event - the selection changed event