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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




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

Extension Templates



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 - 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.

The following is an example of the template registration:


"XYZ Action Set Generator"



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

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