java.lang.Objectorg.eclipse.jface.viewers.ViewerComparator
org.eclipse.jface.viewers.ViewerSorter
com.sodius.mdw.platform.model.viewsupport.FilteredViewerSorter
A viewer sorter that can states its capability to handle specific elements.
Clients may subclass this class.
| Constructor Summary | |
FilteredViewerSorter()
Creates a new viewer sorter, which uses the default collator to sort strings. |
|
FilteredViewerSorter(Collator collator)
Creates a new viewer sorter, which uses the given collator to sort strings. |
|
| Method Summary | |
abstract boolean |
isEnabledFor(Object element)
Determines if the sorter is capable to handle the specified element. |
| Methods inherited from class org.eclipse.jface.viewers.ViewerSorter |
getCollator |
| Methods inherited from class org.eclipse.jface.viewers.ViewerComparator |
category, compare, isSorterProperty, sort |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FilteredViewerSorter()
public FilteredViewerSorter(Collator collator)
collator - the collator to use to sort strings| Method Detail |
public abstract boolean isEnabledFor(Object element)
compare() method won't be called on such element.
true if the sorter can handle the specified element,
false otherwise.