From 3a2e57f172729e9401bdd07583e2346d86c43710 Mon Sep 17 00:00:00 2001 From: Florian Hoelzl <hoelzl@fortiss.org> Date: Mon, 14 Feb 2011 09:02:40 +0000 Subject: [PATCH] refactored some ecore models --- .../trunk/META-INF/MANIFEST.MF | 16 +++++++++------ .../trunk/build.properties | 19 +++++++++++++----- .../trunk/model/base.ecore | 14 +++++++++++++ .../trunk/model/base.genmodel | 17 ++++++++++++++++ .../trunk/plugin.properties | 8 ++++++++ org.fortiss.tooling.base/trunk/plugin.xml | 20 +++++++++++++++++++ 6 files changed, 83 insertions(+), 11 deletions(-) create mode 100644 org.fortiss.tooling.base/trunk/model/base.ecore create mode 100644 org.fortiss.tooling.base/trunk/model/base.genmodel create mode 100644 org.fortiss.tooling.base/trunk/plugin.properties create mode 100644 org.fortiss.tooling.base/trunk/plugin.xml diff --git a/org.fortiss.tooling.base/trunk/META-INF/MANIFEST.MF b/org.fortiss.tooling.base/trunk/META-INF/MANIFEST.MF index 1046d0177..7d1335ef3 100644 --- a/org.fortiss.tooling.base/trunk/META-INF/MANIFEST.MF +++ b/org.fortiss.tooling.base/trunk/META-INF/MANIFEST.MF @@ -1,10 +1,14 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 -Bundle-Name: Tooling Compatibility CCTS -Bundle-SymbolicName: org.fortiss.tooling.base -Bundle-Version: 0.0.1.qualifier -Bundle-Activator: org.fortiss.tooling.base.ToolingBaseActivator -Bundle-Vendor: fortiss -Require-Bundle: org.fortiss.tooling.kernel;bundle-version="0.0.1" +Bundle-Name: %pluginName +Bundle-SymbolicName: org.fortiss.tooling.base;singleton:=true +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.fortiss.tooling.base.model, + org.fortiss.tooling.base.model.impl, + org.fortiss.tooling.base.model.util +Require-Bundle: org.fortiss.tooling.kernel;bundle-version="0.0.1";visibility:=reexport Bundle-ActivationPolicy: lazy diff --git a/org.fortiss.tooling.base/trunk/build.properties b/org.fortiss.tooling.base/trunk/build.properties index 828624e45..79662f1b9 100644 --- a/org.fortiss.tooling.base/trunk/build.properties +++ b/org.fortiss.tooling.base/trunk/build.properties @@ -1,5 +1,14 @@ -source.. = src/,\ - generated-src/ -output.. = build/ -bin.includes = META-INF/,\ - . + +# <copyright> +# </copyright> +# +# $Id$ + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = generated-src/ +output.. = bin/ diff --git a/org.fortiss.tooling.base/trunk/model/base.ecore b/org.fortiss.tooling.base/trunk/model/base.ecore new file mode 100644 index 000000000..aa5192a41 --- /dev/null +++ b/org.fortiss.tooling.base/trunk/model/base.ecore @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ecore:EPackage xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model" + nsURI="http://www.fortiss.org/tooling/base" nsPrefix="org-fortiss-tooling-base"> + <eClassifiers xsi:type="ecore:EClass" name="INamedElement" abstract="true" interface="true" + eSuperTypes="../../org.unicase.metamodel/model/metamodel.ecore#//ModelElementId"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="INamedCommentedElement" abstract="true" + interface="true" eSuperTypes="#//INamedElement"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> +</ecore:EPackage> diff --git a/org.fortiss.tooling.base/trunk/model/base.genmodel b/org.fortiss.tooling.base/trunk/model/base.genmodel new file mode 100644 index 000000000..a177ccd78 --- /dev/null +++ b/org.fortiss.tooling.base/trunk/model/base.genmodel @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.fortiss.tooling.base/generated-src" + modelPluginID="org.fortiss.tooling.base" modelName="Base" importerID="org.eclipse.emf.importer.ecore" + containmentProxies="true" complianceLevel="6.0" copyrightFields="false" usedGenPackages="platform:/plugin/org.unicase.metamodel/model/metamodel.genmodel#//metamodel"> + <foreignModel>base.ecore</foreignModel> + <genPackages prefix="Base" basePackage="org.fortiss.tooling.base" disposableProviderFactory="true" + ecorePackage="base.ecore#/"> + <genClasses image="false" ecoreClass="base.ecore#//INamedElement"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute base.ecore#//INamedElement/name"/> + </genClasses> + <genClasses image="false" ecoreClass="base.ecore#//INamedCommentedElement"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute base.ecore#//INamedCommentedElement/comment"/> + </genClasses> + </genPackages> +</genmodel:GenModel> diff --git a/org.fortiss.tooling.base/trunk/plugin.properties b/org.fortiss.tooling.base/trunk/plugin.properties new file mode 100644 index 000000000..a7a84b839 --- /dev/null +++ b/org.fortiss.tooling.base/trunk/plugin.properties @@ -0,0 +1,8 @@ + +# <copyright> +# </copyright> +# +# $Id$ + +pluginName = Base Model +providerName = www.example.org diff --git a/org.fortiss.tooling.base/trunk/plugin.xml b/org.fortiss.tooling.base/trunk/plugin.xml new file mode 100644 index 000000000..b2692d690 --- /dev/null +++ b/org.fortiss.tooling.base/trunk/plugin.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id$ +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri="http://www.fortiss.org/tooling/base" + class="org.fortiss.tooling.base.model.BasePackage" + genModel="model/base.genmodel"/> + </extension> + +</plugin> -- GitLab