|
Eclipse JDT Release 3.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.ui.text.java.AbstractProposalSorter
public abstract class AbstractProposalSorter
Abstract base class for sorters contributed to the
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.
| Constructor Summary | |
|---|---|
protected |
AbstractProposalSorter()
Creates a new sorter. |
| Method Summary | |
|---|---|
void |
beginSorting(ContentAssistInvocationContext context)
Called once before initial sorting starts the first time. |
abstract int |
compare(ICompletionProposal p1,
ICompletionProposal p2)
The orderings imposed by an implementation need not be consistent with equals. |
void |
endSorting()
Called once after the initial sorting finished. |
| 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 |
|---|
protected AbstractProposalSorter()
IConfigurationElement.createExecutableExtension(String).
| Method Detail |
|---|
public void beginSorting(ContentAssistInvocationContext context)
Note: As of 3.8 a completion proposal computer can request that proposals are resorted. If such a computer is active, then this method will not be called.
Clients may override, the default implementation does nothing.
context - the context of the content assist invocation
public abstract int compare(ICompletionProposal p1,
ICompletionProposal p2)
compare in interface Comparator<ICompletionProposal>compare in interface ICompletionProposalSorterp1 - the first proposal to be comparedp2 - the second proposal to be compared
Comparator.compare(java.lang.Object, java.lang.Object)public void endSorting()
Note: As of 3.8 a completion proposal computer can request that proposals are resorted. If such a computer is active, then this method will not be called.
Clients may override, the default implementation does nothing.
|
Eclipse JDT Release 3.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2012 IBM Corporation and others. All rights reserved.