org.eclipse.jdt.ui.text.java
Class CompletionProposalComparator
java.lang.Object
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.
- Since:
- 3.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletionProposalComparator
public CompletionProposalComparator()
- Creates a comparator that sorts by relevance.
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
Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.