Using Multiple Templates but getting only one Template to work [message #1771398] |
Thu, 24 August 2017 12:18  |
Eclipse User |
|
|
|
Hello,
I am using 2 different template.xml. One in Chip_1_TMPL folder and the other in Chip_2_TMPL folder. Both template.xml have different content, When I start the code and do File->New->C project. I see the "label" from both template.xml in the dialog box that pops up . But only the content of the Chip_1_TMPL shows up on the next pop-up screen, irrespective of what I select? Why is the other one failing to activate when I select the xml in Chip_2_TMPL folder. (FYI-My list has 4 chips, but for this example I have shortened it to only 2).
Thanks
Faisal
The Plugin below:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.cdt.core.templates">
<template
id="com.maxim.projectTemplates.template"
location="template/Chip_1_TMPL/template.xml"
projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
</template>
<template
id="com.maxim.projectTemplates.template"
location="template/CHIP_2_TMPL/template.xml"
projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
</template>
</extension>
<extension
point="org.eclipse.cdt.core.templateProcessTypes">
<processType
name="NewProject"
processRunner="com.maxim.myProject.NewProject">
<simple name="projectName"/>
<complexArray name="folders">
<baseType>
<simple name="source"/>
<simple name="target"/>
<simple name="pattern"/>
<simple name="replaceable"/>
<simple name="projStatus"/>
</baseType>
</complexArray>
</processType>
</extension>
</plugin>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03319 seconds