Extension Templates

Identifier:
org.eclipse.pde.ui.templates

Since:
2.0

Description:
This extension point registers plug-in project content templates that are used to generate code for the new extensions. Templates are used in two contexts:

Configuration Markup:

<!ELEMENT extension (template+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT template EMPTY>

<!ATTLIST template

id             IDREF #REQUIRED

name           CDATA #REQUIRED

icon           CDATA #IMPLIED

class          CDATA #REQUIRED

contributingId IDREF #REQUIRED>


Examples:
The following is an example of the template registration:


   <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 Information:
Each template must provide a class that implements org.eclipse.pde.ui.templates.ITemplateSection interface. However, abstract classes that implement the interface and can be extended are available.

Supplied Implementation:
PDE UI contributes a number of templates that create extensions for the most popular extension points like editors, views, preferences etc.


Copyright (c) 2004, 2013 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0.