org.eclipse.wst.jsdt.ui
Class JavaScriptElementComparator

java.lang.Object
  extended by ViewerComparator
      extended by org.eclipse.wst.jsdt.ui.JavaScriptElementComparator

public class JavaScriptElementComparator
extends ViewerComparator

Viewer comparator for JavaScript elements. Ordered by element category, then by element name. Package fragment roots are sorted as ordered on the classpath.

This class may be instantiated; it is not intended to be subclassed.

Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
JavaScriptElementComparator()
          Constructor.
 
Method Summary
 int category(java.lang.Object element)
           
 int compare(Viewer viewer, java.lang.Object e1, java.lang.Object e2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptElementComparator

public JavaScriptElementComparator()
Constructor.

Method Detail

category

public int category(java.lang.Object element)

compare

public int compare(Viewer viewer,
                   java.lang.Object e1,
                   java.lang.Object e2)