Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Using Multiple Templates but getting only one Template to work
Using Multiple Templates but getting only one Template to work [message #1771398] Thu, 24 August 2017 16:18 Go to next message
Faisal Tariq is currently offline Faisal TariqFriend
Messages: 33
Registered: August 2017
Member
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>
Re: Using Multiple Templates but getting only one Template to work [message #1771401 is a reply to message #1771398] Thu, 24 August 2017 16:52 Go to previous messageGo to next message
Faisal Tariq is currently offline Faisal TariqFriend
Messages: 33
Registered: August 2017
Member
I have changed the ID for both templates id="com.maxim.projectTemplates.template" to unique names for both... but still nothing.
Re: Using Multiple Templates but getting only one Template to work [message #1771402 is a reply to message #1771401] Thu, 24 August 2017 17:12 Go to previous message
Faisal Tariq is currently offline Faisal TariqFriend
Messages: 33
Registered: August 2017
Member
Solved the problem. I did not have unique ID names inside my templates. Once I gave the templates a unique Id inside the template.xml and also in plugin.xml, the problem was fixed. Thanks
Previous Topic:Convert c to cpp
Next Topic:Error in remote debugging with arm processor
Goto Forum:
  


Current Time: Fri Apr 19 01:49:50 GMT 2024

Powered by FUDForum. Page generated in 0.01891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top