Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.selection
Class SelectionTrackerImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.util.selection.SelectionTrackerImpl
All Implemented Interfaces:
SelectionTracker

public class SelectionTrackerImpl
extends Object
implements SelectionTracker

Default selection tracker

Author:
Simon Templer

Constructor Summary
SelectionTrackerImpl(org.eclipse.ui.ISelectionService selectionService)
          Creates a tracker based on a selection service
 
Method Summary
protected  void addSelection(org.eclipse.jface.viewers.ISelection selection)
          Add the given selection
<T extends org.eclipse.jface.viewers.ISelection>
T
getSelection(Class<T> selectionType)
          Get the selection last with the given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionTrackerImpl

public SelectionTrackerImpl(org.eclipse.ui.ISelectionService selectionService)
Creates a tracker based on a selection service

Parameters:
selectionService - the selection service to track
Method Detail

addSelection

protected void addSelection(org.eclipse.jface.viewers.ISelection selection)
Add the given selection

Parameters:
selection - the new selection

getSelection

public <T extends org.eclipse.jface.viewers.ISelection> T getSelection(Class<T> selectionType)
Description copied from interface: SelectionTracker
Get the selection last with the given type

Specified by:
getSelection in interface SelectionTracker
Type Parameters:
T - the selection type
Parameters:
selectionType - the selection class
Returns:
the last matching selection or null if none is available
See Also:
SelectionTracker.getSelection(Class)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d