Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2013-02-05 12:49:12 -0500
committerptessier2013-02-05 12:49:12 -0500
commit0a6951c23e4d0d25071ca3959448abcc713a7296 (patch)
treeca5217c1bb9987ecf279dafaaf036644c34befe4 /tests/recipes/plugins
parentac6bf68b5b672b51c3f759839ccf9b1062ce25e7 (diff)
downloadorg.eclipse.papyrus-0a6951c23e4d0d25071ca3959448abcc713a7296.tar.gz
org.eclipse.papyrus-0a6951c23e4d0d25071ca3959448abcc713a7296.tar.xz
org.eclipse.papyrus-0a6951c23e4d0d25071ca3959448abcc713a7296.zip
399252: [OCL for Papyrus] The editing pop up for a Constraint in a UML State Diagram should support editing OCL
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399252
Diffstat (limited to 'tests/recipes/plugins')
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.di17
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.notation80
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.uml17
3 files changed, 114 insertions, 0 deletions
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.di b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.di
new file mode 100644
index 00000000000..95fbfe5c15f
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.di
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
+ <pageList>
+ <availablePage>
+ <emfPageIdentifier href="StateMachine.notation#_2uFE4G-7EeKko_sFXbAb-Q"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="StateMachine.notation#_2uFE4G-7EeKko_sFXbAb-Q"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.notation b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.notation
new file mode 100644
index 00000000000..dc269245bed
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.notation
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_2uFE4G-7EeKko_sFXbAb-Q" type="PapyrusUMLStateMachineDiagram" name="SmDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_2uFE4W-7EeKko_sFXbAb-Q" type="2000" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE4m-7EeKko_sFXbAb-Q" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE42-7EeKko_sFXbAb-Q" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE5G-7EeKko_sFXbAb-Q" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE5W-7EeKko_sFXbAb-Q" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE5m-7EeKko_sFXbAb-Q" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE52-7EeKko_sFXbAb-Q" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2uFE6G-7EeKko_sFXbAb-Q" type="2001">
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uFE6W-7EeKko_sFXbAb-Q" width="1006" height="15"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2uFE6m-7EeKko_sFXbAb-Q" type="2002">
+ <children xmi:type="notation:Shape" xmi:id="_2uFE62-7EeKko_sFXbAb-Q" type="3000" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE7G-7EeKko_sFXbAb-Q" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE7W-7EeKko_sFXbAb-Q" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE7m-7EeKko_sFXbAb-Q" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE72-7EeKko_sFXbAb-Q" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE8G-7EeKko_sFXbAb-Q" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE8W-7EeKko_sFXbAb-Q" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2uFE8m-7EeKko_sFXbAb-Q" source="RegionAnnotationKey">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2uFE82-7EeKko_sFXbAb-Q" key="RegionZoneKey" value=""/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2uFE9G-7EeKko_sFXbAb-Q" type="3002">
+ <children xmi:type="notation:Shape" xmi:id="_4fKA8G-7EeKko_sFXbAb-Q" type="6000">
+ <children xmi:type="notation:DecorationNode" xmi:id="_4fKA8m-7EeKko_sFXbAb-Q" type="6001"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_4fKA82-7EeKko_sFXbAb-Q" type="6002">
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4fKA9G-7EeKko_sFXbAb-Q"/>
+ </children>
+ <element xmi:type="uml:State" href="StateMachine.uml#_4fDTQG-7EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4fKA8W-7EeKko_sFXbAb-Q" x="306" y="159"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_5Vl5sG-7EeKko_sFXbAb-Q" type="6000">
+ <children xmi:type="notation:DecorationNode" xmi:id="_5Vl5sm-7EeKko_sFXbAb-Q" type="6001"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_5Vl5s2-7EeKko_sFXbAb-Q" type="6002">
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5Vl5tG-7EeKko_sFXbAb-Q"/>
+ </children>
+ <element xmi:type="uml:State" href="StateMachine.uml#_5ViPUG-7EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5Vl5sW-7EeKko_sFXbAb-Q" x="670" y="156"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_7K3ZQG-7EeKko_sFXbAb-Q" type="668">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7K4AUW-7EeKko_sFXbAb-Q" type="6668"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7K4AUm-7EeKko_sFXbAb-Q" type="6669"/>
+ <element xmi:type="uml:Constraint" href="StateMachine.uml#_7H-dUG-7EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7K4AUG-7EeKko_sFXbAb-Q" x="495" y="256" width="158"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uFE9W-7EeKko_sFXbAb-Q"/>
+ </children>
+ <element xmi:type="uml:Region" href="StateMachine.uml#_2s3j8G-7EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uFE9m-7EeKko_sFXbAb-Q" width="1006" height="521"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uFE92-7EeKko_sFXbAb-Q" y="15" width="1006" height="521"/>
+ </children>
+ <element xmi:type="uml:StateMachine" href="StateMachine.uml#_2cm6YG-7EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uFE-G-7EeKko_sFXbAb-Q" x="30" y="30" width="1006" height="536"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_2uFE-W-7EeKko_sFXbAb-Q"/>
+ <element xmi:type="uml:StateMachine" href="StateMachine.uml#_2cm6YG-7EeKko_sFXbAb-Q"/>
+ <edges xmi:type="notation:Connector" xmi:id="_6arScG-7EeKko_sFXbAb-Q" type="7000" source="_4fKA8G-7EeKko_sFXbAb-Q" target="_5Vl5sG-7EeKko_sFXbAb-Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_6arSc2-7EeKko_sFXbAb-Q" type="7001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6arSdG-7EeKko_sFXbAb-Q" x="17" y="-13"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ar5gG-7EeKko_sFXbAb-Q" type="7002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ar5gW-7EeKko_sFXbAb-Q" y="17"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ar5gm-7EeKko_sFXbAb-Q" type="7003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ar5g2-7EeKko_sFXbAb-Q" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_6arScW-7EeKko_sFXbAb-Q"/>
+ <element xmi:type="uml:Transition" href="StateMachine.uml#_6aUGEG-7EeKko_sFXbAb-Q"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_6arScm-7EeKko_sFXbAb-Q" points="[9, -1, -344, -2]$[358, -19, 5, -20]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_6bwQgG-7EeKko_sFXbAb-Q" id="(0.775,0.4)"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.uml b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.uml
new file mode 100644
index 00000000000..89e9def12cd
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/stateMachine/StateMachine.uml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_wuzDAG-7EeKko_sFXbAb-Q" name="stateMachine">
+ <packagedElement xmi:type="uml:StateMachine" xmi:id="_2cm6YG-7EeKko_sFXbAb-Q" name="StateMachine1">
+ <region xmi:id="_2s3j8G-7EeKko_sFXbAb-Q" name="Region1">
+ <transition xmi:id="_6aUGEG-7EeKko_sFXbAb-Q" name="Transition0" guard="_7H-dUG-7EeKko_sFXbAb-Q" source="_4fDTQG-7EeKko_sFXbAb-Q" target="_5ViPUG-7EeKko_sFXbAb-Q">
+ <ownedRule xmi:id="_7H-dUG-7EeKko_sFXbAb-Q" name="Constraint1" constrainedElement="_6aUGEG-7EeKko_sFXbAb-Q">
+ <specification xmi:type="uml:OpaqueExpression" xmi:id="_AvxzUG-8EeKko_sFXbAb-Q">
+ <language>OCL</language>
+ <body>self.name='toto'</body>
+ </specification>
+ </ownedRule>
+ </transition>
+ <subvertex xmi:type="uml:State" xmi:id="_4fDTQG-7EeKko_sFXbAb-Q" name="State0"/>
+ <subvertex xmi:type="uml:State" xmi:id="_5ViPUG-7EeKko_sFXbAb-Q" name="State1"/>
+ </region>
+ </packagedElement>
+</uml:Model>

Back to the top