|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.ViewerComparator
org.eclipse.jdt.ui.JavaElementComparator
public class JavaElementComparator
Viewer comparator for Java 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.
Constructor Summary | |
---|---|
JavaElementComparator()
Constructor. |
Method Summary | |
---|---|
int |
category(Object element)
|
int |
compare(Viewer viewer,
Object e1,
Object e2)
|
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator |
---|
getComparator, isSorterProperty, sort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaElementComparator()
Method Detail |
---|
public int category(Object element)
category
in class ViewerComparator
public int compare(Viewer viewer, Object e1, Object e2)
compare
in class ViewerComparator
|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.