扩展模板

标识:
org.eclipse.pde.ui.templates

起始版本:
2.0

描述:
此扩展点注册用于生成新扩展的代码的插件项目内容模板。模板用于下列两个上下文:

配置标记:

<!ELEMENT extension (template+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT template EMPTY>

<!ATTLIST template

id             CDATA #REQUIRED

name           CDATA #REQUIRED

icon           CDATA #IMPLIED

class          CDATA #REQUIRED

contributingId CDATA #REQUIRED

>


示例:
以下是模板注册的示例:


   <extension
         point="org.eclipse.pde.ui.templates">
<template
            contributingId="org.eclipse.ui.actionSets"
            name="XYZ Action Set Generator"
   class="com.example.xyz.XYZActionSetTemplate"
            id="com.example.xyz.ActionSetTemplate">
      </template>
   </extension>

API 信息:
每个模板都必须提供实现了 org.eclipse.pde.ui.templates.ITemplateSection 接口的类。但是,实现该接口并且可扩展的抽象类是可用的。

提供的实现:
PDE UI 提供了一些模板,它们为最常用的扩展点(如编辑器、视图和首选项等等)创建扩展。


Copyright © 2004 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.