Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferguson2008-03-18 15:26:50 +0000
committerAndrew Ferguson2008-03-18 15:26:50 +0000
commitb75b0925fead6030428b896f0b958e39ae8b8152 (patch)
tree6930867a04861783e0a74042127525474391dec0 /core/org.eclipse.cdt.ui.tests
parent3333dfaa52904d5358d9677828330f48f6878442 (diff)
downloadorg.eclipse.cdt-b75b0925fead6030428b896f0b958e39ae8b8152.tar.gz
org.eclipse.cdt-b75b0925fead6030428b896f0b958e39ae8b8152.tar.xz
org.eclipse.cdt-b75b0925fead6030428b896f0b958e39ae8b8152.zip
222954: apply fix
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/plugin.xml5
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/hello.cpp22
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/template.xml61
3 files changed, 88 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/plugin.xml b/core/org.eclipse.cdt.ui.tests/plugin.xml
index 8a98421c5b1..1072a81b42a 100644
--- a/core/org.eclipse.cdt.ui.tests/plugin.xml
+++ b/core/org.eclipse.cdt.ui.tests/plugin.xml
@@ -114,6 +114,11 @@
pagesAfterTemplateSelectionProvider="org.eclipse.cdt.ui.tests.templateengine.TestExtraPagesProvider"
projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
</template>
+ <template
+ id="org.eclipse.cdt.ui.tests.testWidgets"
+ location="resources/projectTemplates/testWidgets/template.xml"
+ projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
+ </template>
</extension>
diff --git a/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/hello.cpp b/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/hello.cpp
new file mode 100644
index 00000000000..7658866233b
--- /dev/null
+++ b/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/hello.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+using namespace std;
+
+int main() {
+ cout << "$(projectName)" << endl;
+ cout << "$(TestWidget1)" << endl;
+ cout << "$(TestWidget2)" << endl;
+ cout << "$(TestWidget3)" << endl;
+ cout << "$(TestWidget4)" << endl;
+ cout << "$(TestWidget5)" << endl;
+ cout << "$(TestWidget6)" << endl;
+ cout << "$(TestWidget7)" << endl;
+ cout << "$(TestWidget8)" << endl;
+ cout << "$(TestWidget9)" << endl;
+ cout << "$(TestWidget10)" << endl;
+ cout << "$(TestWidget11)" << endl;
+ cout << "$(TestWidget12)" << endl;
+ cout << "$(TestWidget13)" << endl;
+ cout << "$(TestWidget14)" << endl;
+ return 0;
+}
+
diff --git a/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/template.xml b/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/template.xml
new file mode 100644
index 00000000000..12e72b82975
--- /dev/null
+++ b/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/template.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template type="ProjTempl" version="1.0" supplier="Eclipse.org" revision="1.0" author="Symbian Software Ltd."
+ copyright="Copyright (c) 2008 Symbian Software Ltd. and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html"
+ id="TestWidgets" label="TestWidgetsLabel" description="TestWidgetsDescription"
+ help="help.html">
+
+ <property-group id="basics" label="basicsLabel" description="basicsDescription" type="PAGES-ONLY" help="help.html">
+ <property id="TestWidget1" label="InputWidget1" description="InputWidget1Description" type="input" mandatory="true" pattern=".+"/>
+ <property id="TestWidget2" label="InputWidget2" description="InputWidget2Description" type="input" default="InputWidget2Default" mandatory="false"/>
+
+ <property id="TestWidget3" label="MultilineWidget1" description="MultilineWidget1Description" type="multiline" mandatory="true" pattern=".+"/>
+ <property id="TestWidget4" label="MultilineWidget2" description="MultilineWidget2Description" type="multiline" default="Multiline2Default" mandatory="false"/>
+
+ <property id="TestWidget5" label="SelectWidget1" description="SelectWidget1Description" type="select" default="0" mandatory="false" persist="false">
+ <item label="Include" name="1"/>
+ <item label="Exclude" name="0"/>
+ </property>
+
+ <property id="TestWidget6" label="SelectWidget2" description="SelectWidget2Description" type="select" default="-1" mandatory="true" persist="false">
+ <item label="" value="-1"/>
+ <item label="Include" value="1"/>
+ <item label="Exclude" value="0"/>
+ </property>
+ </property-group>
+
+ <property-group id="basics2" label="basicsLabel2" description="basicsDescription2" type="PAGES-ONLY" help="help.html">
+ <property id="TestWidget7" label="BooleanWidget1" description="BooleanWidget1Description" type="boolean" default="false"/>
+ <property id="TestWidget8" label="BooleanWidget2" description="BooleanWidget2Description" type="boolean" default="true"/>
+
+ <property id="TestWidget9" label="StringListWidget1" description="StringListWidget1Description" type="stringlist" mandatory="true"/>
+ <property id="TestWidget10" label="StringListWidget2" description="StringListWidget2Description" type="stringlist" default="StringList2Default" mandatory="false"/>
+
+ <property id="TestWidget11" label="SpecialListWidget1" description="SpecialListWidget1Description" type="speciallist" mandatory="true"/>
+ <property id="TestWidget12" label="SpecialListWidget2" description="SpecialListWidget2Description" type="speciallist" default="SpecialList2Default" mandatory="false"/>
+
+ <property id="TestWidget13" label="BrowseWidget1" description="BrowseWidget1Description" type="browse" default="Browse1Default" mandatory="true" pattern=".+"/>
+ <property id="TestWidget14" label="BrowseWidget2" description="BrowseWidget2Description" type="browse" default="Browse2Default" mandatory="false"/>
+ </property-group>
+
+ <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
+ <simple name="name" value="$(projectName)" />
+ <simple name="artifactExtension" value="exe" />
+ <simple name="isCProject" value="true" />
+ </process>
+
+ <process type="org.eclipse.cdt.core.CreateSourceFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="path" value="src"/>
+ </process>
+
+ <process type="org.eclipse.cdt.core.AddFiles">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="files">
+ <element>
+ <simple name="source" value="hello.cpp"/>
+ <simple name="target" value="src/hello.cpp"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ </complex-array>
+ </process>
+</template>

Back to the top