public class SelectionTrackerImpl extends Object implements SelectionTracker
Constructor and Description |
---|
SelectionTrackerImpl(org.eclipse.ui.ISelectionService selectionService)
Creates a tracker based on a selection service
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSelection(org.eclipse.jface.viewers.ISelection selection)
Add the given selection
|
<T extends org.eclipse.jface.viewers.ISelection> |
getSelection(Class<T> selectionType)
Get the selection last with the given type
|
public SelectionTrackerImpl(org.eclipse.ui.ISelectionService selectionService)
selectionService
- the selection service to trackprotected void addSelection(org.eclipse.jface.viewers.ISelection selection)
selection
- the new selectionpublic <T extends org.eclipse.jface.viewers.ISelection> T getSelection(Class<T> selectionType)
SelectionTracker
getSelection
in interface SelectionTracker
T
- the selection typeselectionType
- the selection classnull
if none is
availableSelectionTracker.getSelection(Class)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a