metricsOverlay.views
Class ActiveMappingSorter
java.lang.Object
org.eclipse.jface.viewers.ViewerComparator
org.eclipse.jface.viewers.ViewerSorter
metricsOverlay.views.ActiveMappingSorter
public class ActiveMappingSorter
- extends org.eclipse.jface.viewers.ViewerSorter
This class provides sorting functionality to the tableviewer.
- Version:
- 2/9/2009
- Author:
- Matthew Harward
Constructor Summary |
ActiveMappingSorter(int criteria,
boolean desc)
Creates a resource sorter that will use the given sort criteria. |
Method Summary |
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object o1,
java.lang.Object o2)
|
int |
getCriteria()
Returns the sort criteria of this this sorter. |
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter |
getCollator |
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator |
category, isSorterProperty, sort |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTIVE
public static final int ACTIVE
- See Also:
- Constant Field Values
MAPPING
public static final int MAPPING
- See Also:
- Constant Field Values
METRIC
public static final int METRIC
- See Also:
- Constant Field Values
AUGMENT
public static final int AUGMENT
- See Also:
- Constant Field Values
COUNT
public static final int COUNT
- See Also:
- Constant Field Values
DESC
public static final boolean DESC
- See Also:
- Constant Field Values
ASC
public static final boolean ASC
- See Also:
- Constant Field Values
ActiveMappingSorter
public ActiveMappingSorter(int criteria,
boolean desc)
- Creates a resource sorter that will use the given sort criteria.
- Parameters:
criteria
- the sort criterion to use: one of NAME
or
TYPE
compare
public int compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object o1,
java.lang.Object o2)
- Overrides:
compare
in class org.eclipse.jface.viewers.ViewerComparator
getCriteria
public int getCriteria()
- Returns the sort criteria of this this sorter.
- Returns:
- the sort criterion