Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreperico2009-12-11 06:00:21 -0500
committereperico2009-12-11 06:00:21 -0500
commit3ae60bfc50cef1a47616ead0db8235d8b471ed3f (patch)
tree7d1743e8c0e766aa3c3335985eaba20fcde73942 /plugins/profile-tool/org.eclipse.papyrus.resource/model
parentc5a2141f5fa69e7b8d804e9d7bd741f70fc24d55 (diff)
downloadorg.eclipse.papyrus-3ae60bfc50cef1a47616ead0db8235d8b471ed3f.tar.gz
org.eclipse.papyrus-3ae60bfc50cef1a47616ead0db8235d8b471ed3f.tar.xz
org.eclipse.papyrus-3ae60bfc50cef1a47616ead0db8235d8b471ed3f.zip
task 296901: add mechansim to get the papyrus resource from EMF resource
Diffstat (limited to 'plugins/profile-tool/org.eclipse.papyrus.resource/model')
-rw-r--r--plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecore3
-rw-r--r--plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecorediag4
-rw-r--r--plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.genmodel3
3 files changed, 10 insertions, 0 deletions
diff --git a/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecore b/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecore
index 570f6882597..6b01cf9c136 100644
--- a/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecore
+++ b/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecore
@@ -4,6 +4,9 @@
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="resource"
nsURI="http://www.eclipse.org/papyurs/0.7.0/Resource" nsPrefix="resource">
<eClassifiers xsi:type="ecore:EClass" name="Resource">
+ <eOperations name="setResource">
+ <eParameters name="r" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EResource"/>
+ </eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="eobjects" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject" volatile="true"
transient="true" containment="true"/>
diff --git a/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecorediag b/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecorediag
index 568ade511b4..3c3f7f3c752 100644
--- a/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecorediag
+++ b/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.ecorediag
@@ -8,6 +8,10 @@
<styles xmi:type="notation:FilteringStyle" xmi:id="_l5eDh65mEd6h2ecTXi7wcw"/>
</children>
<children xmi:type="notation:Node" xmi:id="_l5eDiK5mEd6h2ecTXi7wcw" type="5002">
+ <children xmi:type="notation:Node" xmi:id="_n7r08eWzEd6SJ_7l1eHvag" type="2002">
+ <element xmi:type="ecore:EOperation" href="resource.ecore#//Resource/setResource"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_n7r08uWzEd6SJ_7l1eHvag"/>
+ </children>
<styles xmi:type="notation:DrawerStyle" xmi:id="_l5eDia5mEd6h2ecTXi7wcw"/>
<styles xmi:type="notation:SortingStyle" xmi:id="_l5eDiq5mEd6h2ecTXi7wcw"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_l5eDi65mEd6h2ecTXi7wcw"/>
diff --git a/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.genmodel b/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.genmodel
index bd33ffd7dfd..5c55c823459 100644
--- a/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.genmodel
+++ b/plugins/profile-tool/org.eclipse.papyrus.resource/model/resource.genmodel
@@ -10,6 +10,9 @@
ecorePackage="resource.ecore#/">
<genClasses ecoreClass="resource.ecore#//Resource">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference resource.ecore#//Resource/eobjects"/>
+ <genOperations ecoreOperation="resource.ecore#//Resource/setResource">
+ <genParameters ecoreParameter="resource.ecore#//Resource/setResource/r"/>
+ </genOperations>
</genClasses>
<genClasses ecoreClass="resource.ecore#//ResourceEObject"/>
</genPackages>

Back to the top