java.lang.Objectorg.eclipse.jface.viewers.ViewerSorter
com.ibm.jdg2e.view.files.viewer.TimestampSorter
Sorts by raw timestamp of resource. This uses the file system timestamp so even if the resource is out of sync with the workspace it will sort to top when requested.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.viewers.ViewerSorter |
|---|
collator |
| Constructor Summary | |
|---|---|
TimestampSorter()
|
|
| Method Summary | |
|---|---|
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object e1,
java.lang.Object e2)
This compare logic swaps the passed values in the return statement to sort from highest to lowest. |
| Methods inherited from class org.eclipse.jface.viewers.ViewerSorter |
|---|
category, getCollator, isSorterProperty, sort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimestampSorter()
| Method Detail |
public int compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object e1,
java.lang.Object e2)
The string value passed back is the date in milliseconds.
ViewerSorter.compare(org.eclipse.jface.viewers.Viewer,
java.lang.Object, java.lang.Object)