1 11 package org.eclipse.jdt.internal.ui.text.java; 12 13 import org.eclipse.jface.text.contentassist.ICompletionProposal; 14 15 import org.eclipse.jdt.ui.text.java.AbstractProposalSorter; 16 import org.eclipse.jdt.ui.text.java.CompletionProposalComparator; 17 18 23 public final class AlphabeticSorter extends AbstractProposalSorter { 24 25 private final CompletionProposalComparator fComparator= new CompletionProposalComparator(); 26 27 public AlphabeticSorter() { 28 fComparator.setOrderAlphabetically(true); 29 } 30 31 34 public int compare(ICompletionProposal p1, ICompletionProposal p2) { 35 return fComparator.compare(p1, p2); 36 } 37 38 } 39 | Popular Tags |