<!ELEMENT extension (proposalSorter)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT proposalSorter EMPTY>
<!ATTLIST proposalSorter
id CDATA #REQUIRED
name CDATA #IMPLIED
class CDATA #REQUIRED>
建议排序程序添加项。
<extension point=
"org.eclipse.jdt.ui.javaCompletionProposalSorters"
>
<proposalSorter id=
"org.eclipse.jdt.ui.RelevanceSorter"
name=
"by relevance"
class=
"org.eclipse.jdt.internal.ui.text.java.RelevanceSorter"
/>
</extension>
AbstractProposalSorter
。
org.eclipse.jdt.internal.ui.text.java.RelevanceSorter
和
org.eclipse.jdt.internal.ui.text.java.AlphabeticSorter
实现了两种缺省的排序行为。
Copyright (c) 2006 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html