Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.util.selection.AbstractSelectionProvider
      extended by eu.esdihumboldt.hale.ui.util.selection.SelectionFilter
All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.services.IDisposable

public abstract class SelectionFilter
extends AbstractSelectionProvider
implements org.eclipse.ui.services.IDisposable

Selection provider that wraps another selection provider and filters selections before they are passed to an external object.

Author:
Simon Templer

Constructor Summary
SelectionFilter(org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
          Create a selection filter
 
Method Summary
 void dispose()
           
protected abstract  org.eclipse.jface.viewers.ISelection filter(org.eclipse.jface.viewers.ISelection selection)
          Filter a selection from the internal selection provider that will be passed outside
 org.eclipse.jface.viewers.ISelection getSelection()
           
 
Methods inherited from class eu.esdihumboldt.hale.ui.util.selection.AbstractSelectionProvider
addSelectionChangedListener, fireSelectionChange, getLastSelection, removeSelectionChangedListener, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionFilter

public SelectionFilter(org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Create a selection filter

Parameters:
selectionProvider - the internal selection provider
Method Detail

filter

protected abstract org.eclipse.jface.viewers.ISelection filter(org.eclipse.jface.viewers.ISelection selection)
Filter a selection from the internal selection provider that will be passed outside

Parameters:
selection - the internal selection
Returns:
the selection to used externally

getSelection

public org.eclipse.jface.viewers.ISelection getSelection()
Specified by:
getSelection in interface org.eclipse.jface.viewers.ISelectionProvider
Overrides:
getSelection in class AbstractSelectionProvider
See Also:
AbstractSelectionProvider.getSelection()

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.services.IDisposable
See Also:
IDisposable.dispose()

Humboldt Alignment Editor 2.5.0

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