延伸範本

ID:
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. 本程式與隨附的資料依照本發行版所隨附的 Elipse Public License 1.0 版條款而提供,可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html。