Package org.eclipse.ui.part
Class PageBookView.SelectionProvider
- java.lang.Object
-
- org.eclipse.ui.part.PageBookView.SelectionProvider
-
- All Implemented Interfaces:
IPostSelectionProvider,ISelectionProvider
- Enclosing class:
- PageBookView
protected class PageBookView.SelectionProvider extends Object implements IPostSelectionProvider
A selection provider/listener for this view. It is a selection provider for this view's site.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSelectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPostSelectionChangedListener(ISelectionChangedListener listener)Adds a listener for post selection changes in this selection provider.voidaddSelectionChangedListener(ISelectionChangedListener listener)Adds a listener for selection changes in this selection provider.ISelectiongetSelection()Returns the current selection for this provider.voidpostSelectionChanged(SelectionChangedEvent event)The selection has changed, so notify any post-selection listeners.voidremovePostSelectionChangedListener(ISelectionChangedListener listener)Removes the given listener for post selection changes from this selection provider.voidremoveSelectionChangedListener(ISelectionChangedListener listener)Removes the given selection change listener from this selection provider.voidselectionChanged(SelectionChangedEvent event)The selection has changed.voidsetSelection(ISelection selection)Sets the current selection for this selection provider.
-
-
-
Method Detail
-
addSelectionChangedListener
public void addSelectionChangedListener(ISelectionChangedListener listener)
Description copied from interface:ISelectionProviderAdds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.- Specified by:
addSelectionChangedListenerin interfaceISelectionProvider- Parameters:
listener- a selection changed listener
-
getSelection
public ISelection getSelection()
Description copied from interface:ISelectionProviderReturns the current selection for this provider.- Specified by:
getSelectionin interfaceISelectionProvider- Returns:
- the current selection
-
removeSelectionChangedListener
public void removeSelectionChangedListener(ISelectionChangedListener listener)
Description copied from interface:ISelectionProviderRemoves the given selection change listener from this selection provider. Has no effect if an identical listener is not registered.- Specified by:
removeSelectionChangedListenerin interfaceISelectionProvider- Parameters:
listener- a selection changed listener
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
The selection has changed. Process the event, notifying selection listeners and post selection listeners.- Parameters:
event- the change
-
postSelectionChanged
public void postSelectionChanged(SelectionChangedEvent event)
The selection has changed, so notify any post-selection listeners.- Parameters:
event- the change
-
setSelection
public void setSelection(ISelection selection)
Description copied from interface:ISelectionProviderSets the current selection for this selection provider.- Specified by:
setSelectionin interfaceISelectionProvider- Parameters:
selection- the new selection
-
addPostSelectionChangedListener
public void addPostSelectionChangedListener(ISelectionChangedListener listener)
Description copied from interface:IPostSelectionProviderAdds a listener for post selection changes in this selection provider. Has no effect if an identical listener is already registered.- Specified by:
addPostSelectionChangedListenerin interfaceIPostSelectionProvider- Parameters:
listener- a selection changed listener
-
removePostSelectionChangedListener
public void removePostSelectionChangedListener(ISelectionChangedListener listener)
Description copied from interface:IPostSelectionProviderRemoves the given listener for post selection changes from this selection provider. Has no effect if an identical listener is not registered.- Specified by:
removePostSelectionChangedListenerin interfaceIPostSelectionProvider- Parameters:
listener- a selection changed listener
-
-