org.eclipse.jface.text.contentassist
public interface ICompletionProposalSorter
ICompletionProposalSorter provides support for sorting proposals of a content
assistant.
Implementors of this interface have to register this sorter with the content assist whenever
needed. See ContentAssistant.setSorter(ICompletionProposalSorter) for more information on
how to register a proposal sorter.
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ICompletionProposal p1,
ICompletionProposal p2)
The orderings imposed by an implementation need not be consistent with equals.
|
int compare(ICompletionProposal p1, ICompletionProposal p2)
p1 - the first proposal to be comparedp2 - the second proposal to be comparedComparator.compare(java.lang.Object, java.lang.Object)Guidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.