拡張テンプレート

識別子:
org.eclipse.pde.ui.templates

開始:
2.0

説明:
この拡張ポイントは、新しい拡張に対するコードを生成するために使用されるプラグイン・プロジェクト・コンテンツ・テンプレートを 登録します。 テンプレートは、2 種類のコンテキストで使用されます。

構成マークアップ:

<!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 のユーザー・インターフェースは、エディター、ビュー、設定などの最も一般的な拡張ポイントに対する拡張を作成するテンプレートをコントリビュートします。


Copyright (c) 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.