diff options
Diffstat (limited to 'examples')
7 files changed, 48 insertions, 7 deletions
diff --git a/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/.gitignore b/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/.gitignore index 537bdbc66..7dcc6d1af 100644 --- a/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/.gitignore +++ b/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/.gitignore @@ -1,3 +1,3 @@ /qvtrbin /bin -/src-gen/ + diff --git a/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/src-gen/.gitignore b/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/src-gen/.gitignore new file mode 100644 index 000000000..cf1db2eed --- /dev/null +++ b/examples/org.eclipse.qvtd.examples.qvtcore.uml2rdbms/src-gen/.gitignore @@ -0,0 +1 @@ +/org/ diff --git a/examples/org.eclipse.qvtd.examples/buckminster.cspex b/examples/org.eclipse.qvtd.examples/buckminster.cspex index 128ccc4ce..7445482da 100644 --- a/examples/org.eclipse.qvtd.examples/buckminster.cspex +++ b/examples/org.eclipse.qvtd.examples/buckminster.cspex @@ -6,13 +6,10 @@ <dependencies> <!-- QVTd Examples dependencies to build the zips --> <dependency name="org.eclipse.qvtd.examples.qvtcore.empty" componentType="unknown"/> + <dependency name="org.eclipse.qvtd.examples.qvtcore.uml2rdbms" componentType="unknown"/> <dependency name="org.eclipse.qvtd.examples.qvtrelation.empty" componentType="unknown"/> <dependency name="org.eclipse.qvtd.examples.qvtrelation.modelmorf" componentType="unknown"/> <dependency name="org.eclipse.qvtd.examples.qvtrelation.reltocore" componentType="unknown"/> - <!-- EMF Examples dependencies to build the zips > - <dependency name="org.eclipse.emf.examples.library" componentType="osgi.bundle"/> - <dependency name="org.eclipse.emf.examples.library.edit" componentType="osgi.bundle"/> - <dependency name="org.eclipse.emf.examples.library.editor" componentType="osgi.bundle"/--> </dependencies> <actions> <public name="buckminster.prebind" actor="ant"> diff --git a/examples/org.eclipse.qvtd.examples/buildZips.xml b/examples/org.eclipse.qvtd.examples/buildZips.xml index cce67aa53..3c6b30c29 100644 --- a/examples/org.eclipse.qvtd.examples/buildZips.xml +++ b/examples/org.eclipse.qvtd.examples/buildZips.xml @@ -3,7 +3,7 @@ <target name="init"> </target> - <patternset id="qvtc.excludes" excludes="qvtcbin/**"/> + <patternset id="qvtc.excludes" excludes="bin/** qvtcbin/** src-gen/org/**"/> <patternset id="qvtr.excludes" excludes="bin/** qvtrbin/** src/** .settings/** META-INF/** .classpath build.properties about.html"/> <target name="zip.examples" depends="init"> @@ -22,6 +22,9 @@ <zip destfile="zips/qvtc/empty.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtcore.empty"> <patternset refid="qvtc.excludes"/> </zip> + <zip destfile="zips/qvtc/uml2rdbms.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtcore.uml2rdbms"> + <patternset refid="qvtc.excludes"/> + </zip> <mkdir dir="zips/qvtr"/> <zip destfile="zips/qvtr/empty.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtrelation.empty"> <patternset refid="qvtr.excludes"/> diff --git a/examples/org.eclipse.qvtd.examples/plugin.properties b/examples/org.eclipse.qvtd.examples/plugin.properties index 75da2e58b..061952b38 100644 --- a/examples/org.eclipse.qvtd.examples/plugin.properties +++ b/examples/org.eclipse.qvtd.examples/plugin.properties @@ -26,11 +26,14 @@ providerName=Eclipse Modeling Project # The above properties have been shipped for translation. # ============================================================================== -QVT_category=QVT (Queries, Views, Transformations Language) Projects +QVT_category=QVT (Query/View/Transformation Language) Projects EmptyQVTc_name=Empty QVTc Project EmptyQVTc_description=Create an Empty QVT Core project +UML2RDBMSQVTc_name=UML2RDBMS QVTc Project +UML2RDBMSQVTc_description=Create the UML2RDBMS QVT Core example project + EmptyQVTr_name=Empty QVTr Project EmptyQVTr_description=Create an Empty QVT Relation project diff --git a/examples/org.eclipse.qvtd.examples/plugin.xml b/examples/org.eclipse.qvtd.examples/plugin.xml index bfecaba5f..6ac033b73 100644 --- a/examples/org.eclipse.qvtd.examples/plugin.xml +++ b/examples/org.eclipse.qvtd.examples/plugin.xml @@ -27,6 +27,16 @@ icon="$nl$/icons/QVTcModelFile.gif"> <description>%EmptyQVTc_description</description> </wizard> + <wizard id="org.eclipse.qvtd.examples.qvtcore.uml2rdbms" + canFinishEarly="true" + category="org.eclipse.ui.Examples/org.eclipse.qvtd.examples.category" + class="org.eclipse.qvtd.examples.qvtc.wizards.UML2RDBMSExampleWizard" + hasPages="false" + project="true" + name="%UML2RDBMSQVTc_name" + icon="$nl$/icons/QVTcModelFile.gif"> + <description>%UML2RDBMSQVTc_description</description> + </wizard> <wizard id="org.eclipse.qvtd.examples.qvtrelation.empty" canFinishEarly="true" category="org.eclipse.ui.Examples/org.eclipse.qvtd.examples.category" diff --git a/examples/org.eclipse.qvtd.examples/src/org/eclipse/qvtd/examples/qvtc/wizards/UML2RDBMSExampleWizard.java b/examples/org.eclipse.qvtd.examples/src/org/eclipse/qvtd/examples/qvtc/wizards/UML2RDBMSExampleWizard.java new file mode 100644 index 000000000..7b3874b14 --- /dev/null +++ b/examples/org.eclipse.qvtd.examples/src/org/eclipse/qvtd/examples/qvtc/wizards/UML2RDBMSExampleWizard.java @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2016 Willink Transformations 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 + * + * Contributors: + * E.D.Willink - initial API and implementation + *******************************************************************************/ +package org.eclipse.qvtd.examples.qvtc.wizards; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.eclipse.qvtd.examples.wizards.AbstractExampleWizard; + +public class UML2RDBMSExampleWizard extends AbstractExampleWizard +{ + @Override + protected Collection<ProjectDescriptor> getProjectDescriptors() { + List<ProjectDescriptor> projects = new ArrayList<ProjectDescriptor>(4); + projects.add(new ProjectDescriptor("org.eclipse.qvtd.examples", "zips/qvtc/uml2rdbms.zip", "org.eclipse.qvtd.examples.qvtcore.uml2rdbms")); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ + return projects; + } +} |