| java.lang.Object org.eclipse.jdt.ui.text.java.AbstractProposalSorter
All known Subclasses: org.eclipse.jdt.internal.ui.text.java.AlphabeticSorter, org.eclipse.jdt.internal.ui.text.java.RelevanceSorter,
AbstractProposalSorter | protected AbstractProposalSorter()(Code) | | Creates a new sorter. Note that subclasses must provide a zero-argument constructor to be
instantiatable via
IConfigurationElement.createExecutableExtension(String) .
|
beginSorting | public void beginSorting(ContentAssistInvocationContext context)(Code) | | Called once before sorting.
Clients may override, the default implementation does nothing.
Parameters: context - the context of the content assist invocation |
compare | abstract public int compare(ICompletionProposal p1, ICompletionProposal p2)(Code) | | Implements the same contract as
Comparator.compare(ObjectObject) but with
completion proposals as parameters. This method will implement the
Comparator interface if this class is ever converted to extend
Comparator<ICompletionProposal> .
The orderings imposed by an implementation need not be consistent with equals.
Parameters: p1 - the first proposal to be compared Parameters: p2 - the second proposal to be compared a negative integer, zero, or a positive integer as the first argument is less than,equal to, or greater than the second. |
endSorting | public void endSorting()(Code) | | Called once after sorting.
Clients may override, the default implementation does nothing.
|
|
|