Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Custom project templates using "new style project types"


Hi,

I'm trying to create a custom project template to show up in the "New C Project" wizard. I'm using so-called "new style project types", i.e. the name of the projecttype is empty. I have created a custom "buildArtefactType" called "Executable (IAR)", so that I can have all my templates in a separate folder. This works fine, but I cannot seem to work out how to add anything other than an "Empty Project"-template.



I've contributed a template to the org.eclipse.cdt.core.templates extension point, like this:

      <template
            id="com.iar.cdt.renesas.templates.mainCTemplate"
            projectType="iar.rl78.toolchain.project.exe"
            filterPattern="iar.*"
            location="templates/main.xml">
      </template>

and a template association like this:

   <extension
         point="org.eclipse.cdt.core.templateAssociations">
      <template
            id="com.iar.cdt.renesas.templates.mainCTemplate">
            <toolChain
                  id="iar.rl78.toochain">
            </toolChain>
      </template>
   </extension>

As far as I can tell, ManagedBuildWizard#createItems() is where the list is populated, but I cannot find anything which gives a clue as to how (if at all) I can add my own project templates.

If anyone can give me a nudge in the right direction, I'd be thankful.

--
*Jesper Eskilson* /Development Engineer/
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
E-mail: jesper.eskilson@xxxxxxx <mailto:jesper.eskilson@xxxxxxx> Website: www.iar.com <http://www.iar.com> Twitter: www.twitter.com/iarsystems <http://www.twitter.com/iarsystems>


Back to the top