1 11 package org.eclipse.jdt.ui.text.java; 12 13 import java.util.Comparator ; 14 15 import org.eclipse.core.runtime.IConfigurationElement; 16 17 import org.eclipse.jface.text.contentassist.ICompletionProposal; 18 19 33 public abstract class AbstractProposalSorter implements Comparator { 34 35 39 protected AbstractProposalSorter() { 40 } 41 42 50 public void beginSorting(ContentAssistInvocationContext context) { 51 } 52 53 67 public abstract int compare(ICompletionProposal p1, ICompletionProposal p2); 68 69 75 public void endSorting() { 76 } 77 78 85 public final int compare(Object o1, Object o2) { 86 ICompletionProposal p1= (ICompletionProposal) o1; 87 ICompletionProposal p2= (ICompletionProposal) o2; 88 89 return compare(p1, p2); 90 } 91 } 92 | Popular Tags |