JavaScript 补全建议排序器

标识:
org.eclipse.wst.jsdt.ui.javaCompletionProposalSorters

起始版本:
3.2

描述:
此扩展点允许添加排序程序,该排序程序用来修改 JavaScript 编辑器中的补全建议顺序。

配置标记:

<!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.wst.jsdt.ui.javaCompletionProposalSorters">
<proposalSorter
  id="org.eclipse.wst.jsdt.ui.RelevanceSorter"
  name="by relevance"
  class="org.eclipse.wst.jsdt.internal.ui.text.java.RelevanceSorter"/>
   </extension>

API 信息:
请参阅 AbstractProposalSorter。

提供的实现:
org.eclipse.wst.jsdt.internal.ui.text.java.RelevanceSorter 和 org.eclipse.wst.jsdt.internal.ui.text.java.AlphabeticSorter 实现两种缺省排序行为。


Copyright © 2007 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