Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui
Class JavaElementComparator


java.lang.Object
  extended by 

org.eclipse.jface.viewers.ViewerComparator
      extended by 
org.eclipse.jdt.ui.JavaElementComparator

public class JavaElementComparator
extends ViewerComparator

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.

Since:
3.3
Restriction:
This class is not intended to be subclassed by clients.

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

JavaElementComparator

public JavaElementComparator()
Constructor.

Method Detail

category

public int category(
Object element)
Overrides:
category in class ViewerComparator

compare

public int compare(
Viewer viewer,
                   
Object e1,
                   
Object e2)
Overrides:
compare in class ViewerComparator

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire