### Eclipse Workspace Patch 1.0 #P org.eclipse.cdt.doc.isv Index: guide/projectTemplateEngine/Howtoregistertemplates.html =================================================================== RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtoregistertemplates.html,v retrieving revision 1.1 diff -u -r1.1 Howtoregistertemplates.html --- guide/projectTemplateEngine/Howtoregistertemplates.html 21 Jun 2007 10:49:16 -0000 1.1 +++ guide/projectTemplateEngine/Howtoregistertemplates.html 17 Sep 2007 14:02:17 -0000 @@ -65,7 +65,9 @@
  • Click Add to select -org.eclipse.cdt.templateengine plug-in from the list. +org.eclipse.cdt.core and +org.eclipse.cdt.ui +plug-ins from the list.

  • @@ -79,29 +81,32 @@

  • Select the extension-point with ID -org.eclipse.cdt.templateengine.templates from the list of -extensions-points. +org.eclipse.cdt.core.templates from the list of +extension-points.

  • Right-click on the newly added extension, and select New > template from the context menu. +The first one has already been added for you, "(template)".

  • -Choose the new template added in step 6 from the All -Extensions list. +Select the new template added in the previous step from the All +Extensions list. Its name is initially "(template)".

  • -Specify the wizardId attribute of the template as +Specify the id attribute of the template as +(for example?) "org.eclipse.cdt.project.ui.NewProjectWizard". This attribute is mandatory. +It will replace "(template)" in the list.

  • -Specify the location of the template relative to the plug-in created +Specify the location of the template XML file, relative to the plug-in created in step 1. This attribute is mandatory.

  • @@ -127,8 +132,15 @@

  • -Select an appropriate project type from the -projectType drop-down list. This is an optional attribute. +Select an appropriate project type for the +projectType entry. +This is a required entry. +For example, for an executable, you can use +projectType="org.eclipse.cdt.build.core.buildArtefactType.exe". +For more information about project types, see + +New project information in the What's New in CDT Build section, +especially the section "What are the general project type entries?".

  • @@ -139,8 +151,8 @@ java.util.regex.Pattern.

    -The New Project wizard will list only those templates, which are -relevant for the build Configurations choosen for the project. For a example, if the developer +The New Project wizard will list only those templates which are +relevant for the build Configurations chosen for the project. For a example, if the developer choose to create a C++ Application for Symbian OS, the wizard will list all the templates with the relevant usageDescription. Otherwise, for a standard CDT @@ -151,7 +163,7 @@

    Specify the pagesAfterTemplateSelectionProvider, which is a fully qualified name of the class that implements -org.eclipse.cdt.templateengine.IPagesAfterTemplateSelectionProvider +org.eclipse.cdt.ui.templateengine.IPagesAfterTemplateSelectionProvider interface. This is an optional attribute.