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)
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.