|
Eclipse JDT Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.ui.text.java.CompletionProposalComparator
Comparator for java completion proposals. Completion proposals can be sorted by relevance or alphabetically.
Note: this comparator imposes orderings that are inconsistent with equals.
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 |
public CompletionProposalComparator()
Method Detail |
public void setOrderAlphabetically(boolean orderAlphabetically)
false
, i.e. order by
relevance.
orderAlphabetically
- true
to order alphabetically,
false
to order by relevancepublic int compare(Object o1, Object o2)
compare
in interface Comparator
|
Eclipse JDT Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |