Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/user')
-rw-r--r--examples/user/org.eclipse.papyrus.examples.user.QVToExamples/.project11
-rw-r--r--examples/user/org.eclipse.papyrus.examples.user.QVToExamples/MyTransfo.qvto16
-rw-r--r--examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.di17
-rw-r--r--examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.notation201
-rw-r--r--examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.uml39
5 files changed, 284 insertions, 0 deletions
diff --git a/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/.project b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/.project
new file mode 100644
index 00000000000..4cdfeb750d0
--- /dev/null
+++ b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>QVToExamples</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/MyTransfo.qvto b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/MyTransfo.qvto
new file mode 100644
index 00000000000..72ecc299a31
--- /dev/null
+++ b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/MyTransfo.qvto
@@ -0,0 +1,16 @@
+modeltype UML uses 'http://www.eclipse.org/uml2/3.0.0/UML';
+transformation MyTransformation(inout model : UML){
+
+ main() {
+ //Get the root of the model
+ var root := model.rootObjects()![UML::Model];
+ //Get all the classes in this model
+ var clazzes := model.objectsOfType(Class)->asSequence();
+
+ //Prefix all of them
+ clazzes->forEach(el){
+ el.name := "MySystem-"+el.name;
+ }
+ }
+
+} \ No newline at end of file
diff --git a/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.di b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.di
new file mode 100644
index 00000000000..3b01ee2d7c0
--- /dev/null
+++ b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/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#_4I66oK98Ed-AraimtK_2vA"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="model.notation#_4I66oK98Ed-AraimtK_2vA"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.notation b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.notation
new file mode 100644
index 00000000000..2236c2905f9
--- /dev/null
+++ b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.notation
@@ -0,0 +1,201 @@
+<?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/3.0.0/UML" xmi:id="_4I66oK98Ed-AraimtK_2vA" type="PapyrusUMLClassDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_zVeMILBgEd-EL9UfMUyvSg" type="2007" fontHeight="8" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zVeMIrBgEd-EL9UfMUyvSg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_zVeMI7BgEd-EL9UfMUyvSg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zVeMJLBgEd-EL9UfMUyvSg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_zVeMJbBgEd-EL9UfMUyvSg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zVeMJrBgEd-EL9UfMUyvSg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_zVeMJ7BgEd-EL9UfMUyvSg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zVeMKLBgEd-EL9UfMUyvSg" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zVeMKbBgEd-EL9UfMUyvSg" type="7016">
+ <children xmi:type="notation:Shape" xmi:id="_0w0IwLBgEd-EL9UfMUyvSg" type="3010" fontHeight="8" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_0w95wLBgEd-EL9UfMUyvSg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_0w95wbBgEd-EL9UfMUyvSg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_0w95wrBgEd-EL9UfMUyvSg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_0w95w7BgEd-EL9UfMUyvSg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_0w95xLBgEd-EL9UfMUyvSg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_0w95xbBgEd-EL9UfMUyvSg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_0w95xrBgEd-EL9UfMUyvSg" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_0w95x7BgEd-EL9UfMUyvSg" type="7011">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_0w95yLBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_0w95ybBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0w95yrBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_0w95y7BgEd-EL9UfMUyvSg" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_0w95zLBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_0w95zbBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0w95zrBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_0w95z7BgEd-EL9UfMUyvSg" type="7013">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_0w950LBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_0w950bBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0w950rBgEd-EL9UfMUyvSg"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_0whN0LBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0w0IwbBgEd-EL9UfMUyvSg" x="28" y="21"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2TdnQLBgEd-EL9UfMUyvSg" type="3010" fontHeight="8" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2TdnQrBgEd-EL9UfMUyvSg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2TdnQ7BgEd-EL9UfMUyvSg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2TdnRLBgEd-EL9UfMUyvSg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2TdnRbBgEd-EL9UfMUyvSg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2TdnRrBgEd-EL9UfMUyvSg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2TdnR7BgEd-EL9UfMUyvSg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2TdnSLBgEd-EL9UfMUyvSg" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2TdnSbBgEd-EL9UfMUyvSg" type="7011">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2TdnSrBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2TdnS7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2TdnTLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2TdnTbBgEd-EL9UfMUyvSg" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2TdnTrBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2TdnT7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2TdnULBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2TdnUbBgEd-EL9UfMUyvSg" type="7013">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2TdnUrBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2TdnU7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2TdnVLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_2TT2QLBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2TdnQbBgEd-EL9UfMUyvSg" x="293" y="21"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zVeMKrBgEd-EL9UfMUyvSg"/>
+ </children>
+ <element xmi:type="uml:Package" href="model.uml#_zU3vMLBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zVeMIbBgEd-EL9UfMUyvSg" x="237" y="159" width="384" height="157"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3plssLBgEd-EL9UfMUyvSg" type="2007" fontHeight="8" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_3plssrBgEd-EL9UfMUyvSg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_3plss7BgEd-EL9UfMUyvSg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_3plstLBgEd-EL9UfMUyvSg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_3plstbBgEd-EL9UfMUyvSg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_3plstrBgEd-EL9UfMUyvSg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_3plst7BgEd-EL9UfMUyvSg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3plsuLBgEd-EL9UfMUyvSg" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3plsubBgEd-EL9UfMUyvSg" type="7016">
+ <children xmi:type="notation:Shape" xmi:id="_6IbtsLBgEd-EL9UfMUyvSg" type="3010" fontHeight="8" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_6IbtsrBgEd-EL9UfMUyvSg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_6Ibts7BgEd-EL9UfMUyvSg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_6IbttLBgEd-EL9UfMUyvSg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_6IbttbBgEd-EL9UfMUyvSg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_6IbttrBgEd-EL9UfMUyvSg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_6Ibtt7BgEd-EL9UfMUyvSg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6IbtuLBgEd-EL9UfMUyvSg" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_6IbtubBgEd-EL9UfMUyvSg" type="7011">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_6IbturBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_6Ibtu7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6IbtvLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_6IbtvbBgEd-EL9UfMUyvSg" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_6IbtvrBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_6Ibtv7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6IbtwLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_6IbtwbBgEd-EL9UfMUyvSg" type="7013">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_6IbtwrBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_6Ibtw7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6IbtxLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_6ISjwLBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6IbtsbBgEd-EL9UfMUyvSg" x="34" y="21"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_722-YLBgEd-EL9UfMUyvSg" type="3010" fontHeight="8" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_722-YrBgEd-EL9UfMUyvSg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_722-Y7BgEd-EL9UfMUyvSg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_722-ZLBgEd-EL9UfMUyvSg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_722-ZbBgEd-EL9UfMUyvSg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_722-ZrBgEd-EL9UfMUyvSg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_722-Z7BgEd-EL9UfMUyvSg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_722-aLBgEd-EL9UfMUyvSg" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_722-abBgEd-EL9UfMUyvSg" type="7011">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_722-arBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_722-a7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_722-bLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_722-bbBgEd-EL9UfMUyvSg" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_722-brBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_722-b7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_722-cLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_722-cbBgEd-EL9UfMUyvSg" type="7013">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_722-crBgEd-EL9UfMUyvSg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_722-c7BgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_722-dLBgEd-EL9UfMUyvSg"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_72tNYLBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_722-YbBgEd-EL9UfMUyvSg" x="324" y="21"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3plsurBgEd-EL9UfMUyvSg"/>
+ </children>
+ <element xmi:type="uml:Package" href="model.uml#_3pb7sLBgEd-EL9UfMUyvSg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3plssbBgEd-EL9UfMUyvSg" x="636" y="159" width="446" height="158"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_4I66oa98Ed-AraimtK_2vA"/>
+ <element xmi:type="uml:Model" href="model.uml#_4IxJoK98Ed-AraimtK_2vA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_MncmtLBhEd-EL9UfMUyvSg" type="4001" source="_6IbtsLBgEd-EL9UfMUyvSg" target="_722-YLBgEd-EL9UfMUyvSg" lineColor="0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Mncmt7BhEd-EL9UfMUyvSg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MncmuLBhEd-EL9UfMUyvSg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MncmubBhEd-EL9UfMUyvSg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MncmurBhEd-EL9UfMUyvSg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Mncmu7BhEd-EL9UfMUyvSg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MncmvLBhEd-EL9UfMUyvSg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MncmvbBhEd-EL9UfMUyvSg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MncmvrBhEd-EL9UfMUyvSg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Mncmv7BhEd-EL9UfMUyvSg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MncmwLBhEd-EL9UfMUyvSg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MnmXsLBhEd-EL9UfMUyvSg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MnmXsbBhEd-EL9UfMUyvSg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_MncmtbBhEd-EL9UfMUyvSg" fontHeight="8"/>
+ <element xmi:type="uml:Association" href="model.uml#_MncmsLBhEd-EL9UfMUyvSg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_MncmtrBhEd-EL9UfMUyvSg" points="[20, 3, -270, 3]$[289, 33, -1, 33]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_UvgS9LBhEd-EL9UfMUyvSg" type="4001" source="_0w0IwLBgEd-EL9UfMUyvSg" target="_2TdnQLBgEd-EL9UfMUyvSg" lineColor="0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_UvgS97BhEd-EL9UfMUyvSg" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UvgS-LBhEd-EL9UfMUyvSg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UvgS-bBhEd-EL9UfMUyvSg" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UvgS-rBhEd-EL9UfMUyvSg" x="-2" y="12"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UvgS-7BhEd-EL9UfMUyvSg" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UvgS_LBhEd-EL9UfMUyvSg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UvgS_bBhEd-EL9UfMUyvSg" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UvgS_rBhEd-EL9UfMUyvSg" x="-14" y="-18"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UvgS_7BhEd-EL9UfMUyvSg" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UvgTALBhEd-EL9UfMUyvSg" x="-19" y="12"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UvgTAbBhEd-EL9UfMUyvSg" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UvgTArBhEd-EL9UfMUyvSg" x="9" y="17"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_UvgS9bBhEd-EL9UfMUyvSg" fontHeight="8"/>
+ <element xmi:type="uml:Association" href="model.uml#_UvgS8LBhEd-EL9UfMUyvSg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_UvgS9rBhEd-EL9UfMUyvSg" points="[20, 0, -215, 0]$[236, -32, 1, -32]"/>
+ </edges>
+</notation:Diagram>
diff --git a/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.uml b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.uml
new file mode 100644
index 00000000000..1c756cf1907
--- /dev/null
+++ b/examples/user/org.eclipse.papyrus.examples.user.QVToExamples/model.uml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xmi:id="_4IxJoK98Ed-AraimtK_2vA" name="Model">
+ <packageImport xmi:id="_4IxJoa98Ed-AraimtK_2vA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Package" xmi:id="_zU3vMLBgEd-EL9UfMUyvSg" name="System">
+ <packagedElement xmi:type="uml:Class" xmi:id="_0whN0LBgEd-EL9UfMUyvSg" name="Car">
+ <ownedAttribute xmi:id="_UvWh8LBhEd-EL9UfMUyvSg" name="engine" type="_2TT2QLBgEd-EL9UfMUyvSg" association="_UvgS8LBhEd-EL9UfMUyvSg">
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_UvWh8bBhEd-EL9UfMUyvSg" value="1"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_UvWh8rBhEd-EL9UfMUyvSg" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_2TT2QLBgEd-EL9UfMUyvSg" name="Engine"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_UvgS8LBhEd-EL9UfMUyvSg" name="car_engine" memberEnd="_UvgS8bBhEd-EL9UfMUyvSg _UvWh8LBhEd-EL9UfMUyvSg">
+ <ownedEnd xmi:id="_UvgS8bBhEd-EL9UfMUyvSg" name="car" type="_0whN0LBgEd-EL9UfMUyvSg" association="_UvgS8LBhEd-EL9UfMUyvSg">
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_UvgS8rBhEd-EL9UfMUyvSg" value="1"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_UvgS87BhEd-EL9UfMUyvSg" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_3pb7sLBgEd-EL9UfMUyvSg" name="Environment">
+ <packagedElement xmi:type="uml:Class" xmi:id="_6ISjwLBgEd-EL9UfMUyvSg" name="Road">
+ <ownedAttribute xmi:id="_MnS1sLBhEd-EL9UfMUyvSg" name="sign" visibility="public" type="_72tNYLBgEd-EL9UfMUyvSg" association="_MncmsLBhEd-EL9UfMUyvSg">
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_MnS1sbBhEd-EL9UfMUyvSg" value="*"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_MnS1srBhEd-EL9UfMUyvSg"/>
+ <defaultValue xmi:type="uml:LiteralString" xmi:id="_QqSKALBhEd-EL9UfMUyvSg">
+ <value xsi:nil="true"/>
+ </defaultValue>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_72tNYLBgEd-EL9UfMUyvSg" name="Sign"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_MncmsLBhEd-EL9UfMUyvSg" name="road_sign" memberEnd="_MncmsbBhEd-EL9UfMUyvSg _MnS1sLBhEd-EL9UfMUyvSg">
+ <ownedEnd xmi:id="_MncmsbBhEd-EL9UfMUyvSg" name="road" type="_6ISjwLBgEd-EL9UfMUyvSg" association="_MncmsLBhEd-EL9UfMUyvSg">
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_MncmsrBhEd-EL9UfMUyvSg" value="1"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Mncms7BhEd-EL9UfMUyvSg" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ </packagedElement>
+</uml:Model>

Back to the top