diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/schema/templates.exsd')
-rw-r--r-- | core/org.eclipse.cdt.core/schema/templates.exsd | 196 |
1 files changed, 196 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/schema/templates.exsd b/core/org.eclipse.cdt.core/schema/templates.exsd new file mode 100644 index 00000000000..eee1c106792 --- /dev/null +++ b/core/org.eclipse.cdt.core/schema/templates.exsd @@ -0,0 +1,196 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.cdt.core"> +<annotation> + <appInfo> + <meta.schema plugin="org.eclipse.cdt.core" id="templates" name="Template Extension point"/> + </appInfo> + <documentation> + This templates extension point facilitates the users to contribute their Template XMLs to the Template Engine plugin. + </documentation> + </annotation> + + <element name="extension"> + <annotation> + <documentation> + Extension point added to Template Engine plugin. Any plugin, which intends to contribute XML templates to Temaplate Engine has to extend this extension point, and add template element. + </documentation> + </annotation> + <complexType> + <sequence> + <element ref="template" minOccurs="1" maxOccurs="unbounded"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + Id for the extension in the extender plugin. + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + Optional name attribute. + </documentation> + <appInfo> + <meta.attribute translatable="true"/> + </appInfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="template"> + <annotation> + <documentation> + By adding the templates extension point the users can contribute there Template XMLs to the Template Engine plugin. + </documentation> + </annotation> + <complexType> + <sequence> + <element ref="toolChain" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="location" type="string" use="required"> + <annotation> + <documentation> + The location of the template(relative within the extender plugin). +This is a must enter, attribute. + </documentation> + <appInfo> + <meta.attribute kind="resource"/> + </appInfo> + </annotation> + </attribute> + <attribute name="filterPattern" type="string"> + <annotation> + <documentation> + Any filterPatter associated with this Template to be used by TemplateEngine. +This is an optional attribute. + </documentation> + </annotation> + </attribute> + <attribute name="usageDescription" type="string"> + <annotation> + <documentation> + A notation describing how this template is used. Usually used to filter the list of templates on offer depending on other wizard attributes. +This is an optional attribute. + </documentation> + </annotation> + </attribute> + <attribute name="pagesAfterTemplateSelectionProvider" type="string"> + <annotation> + <documentation> + A class that implements org.eclipse.cdt.templateengine.IPagesAfterTemplateSelectionProvider interface to create pages that will be appended to the pages returned from TemplatesChoiceWizard.getPagesAfterTemplateSelection(). + </documentation> + <appInfo> + <meta.attribute kind="java" basedOn="org.eclipse.cdt.ui.templateengine.IPagesAfterTemplateSelectionProvider"/> + </appInfo> + </annotation> + </attribute> + <attribute name="isCategory" type="boolean"> + <annotation> + <documentation> + + </documentation> + </annotation> + </attribute> + <attribute name="projectType" type="string" use="required"> + <annotation> + <documentation> + + </documentation> + </annotation> + </attribute> + </complexType> + </element> + + <element name="toolChain"> + <complexType> + <attribute name="id" type="string" use="required"> + <annotation> + <documentation> + + </documentation> + </annotation> + </attribute> + </complexType> + </element> + + <annotation> + <appInfo> + <meta.section type="since"/> + </appInfo> + <documentation> + This extension point was added in CDT 4.0 + </documentation> + </annotation> + + <annotation> + <appInfo> + <meta.section type="examples"/> + </appInfo> + <documentation> + The following is an example of the extension point usage: +<p> +<pre> + <extension + id="simpleEXETemplateExample" + name="Simple EXE Template Example" + point="org.eclipse.cdt.templateengine.templates"> + <template + filterPattern=".*" + usageDescription="Simple EXE" + location="templates/org/eclipse/cdt/templates/projecttemplates/Simple EXE/template.xml" + projectType="org.eclipse.cdt.build.projectType.exe" + wizardId="org.eclipse.cdt.templates.ui.NewManagedProjectWizard"> + </template> + </extension> +</pre> + +For more details on how to define your own templates, please check examples provided under +<samp>org.eclipse.cdt.templates</samp> + </documentation> + </annotation> + + <annotation> + <appInfo> + <meta.section type="apiInfo"/> + </appInfo> + <documentation> + + </documentation> + </annotation> + + <annotation> + <appInfo> + <meta.section type="implementation"/> + </appInfo> + <documentation> + An implementation of this extension point is supplied in <samp>org.eclipse.cdt.templateengine</samp> + </documentation> + </annotation> + + <annotation> + <appInfo> + <meta.section type="copyright"/> + </appInfo> + <documentation> + Copyright (c) 2007 Symbian Software Limited 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 + +Contributors: +Symbian - Initial API and implementation + </documentation> + </annotation> + +</schema> |