public class MasterDetailSelectionProvider extends Object implements IMasterDetailSelectionProvider, org.eclipse.jface.viewers.IPostSelectionProvider
Constructor and Description |
---|
MasterDetailSelectionProvider(org.eclipse.jface.viewers.ISelectionProvider master)
Initializes me with the
master selection provider to which I delegate. |
Modifier and Type | Method and Description |
---|---|
void |
addPostSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener) |
void |
addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener) |
protected org.eclipse.jface.viewers.ISelectionProvider |
getActiveSelectionProvider()
Get the currently active selection provider.
|
org.eclipse.jface.viewers.ISelection |
getSelection() |
protected void |
pumpSelection()
Distribute my current selection to listeners.
|
void |
removePostSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener) |
void |
removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener) |
void |
setDetailSelectionProvider(org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Set the active detail selection provider, or
null if either
there is no detail or it is not active (in which case the master
selection provider is deemed active). |
void |
setSelection(org.eclipse.jface.viewers.ISelection selection) |
public MasterDetailSelectionProvider(org.eclipse.jface.viewers.ISelectionProvider master)
master
selection provider to which I delegate.master
- my master selection providerprotected final org.eclipse.jface.viewers.ISelectionProvider getActiveSelectionProvider()
public org.eclipse.jface.viewers.ISelection getSelection()
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
public void setSelection(org.eclipse.jface.viewers.ISelection selection)
setSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
addSelectionChangedListener
in interface org.eclipse.jface.viewers.ISelectionProvider
public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
removeSelectionChangedListener
in interface org.eclipse.jface.viewers.ISelectionProvider
public void addPostSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
addPostSelectionChangedListener
in interface org.eclipse.jface.viewers.IPostSelectionProvider
public void removePostSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
removePostSelectionChangedListener
in interface org.eclipse.jface.viewers.IPostSelectionProvider
public void setDetailSelectionProvider(org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
IMasterDetailSelectionProvider
null
if either
there is no detail or it is not active (in which case the master
selection provider is deemed active).setDetailSelectionProvider
in interface IMasterDetailSelectionProvider
selectionProvider
- the detail selection provider to activate,
or null
to active the implicit master selection providerprotected final void pumpSelection()
Copyright © 2019. All rights reserved.