Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Le Fevre - CEA2016-03-23 12:37:44 +0000
committerFrancois Le Fevre - CEA2016-12-02 14:22:45 +0000
commit80a748cad3053b544719a88bc169df66346c083e (patch)
treea9f35bca86fa4c59c485cb10010ba74105f79443 /examples/others/org.eclipse.papyrus.example.text.instance/model
parent941bb615fd965cab791ab55c37a57dd3337de21a (diff)
downloadorg.eclipse.papyrus-80a748cad3053b544719a88bc169df66346c083e.tar.gz
org.eclipse.papyrus-80a748cad3053b544719a88bc169df66346c083e.tar.xz
org.eclipse.papyrus-80a748cad3053b544719a88bc169df66346c083e.zip
Bug 476222: [examples] how to add the examples
- trying to integrate examples as a separate features - creation of intermediate poms Change-Id: I20af1ad53555a9256a2590fdd84fb0e8d60627e4 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=476222 Signed-off-by: Francois Le Fevre - CEA <francois.le-fevre@cea.fr>
Diffstat (limited to 'examples/others/org.eclipse.papyrus.example.text.instance/model')
-rw-r--r--examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.ecore10
-rw-r--r--examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.genmodel16
2 files changed, 26 insertions, 0 deletions
diff --git a/examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.ecore b/examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.ecore
new file mode 100644
index 00000000000..1efefbcdd3e
--- /dev/null
+++ b/examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.ecore
@@ -0,0 +1,10 @@
+<?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="papyrustextinstance" nsURI="http://www.eclipse.org/Papyrus/Example/0.9.0/papyrustextinstance"
+ nsPrefix="papyrustextinstance">
+ <eClassifiers xsi:type="ecore:EClass" name="PapyrusTextInstance" eSuperTypes="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EModelElement">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="editedObject" eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.genmodel b/examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.genmodel
new file mode 100644
index 00000000000..02d981047ff
--- /dev/null
+++ b/examples/others/org.eclipse.papyrus.example.text.instance/model/papyrustextinstance.genmodel
@@ -0,0 +1,16 @@
+<?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" copyrightText=" Copyright (c) 2012 CEA LIST.&#xD;&#xA;&#xD;&#xA; All rights reserved. This program and the accompanying materials&#xD;&#xA; are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA; which accompanies this distribution, and is available at&#xD;&#xA; http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA; Contributors:&#xD;&#xA; Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - Initial API and implementation&#xD;&#xA;"
+ modelDirectory="/org.eclipse.papyrus.example.text.instance/src" modelPluginID="org.eclipse.papyrus.example.text.instance"
+ modelName="Papyrustextinstance" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0"
+ copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore">
+ <foreignModel>papyrustextinstance.ecore</foreignModel>
+ <genPackages prefix="Papyrustextinstance" basePackage="org.eclipse.papyrus.example.test.instance"
+ disposableProviderFactory="true" ecorePackage="papyrustextinstance.ecore#/">
+ <genClasses ecoreClass="papyrustextinstance.ecore#//PapyrusTextInstance">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference papyrustextinstance.ecore#//PapyrusTextInstance/editedObject"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute papyrustextinstance.ecore#//PapyrusTextInstance/type"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute papyrustextinstance.ecore#//PapyrusTextInstance/name"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>

Back to the top