Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2013-02-05 18:00:29 +0000
committerptessier2013-02-05 18:00:29 +0000
commit1e35332e7e4f29fb615b7c41bb39d7a05c1224eb (patch)
tree5f02e8b356cd21ccac17655dc1f79e5b85645599 /tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation
parent0a6951c23e4d0d25071ca3959448abcc713a7296 (diff)
downloadorg.eclipse.papyrus-1e35332e7e4f29fb615b7c41bb39d7a05c1224eb.tar.gz
org.eclipse.papyrus-1e35332e7e4f29fb615b7c41bb39d7a05c1224eb.tar.xz
org.eclipse.papyrus-1e35332e7e4f29fb615b7c41bb39d7a05c1224eb.zip
399255: [OCL for Papyrus]The validation options for a UML Class Diagram should show the Constraints contributed by Stereotypes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399255
Diffstat (limited to 'tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation')
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.di17
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.notation49
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.uml16
3 files changed, 82 insertions, 0 deletions
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.di b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.di
new file mode 100644
index 00000000000..358934f01c4
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.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="model.notation#_OPIe8G-9EeKko_sFXbAb-Q"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="model.notation#_OPIe8G-9EeKko_sFXbAb-Q"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.notation b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.notation
new file mode 100644
index 00000000000..9ada8e85f84
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.notation
@@ -0,0 +1,49 @@
+<?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="_OPIe8G-9EeKko_sFXbAb-Q" type="PapyrusUMLClassDiagram" name="ClassDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_OrhgAG-9EeKko_sFXbAb-Q" type="2008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_P5kAcG-9EeKko_sFXbAb-Q" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_P5kAcW-9EeKko_sFXbAb-Q" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_P5kngG-9EeKko_sFXbAb-Q" key="StereotypeList" value="EditConstraintOnPropertyOfStereotype::Stereotype1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_P5kngW-9EeKko_sFXbAb-Q" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_P5kngm-9EeKko_sFXbAb-Q" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_P5kng2-9EeKko_sFXbAb-Q" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_OrhgAm-9EeKko_sFXbAb-Q" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Or1pEG-9EeKko_sFXbAb-Q" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OsX0kG-9EeKko_sFXbAb-Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_OsX0kW-9EeKko_sFXbAb-Q" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Or1pEW-9EeKko_sFXbAb-Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Or1pEm-9EeKko_sFXbAb-Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Or1pE2-9EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Or1pFG-9EeKko_sFXbAb-Q"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Or1pFW-9EeKko_sFXbAb-Q" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Osa34G-9EeKko_sFXbAb-Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Osa34W-9EeKko_sFXbAb-Q" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Or1pFm-9EeKko_sFXbAb-Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Or1pF2-9EeKko_sFXbAb-Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Or1pGG-9EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Or1pGW-9EeKko_sFXbAb-Q"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Or1pGm-9EeKko_sFXbAb-Q" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Osd7MG-9EeKko_sFXbAb-Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Osd7MW-9EeKko_sFXbAb-Q" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Or1pG2-9EeKko_sFXbAb-Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Or1pHG-9EeKko_sFXbAb-Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Or1pHW-9EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Or1pHm-9EeKko_sFXbAb-Q"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_OrBJsG-9EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OrhgAW-9EeKko_sFXbAb-Q" x="284" y="227"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_kuIbkG-9EeKko_sFXbAb-Q" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_kuJCoG-9EeKko_sFXbAb-Q" type="5038"/>
+ <element xmi:type="uml:Comment" href="model.uml#_kt05kG-9EeKko_sFXbAb-Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kuIbkW-9EeKko_sFXbAb-Q" x="430" y="65" width="476" height="116"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_OPIe8W-9EeKko_sFXbAb-Q"/>
+ <element xmi:type="uml:Model" href="model.uml#_Inyb8G-9EeKko_sFXbAb-Q"/>
+</notation:Diagram>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.uml b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.uml
new file mode 100644
index 00000000000..0b59bea6983
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/models/validation/model.uml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:EditConstraintOnPropertyOfStereotype="http:///schemas/EditConstraintOnPropertyOfStereotype/_-67nAG-6EeK5cr7NUZ6onQ/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http:///schemas/EditConstraintOnPropertyOfStereotype/_-67nAG-6EeK5cr7NUZ6onQ/0 ../profileEdition/EditConstraintOnPropertyofSterotype.profile.uml#_-67nAm-6EeK5cr7NUZ6onQ">
+ <uml:Model xmi:id="_Inyb8G-9EeKko_sFXbAb-Q" name="model">
+ <ownedComment xmi:id="_kt05kG-9EeKko_sFXbAb-Q">
+ <body>Normally this model is not valid, beacause the property of applied sterotype is lower than 10 (constraint defined in the applied profile)</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_OrBJsG-9EeKko_sFXbAb-Q" name="Class1"/>
+ <profileApplication xmi:id="_NITZwG-9EeKko_sFXbAb-Q">
+ <eAnnotations xmi:id="_NIV2AG-9EeKko_sFXbAb-Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="../profileEdition/EditConstraintOnPropertyofSterotype.profile.uml#_-67nAm-6EeK5cr7NUZ6onQ"/>
+ </eAnnotations>
+ <appliedProfile href="../profileEdition/EditConstraintOnPropertyofSterotype.profile.uml#_929swG-zEeK5cr7NUZ6onQ"/>
+ </profileApplication>
+ </uml:Model>
+ <EditConstraintOnPropertyOfStereotype:Stereotype1 xmi:id="_P4UqUG-9EeKko_sFXbAb-Q" Property1="5" base_NamedElement="_OrBJsG-9EeKko_sFXbAb-Q"/>
+</xmi:XMI>

Back to the top