com.ibm.jdg2e.view.files.viewer
Class PathSorter

java.lang.Object
  extended byorg.eclipse.jface.viewers.ViewerSorter
      extended bycom.ibm.jdg2e.view.files.viewer.PathSorter

public class PathSorter
extends org.eclipse.jface.viewers.ViewerSorter

Sorts by resource path.


Field Summary
 
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
 
Constructor Summary
PathSorter()
           
 
Method Summary
 int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object e1, java.lang.Object e2)
          Compare is based on the path to the resource using the parent as the reference.
 
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

PathSorter

public PathSorter()
Method Detail

compare

public int compare(org.eclipse.jface.viewers.Viewer viewer,
                   java.lang.Object e1,
                   java.lang.Object e2)
Compare is based on the path to the resource using the parent as the reference.

See Also:
ViewerSorter.compare(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)