From: Atanas Gegov <atanas.ge...@bmw-carit.de>

Added an extra variable to the templates and the
creating process to prepare them for the new CMake
nature.
---
 plugins/org.yocto.sdk.ide/plugin.xml               |    4 ++++
 .../sdk/ide/wizard/NewYoctoCProjectTemplate.java   |    2 ++
 .../EmptyCAutotoolsProject/template.xml            |    1 +
 .../EmptyCPPAutotoolsProject/template.xml          |    1 +
 .../HelloWorldCAutotoolsProject/template.xml       |    1 +
 .../HelloWorldCGTKAutotoolsProject/template.xml    |    1 +
 .../HelloWorldCPPAutotoolsProject/template.xml     |    1 +
 7 files changed, 11 insertions(+)

diff --git a/plugins/org.yocto.sdk.ide/plugin.xml 
b/plugins/org.yocto.sdk.ide/plugin.xml
index 1b882a2..dd75532 100644
--- a/plugins/org.yocto.sdk.ide/plugin.xml
+++ b/plugins/org.yocto.sdk.ide/plugin.xml
@@ -162,6 +162,10 @@
                external="true"
                name="isAutotoolsProject">
          </simple>
+         <simple
+               external="true"
+               name="isCMakeProject">
+         </simple>
       </processType>
       <processType
             name="NewYoctoAutotoolsProjectPostProcess"
diff --git 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoCProjectTemplate.java
 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoCProjectTemplate.java
index a103ebe..705dc99 100644
--- 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoCProjectTemplate.java
+++ 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoCProjectTemplate.java
@@ -88,9 +88,11 @@ public class NewYoctoCProjectTemplate extends ProcessRunner {
                String isCProjectValue = args[3].getSimpleValue();
                String isEmptyProjetValue = args[4].getSimpleValue();
                String isAutotoolsProjectValue = args[5].getSimpleValue();
+               String isCMakeProjectValue = args[6].getSimpleValue();
                boolean isCProject = 
Boolean.valueOf(isCProjectValue).booleanValue();
                boolean isEmptyProject = 
Boolean.valueOf(isEmptyProjetValue).booleanValue();
                boolean isAutotoolsProject = 
Boolean.valueOf(isAutotoolsProjectValue).booleanValue();
+               boolean isCMakeProject = 
Boolean.valueOf(isCMakeProjectValue).booleanValue();
 
                IProject project = 
ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
                try {
diff --git 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCAutotoolsProject/template.xml
 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCAutotoolsProject/template.xml
index 028f33d..e1c1abc 100644
--- 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCAutotoolsProject/template.xml
+++ 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCAutotoolsProject/template.xml
@@ -11,6 +11,7 @@
                <simple name="isCProject" value="true" />
                <simple name="isEmptyProject" value="true" />
                <simple name="isAutotoolsProject" value="true" />
+               <simple name="isCMakeProject" value="false" />
        </process>
 
 </template>
diff --git 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCPPAutotoolsProject/template.xml
 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCPPAutotoolsProject/template.xml
index ae4173b..9f1d46b 100644
--- 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCPPAutotoolsProject/template.xml
+++ 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/EmptyCPPAutotoolsProject/template.xml
@@ -10,6 +10,7 @@
                <simple name="isCProject" value="false" />
                <simple name="isEmptyProject" value="true" />
                <simple name="isAutotoolsProject" value="true" />
+               <simple name="isCMakeProject" value="false" />
        </process>
 
 </template>
diff --git 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/template.xml
 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/template.xml
index 33bffd5..ca154ca 100644
--- 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/template.xml
+++ 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/template.xml
@@ -56,6 +56,7 @@
                <simple name="isCProject" value="true" />
                <simple name="isEmptyProject" value="false" />
                <simple name="isAutotoolsProject" value="true" />
+               <simple name="isCMakeProject" value="false" />
        </process>
 
        <process type="org.eclipse.cdt.core.CreateSourceFolder">
diff --git 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCGTKAutotoolsProject/template.xml
 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCGTKAutotoolsProject/template.xml
index 8a4f43b..4234ff4 100644
--- 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCGTKAutotoolsProject/template.xml
+++ 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCGTKAutotoolsProject/template.xml
@@ -56,6 +56,7 @@
                <simple name="isCProject" value="true" />
                <simple name="isEmptyProject" value="false" />
                <simple name="isAutotoolsProject" value="true" />
+               <simple name="isCMakeProject" value="false" />
        </process>
 
        <process type="org.eclipse.cdt.core.CreateSourceFolder">
diff --git 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCPPAutotoolsProject/template.xml
 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCPPAutotoolsProject/template.xml
index 0b807d8..2bf76bf 100644
--- 
a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCPPAutotoolsProject/template.xml
+++ 
b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCPPAutotoolsProject/template.xml
@@ -56,6 +56,7 @@
                <simple name="isCProject" value="false" />
                <simple name="isEmptyProject" value="false" />
                <simple name="isAutotoolsProject" value="true" />
+               <simple name="isCMakeProject" value="false" />
        </process>
 
        <process type="org.eclipse.cdt.core.CreateSourceFolder">
-- 
1.7.9.5

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to