Template Extension point

org.eclipse.cdt.core.templates

This extension point was added in CDT 4.0

This template extension point allows users to contribute their Template XMLs to the Template Engine plugin.

<!ELEMENT extension (template+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

Extension point added to Template Engine plugin. Any plugin, which intends to contribute XML templates to the Template Engine must extend this extension point, and add the template element.



<!ELEMENT template (toolChain*)>

<!ATTLIST template

location                            CDATA #REQUIRED

filterPattern                       CDATA #IMPLIED

pagesAfterTemplateSelectionProvider CDATA #IMPLIED

isCategory                          (true | false)

projectType                         CDATA #REQUIRED

id                                  CDATA #IMPLIED>

By adding the template extension point the users can contribute their Template XMLs to the Template Engine plugin.



<!ELEMENT toolChain EMPTY>

<!ATTLIST toolChain

id CDATA #REQUIRED>

The toolchain


The following is an example of the extension point usage:

   

<extension

point=

"org.eclipse.cdt.core.templates"

id=

"simpleEXETemplateExample"

name=

"Simple EXE Template Example"

>

<template

filterPattern=

".*"

location=

"templates/SimpleEXE/template.xml"

projectType=

"org.eclipse.cdt.build.core.buildArtefactType.exe"

id=

"com.foobar.templates.myWizardID"

>

</template>

</extension>

For more details on how to define your own templates, please check examples provided under org.eclipse.cdt.ui.templateengine

An implementation of this extension point is supplied in org.eclipse.cdt.core.templateengine