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.text.java
Class CompletionProposalComparator


java.lang.Object
  extended by 
org.eclipse.jdt.ui.text.java.CompletionProposalComparator
All Implemented Interfaces:
Comparator

public final class CompletionProposalComparator
extends Object
implements Comparator

Comparator for java completion proposals. Completion proposals can be sorted by relevance or alphabetically.

Note: this comparator imposes orderings that are inconsistent with equals.

Since:
3.1

Constructor Summary
CompletionProposalComparator ()
          Creates a comparator that sorts by relevance.
 
Method Summary
 int compare ( Object o1, Object o2)
           
 void setOrderAlphabetically (boolean orderAlphabetically)
          Sets the sort order.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util. Comparator
equals
 

Constructor Detail

CompletionProposalComparator

public CompletionProposalComparator()
Creates a comparator that sorts by relevance.

Method Detail

setOrderAlphabetically

public void setOrderAlphabetically(boolean orderAlphabetically)
Sets the sort order. Default is false, i.e. order by relevance.

Parameters:
orderAlphabetically - true to order alphabetically, false to order by relevance

compare

public int compare(
Object o1,
                   
Object o2)
Specified by:
compare in interface Comparator

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