From 30f802ec615e9fac38184f50536f0e11c8f7da67 Mon Sep 17 00:00:00 2001 From: Andrew Ferguson Date: Mon, 17 Sep 2007 16:02:16 +0000 Subject: [PATCH] 201087: add additional description for the templateAssociations extension point --- .../schema/templateAssociations.exsd | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/core/org.eclipse.cdt.core/schema/templateAssociations.exsd b/core/org.eclipse.cdt.core/schema/templateAssociations.exsd index 4130eedb490..057253b894b 100644 --- a/core/org.eclipse.cdt.core/schema/templateAssociations.exsd +++ b/core/org.eclipse.cdt.core/schema/templateAssociations.exsd @@ -6,14 +6,14 @@ - This extension point facilitates adding new toolchains generated from a different plugin to already defined template without modifying template definition. + This extension-point allows developers to specify toolchains that should be enabled for selection for use with a pre-existing template. This solves the problem over how ISV's can have templates defined and shipped with CDT support their own toolchains, without having to modify CDT itself. - 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. + Each extension consists of a sequence of template elements, each of which define child elements for the new toolchains that should be enabled for selection during new project creation. @@ -30,7 +30,7 @@ - Id for the extension in the extender plugin. + The unique identifier for this extension @@ -48,11 +48,16 @@ + + + This element is used to reference an existing toolchain by its unique identifier. + + - + The unique identifier of a toolchain contributed to the org.eclipse.cdt.managedbuilder.core.buildDefinitions extension point. @@ -60,6 +65,11 @@ + + + This element references an existing template contribution's unique identifier in order that toolchains contributed separately to the template can be made selectable on project creation. + + @@ -67,7 +77,7 @@ - + The unique identifier of the template-contribution (the id in plugin.xml rather than the template.xml) that should have the specified additional toolchains enabled for selection during new project creation. @@ -88,7 +98,16 @@ - + If you developed toolchain's with ids "com.foobar.toolchain1.base" and "com.foobar.toolchain2.base", which you wanted enabled for the empty project type built into the cdt core, you could use the following to achieve this: + +<pre> +<extension point="org.eclipse.cdt.core.templateAssociations"> + <template id="org.eclipse.cdt.build.core.templates.EmptyProject"> + <toolChain id="com.foobar.toolchain1.base"/> + <toolChain id="com.foobar.toolchain2.base"/> + </template> +</extension> +</pre>