Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Platform Plug-in Development Environment Guide
Previous Page Home Next Page

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:

  • One or more templates are combined in a wizard that is contributed as plug-in content wizard using org.eclipse.pde.ui.pluginContent extension point. These templates create interesting content for newly created plug-in projects. In addition, all the templates contributed using this extension point can be seen in a special version of the plug-in content wizard that lists the templates and allows users to freely combine the templates by checking them in the list.
  • A New extension can be added to an existing plug-in using a template.

Configuration Markup:

<!ELEMENT extension ( template+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>

  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

<!ELEMENT template EMPTY>

<!ATTLIST template

id             CDATA #REQUIRED

name           CDATA #REQUIRED

icon           CDATA #IMPLIED

class          CDATA #REQUIRED

contributingId CDATA #REQUIRED

>

  • id - a unique name that will be used to identify this template.
  • name - a translatable name that will be used in UI representation of this template.
  • icon - a relative path of an icon that will be used to visually represent the template.
  • class - a fully qualified name of the class that implements org.eclipse.pde.ui.templates.ITemplateSection interface.
  • contributingId - the identifier of the extension point that this template will contribute into.

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>

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 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 https://www.eclipse.org/legal/epl-v10.html.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire