org.eclipse.jdt.ui.text.java
public abstract class AbstractProposalSorter extends Object implements Comparator<ICompletionProposal>
org.eclipse.jdt.ui.javaCompletionProposalSorters extension point.
Subclasses need to implement compare(ICompletionProposal, ICompletionProposal) and may
override beginSorting and
endSorting.
The orderings imposed by a subclass need not be consistent with equals.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProposalSorter()
Creates a new sorter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginSorting(ContentAssistInvocationContext context)
Called once before sorting.
|
abstract int |
compare(ICompletionProposal p1,
ICompletionProposal p2)
The orderings imposed by an implementation need not be consistent with equals.
|
void |
endSorting()
Called once after sorting.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsprotected AbstractProposalSorter()
IConfigurationElement.createExecutableExtension(String).public void beginSorting(ContentAssistInvocationContext context)
Clients may override, the default implementation does nothing.
context - the context of the content assist invocationpublic abstract int compare(ICompletionProposal p1, ICompletionProposal p2)
compare in interface Comparator<ICompletionProposal>p1 - the first proposal to be comparedp2 - the second proposal to be comparedComparator.compare(java.lang.Object, java.lang.Object)public void endSorting()
Clients may override, the default implementation does nothing.
Guidelines for using Eclipse APIs. Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.