diff options
| author | cbrun | 2015-04-24 13:06:10 +0000 |
|---|---|---|
| committer | cbrun | 2015-04-24 13:06:21 +0000 |
| commit | 794a1ae15bdc6fb50f136cff49a787e239f97a50 (patch) | |
| tree | df0e0dc0a8591650e706ad830b983ab42b7807ea | |
| parent | 7212f6912f5d24e26b072fa0cb0f95ed907d2e21 (diff) | |
| download | org.eclipse.sirius-794a1ae15bdc6fb50f136cff49a787e239f97a50.tar.gz org.eclipse.sirius-794a1ae15bdc6fb50f136cff49a787e239f97a50.tar.xz org.eclipse.sirius-794a1ae15bdc6fb50f136cff49a787e239f97a50.zip | |
[465303] Add tests for lineSemantic/columnSemantic validation
Bug: 465303
Change-Id: Ia2569846b842538557a854783262d5d36b1d18f6
Signed-off-by: Cedric Brun <cedric.brun@obeo.fr>
| -rw-r--r-- | plugins/org.eclipse.sirius.tests.junit/data/unit/vsm/validateVariableTypes.odesign | 45 |
1 files changed, 40 insertions, 5 deletions
diff --git a/plugins/org.eclipse.sirius.tests.junit/data/unit/vsm/validateVariableTypes.odesign b/plugins/org.eclipse.sirius.tests.junit/data/unit/vsm/validateVariableTypes.odesign index 514205dafd..6001f081d4 100644 --- a/plugins/org.eclipse.sirius.tests.junit/data/unit/vsm/validateVariableTypes.odesign +++ b/plugins/org.eclipse.sirius.tests.junit/data/unit/vsm/validateVariableTypes.odesign @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<description:Group xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" xmlns:tool_1="http://www.eclipse.org/sirius/diagram/description/tool/1.1.0" xmlns:validation="http://www.eclipse.org/sirius/description/validation/1.1.0" name="vsmtypes" version="10.0.0.201411061000"> +<description:Group xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:description_2="http://www.eclipse.org/sirius/table/description/1.1.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" xmlns:tool_1="http://www.eclipse.org/sirius/diagram/description/tool/1.1.0" xmlns:validation="http://www.eclipse.org/sirius/description/validation/1.1.0" name="vsmtypes" version="10.0.0.201504091800"> <ownedViewpoints name="VSMTypes"> <ownedRepresentations xsi:type="description_1:DiagramDescription" name="SelfTypeInference" domainClass="interactions.Model"> <metamodel href="http://www.eclipse.org/sirius/sample/interactions#/"/> @@ -76,14 +76,14 @@ </style> </edgeMappings> <containerMappings name="ParticipantContainer" labelDirectEdit="//@ownedViewpoints[name='VSMTypes']/@ownedRepresentations[name='SelfTypeInference']/@defaultLayer/@toolSections.0/@subSections[name='Ignored']/@ownedTools[name='ElementType']" domainClass="interactions.Participant"> - <style xsi:type="style:FlatContainerStyleDescription"> + <style xsi:type="style:FlatContainerStyleDescription" arcWidth="1" arcHeight="1"> <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='white']"/> <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='light_gray']"/> </style> <conditionnalStyles predicateExpression="feature:nonExistent"> - <style xsi:type="style:ShapeContainerStyleDescription"> + <style xsi:type="style:ShapeContainerStyleDescription" arcWidth="1" arcHeight="1"> <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='light_gray']"/> @@ -91,13 +91,13 @@ </conditionnalStyles> </containerMappings> <containerMappings name="InteractionContainer" domainClass="interactions.Interaction"> - <style xsi:type="style:WorkspaceImageDescription" workspacePath="/org.eclipse.emf.ecore.edit/icons/full/obj16/EClass.gif"> + <style xsi:type="style:WorkspaceImageDescription" arcWidth="1" arcHeight="1" workspacePath="/org.eclipse.emf.ecore.edit/icons/full/obj16/EClass.gif"> <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> </style> </containerMappings> <containerMappings name="StateContainer" labelDirectEdit="//@ownedViewpoints[name='VSMTypes']/@ownedRepresentations[name='SelfTypeInference']/@defaultLayer/@toolSections.0/@ownedTools[name='MultipleTypes']" domainClass="interactions.State"> - <style xsi:type="style:ShapeContainerStyleDescription"> + <style xsi:type="style:ShapeContainerStyleDescription" arcWidth="1" arcHeight="1"> <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='light_gray']"/> @@ -370,5 +370,40 @@ </toolSections> </defaultLayer> </ownedRepresentations> + <ownedRepresentations xsi:type="description_2:CrossTableDescription" name="XTable" domainClass="interactions.Model"> + <ownedLineMappings name="Message Line" domainClass="interactions.Message"/> + <ownedColumnMappings name="Participant Column" domainClass="interactions.Participant"/> + <intersection name="Intersection Message Participant" lineMapping="//@ownedViewpoints[name='VSMTypes']/@ownedRepresentations[name='XTable']/@ownedLineMappings[name='Message%20Line']" columnMapping="//@ownedViewpoints[name='VSMTypes']/@ownedRepresentations[name='XTable']/@ownedColumnMappings.0" labelExpression="X" columnFinderExpression="aql:self.sendingEnd.context"> + <directEdit> + <variables name="element" documentation="The currently edited element."/> + <variables name="lineSemantic" documentation="The semantic element corresponding to the line."/> + <variables name="columnSemantic" documentation="The semantic element corresponding to the column (only available for Intersection Mapping)."/> + <variables name="root" documentation="The semantic element of the table."/> + <firstModelOperation xsi:type="tool:ChangeContext" browseExpression="var:root"> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="var:lineSemantic"> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="feature:sendingEnd"/> + </subModelOperations> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="var:columnSemantic"> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="feature:type"/> + </subModelOperations> + </firstModelOperation> + <mask mask="{0}"/> + </directEdit> + <create name="Create Cell"> + <variables name="lineSemantic" documentation="The semantic element corresponding to the line."/> + <variables name="columnSemantic" documentation="The semantic element corresponding to the column."/> + <variables name="root" documentation="The semantic root element of the table."/> + <firstModelOperation xsi:type="tool:ChangeContext" browseExpression="var:root"> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="var:lineSemantic"> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="feature:sendingEnd"/> + </subModelOperations> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="var:columnSemantic"> + <subModelOperations xsi:type="tool:ChangeContext" browseExpression="feature:type"/> + </subModelOperations> + </firstModelOperation> + <mask mask="{0}"/> + </create> + </intersection> + </ownedRepresentations> </ownedViewpoints> </description:Group> |
