diff options
| author | Laurent Redor | 2016-05-18 08:45:08 +0000 |
|---|---|---|
| committer | Laurent Redor | 2016-05-23 13:56:15 +0000 |
| commit | 2a0e18d88e1bd806866f4c4e663517f0573a3af7 (patch) | |
| tree | 43805d6a4a0c6ac13b1b32950b57c0aba2c0f80f | |
| parent | d31232a87c0b38d62cef394b440eb73ce1e66c83 (diff) | |
| download | org.eclipse.sirius-2a0e18d88e1bd806866f4c4e663517f0573a3af7.tar.gz org.eclipse.sirius-2a0e18d88e1bd806866f4c4e663517f0573a3af7.tar.xz org.eclipse.sirius-2a0e18d88e1bd806866f4c4e663517f0573a3af7.zip | |
493875: Fix a regression since bug 471139
The fix of bug 471139 causes a regression (the scroll bars of diagram
are not considered during coordinates computation). This commit fixes
this regression and adds new tests.
Bug: 493875
Change-Id: I82a9dca93f4d418cd2092a983180461385e20247
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
4 files changed, 596 insertions, 16 deletions
diff --git a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/graphical/edit/policies/SiriusGraphicalNodeEditPolicy.java b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/graphical/edit/policies/SiriusGraphicalNodeEditPolicy.java index baf9c1773e..e7e2102938 100644 --- a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/graphical/edit/policies/SiriusGraphicalNodeEditPolicy.java +++ b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/graphical/edit/policies/SiriusGraphicalNodeEditPolicy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2015 THALES GLOBAL SERVICES and others. + * Copyright (c) 2007, 2016 THALES GLOBAL SERVICES and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -764,12 +764,11 @@ public class SiriusGraphicalNodeEditPolicy extends TreeGraphicalNodeEditPolicy { INodeEditPart sourceEditPart = (INodeEditPart) request.getSourceEditPart(); // Location relative to the source: Position where the user - // clicked, but snap to grid if this feature is enabled + // clicked, but snapped to grid if this feature is enabled Point sourceLocation = getEdgeLocationSource(request); // Location relative to the target: Position where the user - // clicked, but snap to grid if this feature is enabled + // clicked, but snapped to grid if this feature is enabled Point targetLocation = getConvertedLocation(request); - EdgeLayoutData edgeLayoutData; if (GraphicalHelper.isSnapToGridEnabled(sourceEditPart)) { edgeLayoutData = getEdgeLayoutDataWithSnapToGrid(request, sourceEditPart, targetEP, sourceLocation, targetLocation); @@ -996,13 +995,32 @@ public class SiriusGraphicalNodeEditPolicy extends TreeGraphicalNodeEditPolicy { } private Point getConvertedLocation(final CreateRequest request) { - return getConvertedLocation(request.getLocation().getCopy(), getHost()); + return getConvertedLocation(request.getLocation().getCopy(), getHost(), false); } - private Point getConvertedLocation(Point pointToConvert, EditPart referencePart) { + /** + * Convert a location to a location relative to its parent ( + * <code>referencePart</code>). + * + * @param pointToConvert + * The point to convert + * @param referencePart + * The reference edit part. + * @param feedbackCoordinates + * true if the pointToConvert is from feedback, false otherwise + * (coordinates from request). The coordinates from feedback must + * be first adapted to remove diagram scrollbar to retrieve same + * coordinates as from request. + * @return The converted point. + */ + private Point getConvertedLocation(Point pointToConvert, EditPart referencePart, boolean feedbackCoordinates) { Point realLocation; if (pointToConvert != null && referencePart instanceof GraphicalEditPart) { final IFigure fig = ((GraphicalEditPart) referencePart).getFigure(); + if (feedbackCoordinates) { + // Remove diagram scrollbar + pointToConvert.translate(GraphicalHelper.getScrollSize((GraphicalEditPart) referencePart).negate()); + } fig.translateToRelative(pointToConvert); final Point containerLocation = fig.getBounds().getLocation(); realLocation = new Point(pointToConvert.x - containerLocation.x, pointToConvert.y - containerLocation.y); @@ -1124,10 +1142,10 @@ public class SiriusGraphicalNodeEditPolicy extends TreeGraphicalNodeEditPolicy { || connectionFeedback.getPoints().getFirstPoint().y == connectionFeedback.getPoints().getLastPoint().y))) { // Override edgeLayoutData Point sourceLocationFromFeedback = connectionFeedback.getPoints().getFirstPoint(); - sourceLocationFromFeedback = getConvertedLocation(sourceLocationFromFeedback, request.getSourceEditPart()); + sourceLocationFromFeedback = getConvertedLocation(sourceLocationFromFeedback, request.getSourceEditPart(), true); if (sourceLocationFromFeedback != null) { Point targetLocationFromFeedback = connectionFeedback.getPoints().getLastPoint(); - targetLocationFromFeedback = getConvertedLocation(targetLocationFromFeedback, request.getTargetEditPart()); + targetLocationFromFeedback = getConvertedLocation(targetLocationFromFeedback, request.getTargetEditPart(), true); if (GraphicalHelper.isSnapToGridEnabled(request.getSourceEditPart())) { feedbackEdgeLayoutData = getEdgeLayoutDataWithSnapToGrid(request, (INodeEditPart) request.getSourceEditPart(), (INodeEditPart) request.getTargetEditPart(), sourceLocationFromFeedback, targetLocationFromFeedback); diff --git a/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.aird b/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.aird index d609758f1b..a1f42919dc 100644 --- a/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.aird +++ b/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.aird @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> -<viewpoint:DAnalysis 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:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style" xmi:id="_oXGDgYTxEd-mF62d30Zm9Q" selectedViews="_ouJRkITxEd-mF62d30Zm9Q" version="10.1.0.201507101000"> +<viewpoint:DAnalysis 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:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style" xmi:id="_oXGDgYTxEd-mF62d30Zm9Q" selectedViews="_ouJRkITxEd-mF62d30Zm9Q" version="11.0.0.201604141600"> <semanticResources>tc-2185.ecore</semanticResources> - <ownedViews xmi:type="viewpoint:DRepresentationContainer" xmi:id="_ouJRkITxEd-mF62d30Zm9Q"> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_ouJRkITxEd-mF62d30Zm9Q"> + <viewpoint xmi:type="description:Viewpoint" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']"/> <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_psrWYITxEd-mF62d30Zm9Q" name="Node"> <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_psr9cITxEd-mF62d30Zm9Q" source="GMF_DIAGRAMS"> <data xmi:type="notation:Diagram" xmi:id="_psr9cYTxEd-mF62d30Zm9Q" type="Sirius" element="_psrWYITxEd-mF62d30Zm9Q" measurementUnit="Pixel"> @@ -183,6 +184,15 @@ <styles xmi:type="notation:ShapeStyle" xmi:id="_JP4XEYT1Ed-mF62d30Zm9Q" fontName="Sans" fontHeight="8"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JP4XEoT1Ed-mF62d30Zm9Q" x="30" y="30" height="243"/> </children> + <children xmi:type="notation:Node" xmi:id="_e1s6IB3TEeaKrriaW4LcUw" type="3008" element="_e1hT8B3TEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_e1s6Ix3TEeaKrriaW4LcUw" type="5005"/> + <children xmi:type="notation:Node" xmi:id="_e1s6JB3TEeaKrriaW4LcUw" type="7002"> + <styles xmi:type="notation:SortingStyle" xmi:id="_e1s6JR3TEeaKrriaW4LcUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_e1s6Jh3TEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_e1s6IR3TEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e1s6Ih3TEeaKrriaW4LcUw" x="207" y="150" width="29"/> + </children> <styles xmi:type="notation:SortingStyle" xmi:id="_JPsJ1YT1Ed-mF62d30Zm9Q"/> <styles xmi:type="notation:FilteringStyle" xmi:id="_JPsJ1oT1Ed-mF62d30Zm9Q"/> </children> @@ -226,7 +236,18 @@ <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_Qzy1cJjLEeCGbO5oLE72PQ" name="C"> <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> - <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_Qzy1cZjLEeCGbO5oLE72PQ" borderSize="1" borderSizeComputationExpression="1"> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_Qzy1cZjLEeCGbO5oLE72PQ"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_e1hT8B3TEeaKrriaW4LcUw" name="OtherClass"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_e1h7AB3TEeaKrriaW4LcUw"> <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']/@style"/> </ownedStyle> <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']"/> @@ -248,7 +269,7 @@ <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> <arrangeConstraints>KEEP_SIZE</arrangeConstraints> <arrangeConstraints>KEEP_RATIO</arrangeConstraints> - <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_QzzcgZjLEeCGbO5oLE72PQ" borderSize="1" borderSizeComputationExpression="1"> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_QzzcgZjLEeCGbO5oLE72PQ"> <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']/@style"/> </ownedStyle> <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']"/> @@ -276,6 +297,17 @@ <styles xmi:type="notation:ShapeStyle" xmi:id="_viG74YT1Ed-mF62d30Zm9Q" fontName="Sans" fontHeight="8"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="_viG74oT1Ed-mF62d30Zm9Q" x="30" y="30" width="181" height="190"/> </children> + <children xmi:type="notation:Node" xmi:id="_J7TR4B3VEeaKrriaW4LcUw" type="3007" element="_J7QOkB3VEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_J7TR4x3VEeaKrriaW4LcUw" type="5003"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_J7TR5B3VEeaKrriaW4LcUw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_J7T48B3VEeaKrriaW4LcUw" type="3003" element="_J7Q1oB3VEeaKrriaW4LcUw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_J7T48R3VEeaKrriaW4LcUw" fontName="Segoe UI"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_J7T48h3VEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_J7TR4R3VEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_J7TR4h3VEeaKrriaW4LcUw" x="-31" y="-31" width="30" height="30"/> + </children> <styles xmi:type="notation:SortingStyle" xmi:id="_viFtwoT1Ed-mF62d30Zm9Q"/> <styles xmi:type="notation:FilteringStyle" xmi:id="_viFtw4T1Ed-mF62d30Zm9Q"/> </children> @@ -326,6 +358,14 @@ </ownedStyle> <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']"/> </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_J7QOkB3VEeaKrriaW4LcUw" name="OtherClass" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_J7Q1oB3VEeaKrriaW4LcUw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']"/> + </ownedDiagramElements> </ownedDiagramElements> <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_Qz14xZjLEeCGbO5oLE72PQ" name="sub2"> <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> @@ -374,6 +414,17 @@ <styles xmi:type="notation:ShapeStyle" xmi:id="__T2WUYT1Ed-mF62d30Zm9Q" fontName="Sans" fontHeight="8"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="__T2WUoT1Ed-mF62d30Zm9Q" x="140" y="27" width="30" height="251"/> </children> + <children xmi:type="notation:Node" xmi:id="_h8JbwB3VEeaKrriaW4LcUw" type="3012" element="_h8INoB3VEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_h8Jbwx3VEeaKrriaW4LcUw" type="5010"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_h8JbxB3VEeaKrriaW4LcUw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_h8JbxR3VEeaKrriaW4LcUw" type="3003" element="_h8INoR3VEeaKrriaW4LcUw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_h8Jbxh3VEeaKrriaW4LcUw" fontName="Segoe UI"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_h8Jbxx3VEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_h8JbwR3VEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_h8Jbwh3VEeaKrriaW4LcUw" x="-22" y="36" width="30" height="122"/> + </children> <styles xmi:type="notation:ShapeStyle" xmi:id="__SlyEYT1Ed-mF62d30Zm9Q" fontName="Sans" fontHeight="8"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="__SlyEoT1Ed-mF62d30Zm9Q" x="149" y="29" height="339"/> </children> @@ -417,6 +468,17 @@ </ownedStyle> <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']"/> </ownedBorderedNodes> + <ownedBorderedNodes xmi:type="diagram:DNode" xmi:id="_h8INoB3VEeaKrriaW4LcUw" name="OtherClass" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_h8INoR3VEeaKrriaW4LcUw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']"/> + </ownedBorderedNodes> <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> <arrangeConstraints>KEEP_SIZE</arrangeConstraints> <arrangeConstraints>KEEP_RATIO</arrangeConstraints> @@ -474,6 +536,17 @@ <styles xmi:type="notation:ShapeStyle" xmi:id="_7i3ggTw3EeW95K198shbgg" fontName="Ubuntu" fontHeight="8"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7i3ggjw3EeW95K198shbgg" x="251" y="35" width="30" height="206"/> </children> + <children xmi:type="notation:Node" xmi:id="_eZChYB3VEeaKrriaW4LcUw" type="3001" element="_eZBTQB3VEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_eZChYx3VEeaKrriaW4LcUw" type="5001"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_eZChZB3VEeaKrriaW4LcUw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_eZDIcB3VEeaKrriaW4LcUw" type="3003" element="_eZBTQR3VEeaKrriaW4LcUw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_eZDIcR3VEeaKrriaW4LcUw" fontName="Segoe UI"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eZDIch3VEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_eZChYR3VEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eZChYh3VEeaKrriaW4LcUw" x="-22" y="85" width="30" height="126"/> + </children> <styles xmi:type="notation:ShapeStyle" xmi:id="_UNYJ8YT2Ed-mF62d30Zm9Q" fontName="Sans" fontHeight="8"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="_UNYJ8oT2Ed-mF62d30Zm9Q" x="58" y="30" width="259" height="358"/> </children> @@ -519,6 +592,17 @@ </ownedStyle> <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Node']/@defaultLayer/@nodeMappings[name='NM_EPackage']/@borderedNodeMappings[name='NM_Class2']"/> </ownedBorderedNodes> + <ownedBorderedNodes xmi:type="diagram:DNode" xmi:id="_eZBTQB3VEeaKrriaW4LcUw" name="OtherClass" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_eZBTQR3VEeaKrriaW4LcUw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Node']/@defaultLayer/@nodeMappings[name='NM_EPackage']/@borderedNodeMappings[name='NM_Class2']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Node']/@defaultLayer/@nodeMappings[name='NM_EPackage']/@borderedNodeMappings[name='NM_Class2']"/> + </ownedBorderedNodes> <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> <arrangeConstraints>KEEP_SIZE</arrangeConstraints> <arrangeConstraints>KEEP_RATIO</arrangeConstraints> @@ -612,6 +696,417 @@ <activatedLayers xmi:type="description_1:Layer" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']/@defaultLayer"/> <target xmi:type="ecore:EPackage" href="tc-2185.ecore#/"/> </ownedRepresentations> - <viewpoint xmi:type="description:Viewpoint" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']"/> + <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_wV4ZwBzKEeaWPP--wfN-1Q" name="NodeForStraightCaseWithScroll"> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_wV4ZwRzKEeaWPP--wfN-1Q" source="GMF_DIAGRAMS"> + <data xmi:type="notation:Diagram" xmi:id="_wV4ZwhzKEeaWPP--wfN-1Q" type="Sirius" element="_wV4ZwBzKEeaWPP--wfN-1Q" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_wV4ZwxzKEeaWPP--wfN-1Q" type="2001" element="_wV4Z1hzKEeaWPP--wfN-1Q"> + <children xmi:type="notation:Node" xmi:id="_wV4ZxBzKEeaWPP--wfN-1Q" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_wV4ZxRzKEeaWPP--wfN-1Q" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_wV4ZxhzKEeaWPP--wfN-1Q" type="3003" element="_wV4Z1xzKEeaWPP--wfN-1Q"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_wV4ZxxzKEeaWPP--wfN-1Q" fontName="Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wV4ZyBzKEeaWPP--wfN-1Q"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_wV4ZyRzKEeaWPP--wfN-1Q" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wV4ZyhzKEeaWPP--wfN-1Q" x="2435" y="2030" width="302" height="101"/> + </children> + <children xmi:type="notation:Node" xmi:id="_wV4ZyxzKEeaWPP--wfN-1Q" type="2001" element="_wV4Z2BzKEeaWPP--wfN-1Q"> + <children xmi:type="notation:Node" xmi:id="_wV4ZzBzKEeaWPP--wfN-1Q" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_wV4ZzRzKEeaWPP--wfN-1Q" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_wV4ZzhzKEeaWPP--wfN-1Q" type="3003" element="_wV4Z2RzKEeaWPP--wfN-1Q"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_wV4ZzxzKEeaWPP--wfN-1Q" fontName="Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wV4Z0BzKEeaWPP--wfN-1Q"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_wV4Z0RzKEeaWPP--wfN-1Q" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wV4Z0hzKEeaWPP--wfN-1Q" x="2435" y="2190" width="302" height="101"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_wV4Z0xzKEeaWPP--wfN-1Q"/> + </data> + </ownedAnnotationEntries> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_wV4Z1BzKEeaWPP--wfN-1Q" source="DANNOTATION_CUSTOMIZATION_KEY"> + <data xmi:type="diagram:ComputedStyleDescriptionRegistry" xmi:id="_wV4Z1RzKEeaWPP--wfN-1Q"/> + </ownedAnnotationEntries> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_wV4Z1hzKEeaWPP--wfN-1Q" name="A" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//A"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//A"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_wV4Z1xzKEeaWPP--wfN-1Q" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']/@defaultLayer/@nodeMappings[name='NM_EClass']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']/@defaultLayer/@nodeMappings[name='NM_EClass']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_wV4Z2BzKEeaWPP--wfN-1Q" name="B" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//B"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//B"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_wV4Z2RzKEeaWPP--wfN-1Q" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']/@defaultLayer/@nodeMappings[name='NM_EClass']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']/@defaultLayer/@nodeMappings[name='NM_EClass']"/> + </ownedDiagramElements> + <description xmi:type="description_1:DiagramDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']"/> + <filterVariableHistory xmi:type="diagram:FilterVariableHistory" xmi:id="_wV4Z2hzKEeaWPP--wfN-1Q"/> + <activatedLayers xmi:type="description_1:Layer" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node']/@defaultLayer"/> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#/"/> + </ownedRepresentations> + <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_ckFroB0JEeaK-YC6Qd4duw" name="Bordered Node on Container With Scroll"> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_ckFroR0JEeaK-YC6Qd4duw" source="GMF_DIAGRAMS"> + <data xmi:type="notation:Diagram" xmi:id="_ckFroh0JEeaK-YC6Qd4duw" type="Sirius" element="_ckFroB0JEeaK-YC6Qd4duw" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_ckFrox0JEeaK-YC6Qd4duw" type="2002" element="_ckFrxB0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_ckFrpB0JEeaK-YC6Qd4duw" type="5006"/> + <children xmi:type="notation:Node" xmi:id="_ckFrpR0JEeaK-YC6Qd4duw" type="7001"> + <styles xmi:type="notation:SortingStyle" xmi:id="_ckFrph0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ckFrpx0JEeaK-YC6Qd4duw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ckFrqB0JEeaK-YC6Qd4duw" type="3012" element="_ckFrxR0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_ckFrqR0JEeaK-YC6Qd4duw" type="5010"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ckFrqh0JEeaK-YC6Qd4duw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ckFrqx0JEeaK-YC6Qd4duw" type="3003" element="_ckFrxh0JEeaK-YC6Qd4duw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ckFrrB0JEeaK-YC6Qd4duw" fontName="Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ckFrrR0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ckFrrh0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ckFrrx0JEeaK-YC6Qd4duw" x="140" y="37" width="30" height="251"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g0DLQB3VEeaKrriaW4LcUw" type="3012" element="_g0CkMB3VEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_g0DLQx3VEeaKrriaW4LcUw" type="5010"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g0DLRB3VEeaKrriaW4LcUw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g0DyUB3VEeaKrriaW4LcUw" type="3003" element="_g0CkMR3VEeaKrriaW4LcUw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_g0DyUR3VEeaKrriaW4LcUw" fontName="Segoe UI"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_g0DyUh3VEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_g0DLQR3VEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_g0DLQh3VEeaKrriaW4LcUw" x="-22" y="62" width="30" height="113"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ckFrsB0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ckFrsR0JEeaK-YC6Qd4duw" x="700" y="588" height="339"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ckFrsh0JEeaK-YC6Qd4duw" type="2002" element="_ckFryB0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_ckFrsx0JEeaK-YC6Qd4duw" type="5006"/> + <children xmi:type="notation:Node" xmi:id="_ckFrtB0JEeaK-YC6Qd4duw" type="7001"> + <styles xmi:type="notation:SortingStyle" xmi:id="_ckFrtR0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ckFrth0JEeaK-YC6Qd4duw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ckFrtx0JEeaK-YC6Qd4duw" type="3012" element="_ckFryR0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_ckFruB0JEeaK-YC6Qd4duw" type="5010"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ckFruR0JEeaK-YC6Qd4duw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ckFruh0JEeaK-YC6Qd4duw" type="3003" element="_ckFryh0JEeaK-YC6Qd4duw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ckFrux0JEeaK-YC6Qd4duw" fontName="Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ckFrvB0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ckFrvR0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ckFrvh0JEeaK-YC6Qd4duw" x="-22" y="70" width="30" height="160"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ckFrvx0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ckFrwB0JEeaK-YC6Qd4duw" x="1120" y="555" height="337"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_ckFrwR0JEeaK-YC6Qd4duw"/> + </data> + </ownedAnnotationEntries> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_ckFrwh0JEeaK-YC6Qd4duw" source="DANNOTATION_CUSTOMIZATION_KEY"> + <data xmi:type="diagram:ComputedStyleDescriptionRegistry" xmi:id="_ckFrwx0JEeaK-YC6Qd4duw"/> + </ownedAnnotationEntries> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_ckFrxB0JEeaK-YC6Qd4duw" name="sub1"> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub1"/> + <semanticElements xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub1"/> + <ownedBorderedNodes xmi:type="diagram:DNode" xmi:id="_ckFrxR0JEeaK-YC6Qd4duw" name="C" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_ckFrxh0JEeaK-YC6Qd4duw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']"/> + </ownedBorderedNodes> + <ownedBorderedNodes xmi:type="diagram:DNode" xmi:id="_g0CkMB3VEeaKrriaW4LcUw" name="OtherClass" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_g0CkMR3VEeaKrriaW4LcUw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']"/> + </ownedBorderedNodes> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_ckFrxx0JEeaK-YC6Qd4duw" borderSize="1" borderSizeComputationExpression="1"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_ckFryB0JEeaK-YC6Qd4duw" name="sub2"> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> + <semanticElements xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> + <ownedBorderedNodes xmi:type="diagram:DNode" xmi:id="_ckFryR0JEeaK-YC6Qd4duw" name="D" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub2/D"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub2/D"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_ckFryh0JEeaK-YC6Qd4duw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@borderedNodeMappings[name='NM_Class']"/> + </ownedBorderedNodes> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_ckFryx0JEeaK-YC6Qd4duw" borderSize="1" borderSizeComputationExpression="1"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer/@containerMappings[name='CM_EPackage']"/> + </ownedDiagramElements> + <description xmi:type="description_1:DiagramDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']"/> + <filterVariableHistory xmi:type="diagram:FilterVariableHistory" xmi:id="_ckFrzB0JEeaK-YC6Qd4duw"/> + <activatedLayers xmi:type="description_1:Layer" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Bordered%20Node%20on%20Container']/@defaultLayer"/> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#/"/> + </ownedRepresentations> + <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_iwbSEB0JEeaK-YC6Qd4duw" name="Node in Container With Scroll"> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_iwbSER0JEeaK-YC6Qd4duw" source="GMF_DIAGRAMS"> + <data xmi:type="notation:Diagram" xmi:id="_iwbSEh0JEeaK-YC6Qd4duw" type="Sirius" element="_iwbSEB0JEeaK-YC6Qd4duw" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_iwbSEx0JEeaK-YC6Qd4duw" type="2002" element="_iwbSNB0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_iwbSFB0JEeaK-YC6Qd4duw" type="5006"/> + <children xmi:type="notation:Node" xmi:id="_iwbSFR0JEeaK-YC6Qd4duw" type="7001"> + <children xmi:type="notation:Node" xmi:id="_iwbSFh0JEeaK-YC6Qd4duw" type="3007" element="_iwbSNh0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_iwbSFx0JEeaK-YC6Qd4duw" type="5003"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_iwbSGB0JEeaK-YC6Qd4duw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_iwbSGR0JEeaK-YC6Qd4duw" type="3003" element="_iwbSNx0JEeaK-YC6Qd4duw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_iwbSGh0JEeaK-YC6Qd4duw" fontName="Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbSGx0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_iwbSHB0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbSHR0JEeaK-YC6Qd4duw" x="141" y="267" width="151" height="169"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Kle3UB3VEeaKrriaW4LcUw" type="3007" element="_KldpMB3VEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_Kle3Ux3VEeaKrriaW4LcUw" type="5003"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Kle3VB3VEeaKrriaW4LcUw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Kle3VR3VEeaKrriaW4LcUw" type="3003" element="_KldpMR3VEeaKrriaW4LcUw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_Kle3Vh3VEeaKrriaW4LcUw" fontName="Segoe UI"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kle3Vx3VEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_Kle3UR3VEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kle3Uh3VEeaKrriaW4LcUw" x="316" y="367" width="96" height="30"/> + </children> + <styles xmi:type="notation:SortingStyle" xmi:id="_iwbSHh0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbSHx0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_iwbSIB0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbSIR0JEeaK-YC6Qd4duw" x="475" y="555" width="267" height="280"/> + </children> + <children xmi:type="notation:Node" xmi:id="_iwbSIh0JEeaK-YC6Qd4duw" type="2002" element="_iwbSOB0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_iwbSIx0JEeaK-YC6Qd4duw" type="5006"/> + <children xmi:type="notation:Node" xmi:id="_iwbSJB0JEeaK-YC6Qd4duw" type="7001"> + <children xmi:type="notation:Node" xmi:id="_iwbSJR0JEeaK-YC6Qd4duw" type="3007" element="_iwbSOh0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_iwbSJh0JEeaK-YC6Qd4duw" type="5003"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_iwbSJx0JEeaK-YC6Qd4duw" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_iwbSKB0JEeaK-YC6Qd4duw" type="3003" element="_iwbSOx0JEeaK-YC6Qd4duw"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_iwbSKR0JEeaK-YC6Qd4duw" fontName="Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbSKh0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_iwbSKx0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbSLB0JEeaK-YC6Qd4duw" x="141" y="267" width="151" height="169"/> + </children> + <styles xmi:type="notation:SortingStyle" xmi:id="_iwbSLR0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbSLh0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_iwbSLx0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbSMB0JEeaK-YC6Qd4duw" x="915" y="555" width="267" height="280"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_iwbSMR0JEeaK-YC6Qd4duw"/> + </data> + </ownedAnnotationEntries> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_iwbSMh0JEeaK-YC6Qd4duw" source="DANNOTATION_CUSTOMIZATION_KEY"> + <data xmi:type="diagram:ComputedStyleDescriptionRegistry" xmi:id="_iwbSMx0JEeaK-YC6Qd4duw"/> + </ownedAnnotationEntries> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_iwbSNB0JEeaK-YC6Qd4duw" name="sub1"> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub1"/> + <semanticElements xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub1"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_iwbSNR0JEeaK-YC6Qd4duw" borderSize="1" borderSizeComputationExpression="1"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']"/> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_iwbSNh0JEeaK-YC6Qd4duw" name="C" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_iwbSNx0JEeaK-YC6Qd4duw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_KldpMB3VEeaKrriaW4LcUw" name="OtherClass" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_KldpMR3VEeaKrriaW4LcUw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']"/> + </ownedDiagramElements> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_iwbSOB0JEeaK-YC6Qd4duw" name="sub2"> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> + <semanticElements xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_iwbSOR0JEeaK-YC6Qd4duw" borderSize="1" borderSizeComputationExpression="1"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']"/> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_iwbSOh0JEeaK-YC6Qd4duw" name="D" width="3" height="3" resizeKind="NSEW"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub2/D"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub2/D"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:Square" xmi:id="_iwbSOx0JEeaK-YC6Qd4duw" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer/@containerMappings[name='NIC_CM_EPackage']/@subNodeMappings[name='NIC_NM_Class']"/> + </ownedDiagramElements> + </ownedDiagramElements> + <description xmi:type="description_1:DiagramDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']"/> + <filterVariableHistory xmi:type="diagram:FilterVariableHistory" xmi:id="_iwbSPB0JEeaK-YC6Qd4duw"/> + <activatedLayers xmi:type="description_1:Layer" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Node%20in%20Container']/@defaultLayer"/> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#/"/> + </ownedRepresentations> + <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_mIidYB0JEeaK-YC6Qd4duw" name="Container in Container With Scroll"> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_mIidYR0JEeaK-YC6Qd4duw" source="GMF_DIAGRAMS"> + <data xmi:type="notation:Diagram" xmi:id="_mIidYh0JEeaK-YC6Qd4duw" type="Sirius" element="_mIidYB0JEeaK-YC6Qd4duw" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_mIidYx0JEeaK-YC6Qd4duw" type="2002" element="_mIidgh0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_mIidZB0JEeaK-YC6Qd4duw" type="5006"/> + <children xmi:type="notation:Node" xmi:id="_mIidZR0JEeaK-YC6Qd4duw" type="7001"> + <children xmi:type="notation:Node" xmi:id="_mIidZh0JEeaK-YC6Qd4duw" type="3008" element="_mIidhB0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_mIidZx0JEeaK-YC6Qd4duw" type="5005"/> + <children xmi:type="notation:Node" xmi:id="_mIidaB0JEeaK-YC6Qd4duw" type="7002"> + <styles xmi:type="notation:SortingStyle" xmi:id="_mIidaR0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mIidah0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mIidax0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mIidbB0JEeaK-YC6Qd4duw" x="296" y="360" height="243"/> + </children> + <children xmi:type="notation:Node" xmi:id="_e1mzgB3TEeaKrriaW4LcUw" type="3008" element="_e1e3sB3TEeaKrriaW4LcUw"> + <children xmi:type="notation:Node" xmi:id="_e1pPwB3TEeaKrriaW4LcUw" type="5005"/> + <children xmi:type="notation:Node" xmi:id="_e1rsAB3TEeaKrriaW4LcUw" type="7002"> + <styles xmi:type="notation:SortingStyle" xmi:id="_e1rsAR3TEeaKrriaW4LcUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_e1rsAh3TEeaKrriaW4LcUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_e1mzgR3TEeaKrriaW4LcUw" fontName="Segoe UI" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e1mzgh3TEeaKrriaW4LcUw" x="463" y="432" height="48"/> + </children> + <styles xmi:type="notation:SortingStyle" xmi:id="_mIidbR0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mIidbh0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mIidbx0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mIidcB0JEeaK-YC6Qd4duw" x="400" y="600" width="263" height="303"/> + </children> + <children xmi:type="notation:Node" xmi:id="_mIidcR0JEeaK-YC6Qd4duw" type="2002" element="_mIidhh0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_mIidch0JEeaK-YC6Qd4duw" type="5006"/> + <children xmi:type="notation:Node" xmi:id="_mIidcx0JEeaK-YC6Qd4duw" type="7001"> + <children xmi:type="notation:Node" xmi:id="_mIiddB0JEeaK-YC6Qd4duw" type="3008" element="_mIidiB0JEeaK-YC6Qd4duw"> + <children xmi:type="notation:Node" xmi:id="_mIiddR0JEeaK-YC6Qd4duw" type="5005"/> + <children xmi:type="notation:Node" xmi:id="_mIiddh0JEeaK-YC6Qd4duw" type="7002"> + <styles xmi:type="notation:SortingStyle" xmi:id="_mIiddx0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mIideB0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mIideR0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mIideh0JEeaK-YC6Qd4duw" x="340" y="360" height="243"/> + </children> + <styles xmi:type="notation:SortingStyle" xmi:id="_mIidex0JEeaK-YC6Qd4duw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mIidfB0JEeaK-YC6Qd4duw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mIidfR0JEeaK-YC6Qd4duw" fontName="Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mIidfh0JEeaK-YC6Qd4duw" x="825" y="600" width="337" height="303"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_mIidfx0JEeaK-YC6Qd4duw"/> + </data> + </ownedAnnotationEntries> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_mIidgB0JEeaK-YC6Qd4duw" source="DANNOTATION_CUSTOMIZATION_KEY"> + <data xmi:type="diagram:ComputedStyleDescriptionRegistry" xmi:id="_mIidgR0JEeaK-YC6Qd4duw"/> + </ownedAnnotationEntries> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_mIidgh0JEeaK-YC6Qd4duw" name="sub1"> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub1"/> + <semanticElements xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub1"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_mIidgx0JEeaK-YC6Qd4duw" borderSize="1" borderSizeComputationExpression="1"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']"/> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_mIidhB0JEeaK-YC6Qd4duw" name="C"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/C"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_mIidhR0JEeaK-YC6Qd4duw"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_e1e3sB3TEeaKrriaW4LcUw" name="OtherClass"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub1/OtherClass"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_e1fewB3TEeaKrriaW4LcUw"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']"/> + </ownedDiagramElements> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_mIidhh0JEeaK-YC6Qd4duw" name="sub2"> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> + <semanticElements xmi:type="ecore:EPackage" href="tc-2185.ecore#//sub2"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_mIidhx0JEeaK-YC6Qd4duw" borderSize="1" borderSizeComputationExpression="1"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']"/> + <ownedDiagramElements xmi:type="diagram:DNodeContainer" xmi:id="_mIidiB0JEeaK-YC6Qd4duw" name="D"> + <target xmi:type="ecore:EClass" href="tc-2185.ecore#//sub2/D"/> + <semanticElements xmi:type="ecore:EClass" href="tc-2185.ecore#//sub2/D"/> + <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> + <arrangeConstraints>KEEP_SIZE</arrangeConstraints> + <arrangeConstraints>KEEP_RATIO</arrangeConstraints> + <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_mIidiR0JEeaK-YC6Qd4duw"> + <description xmi:type="style:FlatContainerStyleDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:ContainerMapping" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer/@containerMappings[name='CIC_CM_EPackage']/@subContainerMappings[name='CIC_CM_EClass_in_pkg']"/> + </ownedDiagramElements> + </ownedDiagramElements> + <description xmi:type="description_1:DiagramDescription" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']"/> + <filterVariableHistory xmi:type="diagram:FilterVariableHistory" xmi:id="_mIidih0JEeaK-YC6Qd4duw"/> + <activatedLayers xmi:type="description_1:Layer" href="../description/tc-2185.odesign#//@ownedViewpoints[name='TC2185']/@ownedRepresentations[name='TC2185%20Container%20in%20Container']/@defaultLayer"/> + <target xmi:type="ecore:EPackage" href="tc-2185.ecore#/"/> + </ownedRepresentations> </ownedViews> </viewpoint:DAnalysis> diff --git a/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.ecore b/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.ecore index a3c6157907..971eb5ad0c 100644 --- a/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.ecore +++ b/plugins/org.eclipse.sirius.tests.swtbot/data/unit/tc-2185_edge_creation_position/models/tc-2185.ecore @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="p"> <eClassifiers xsi:type="ecore:EClass" name="A"/> <eClassifiers xsi:type="ecore:EClass" name="B"/> <eSubpackages name="sub1"> - <eClassifiers xsi:type="ecore:EClass" name="C"/> + <eClassifiers xsi:type="ecore:EClass" name="C" eSuperTypes="#//sub2/D"/> + <eClassifiers xsi:type="ecore:EClass" name="OtherClass"/> </eSubpackages> <eSubpackages name="sub2"> <eClassifiers xsi:type="ecore:EClass" name="D"/> diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeWithBorderNodeCreationPositionWithSnapToGridTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeWithBorderNodeCreationPositionWithSnapToGridTest.java index 07e6318df2..339ea9ad91 100644 --- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeWithBorderNodeCreationPositionWithSnapToGridTest.java +++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/EdgeWithBorderNodeCreationPositionWithSnapToGridTest.java @@ -21,6 +21,7 @@ import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart; import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart; import org.eclipse.sirius.diagram.DDiagram; import org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramBorderNodeEditPart; +import org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramContainerEditPart; import org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramNodeEditPart; import org.eclipse.sirius.diagram.ui.internal.edit.parts.DEdgeEditPart; import org.eclipse.sirius.ext.base.Option; @@ -126,6 +127,72 @@ public class EdgeWithBorderNodeCreationPositionWithSnapToGridTest extends EdgeCr } /** + * Same as {@link #testBorderNodesAreAligned()} but with scroll bar on + * diagram. + */ + public void testBorderNodesAreAlignedWithScrollOnDiagram() { + testBorderNodesAreAligned("TC2185 Node", "NodeForStraightCaseWithScroll", "A", AbstractDiagramNodeEditPart.class, 100, "B", AbstractDiagramNodeEditPart.class, 109, true); + } + + /** + * Same as {@link #testBorderNodesAreAlignedAnotherCase()} but with scroll + * bar on diagram and zoom at 50%. + */ + public void testBorderNodesAreAlignedWithScrollOnDiagramAndWithZoom() { + testBorderNodesAreAligned("TC2185 Node", "NodeForStraightCaseWithScroll", "A", AbstractDiagramNodeEditPart.class, 100, "B", AbstractDiagramNodeEditPart.class, 110, true, ZoomLevel.ZOOM_50); + } + + /** + * Case of edge created between 2 border nodes of container with scroll. + */ + public void testBorderNodesOnBorderNodeOnContainerAreAlignedWithScrollOnDiagram() { + testBorderNodesAreAligned("TC2185 Bordered Node on Container", "Bordered Node on Container With Scroll", "C", AbstractDiagramBorderNodeEditPart.class, 100, "D", + AbstractDiagramBorderNodeEditPart.class, 108, false); + } + + /** + * Case of edge created between 2 nodes in container with scroll. + */ + public void testBorderNodesOnNodeInContainerAreAlignedWithScrollOnDiagramAndContainer() { + testBorderNodesAreAligned("TC2185 Node in Container", "Node in Container With Scroll", "C", AbstractDiagramNodeEditPart.class, 100, "D", AbstractDiagramNodeEditPart.class, 109, false, + ZoomLevel.ZOOM_100, Options.newSome("OtherClass")); + } + + /** + * Case of edge created between 2 containers in container with scroll. + */ + public void testBorderNodesOnContainerInContainerAreAlignedWithScrollOnDiagramAndContainer() { + testBorderNodesAreAligned("TC2185 Container in Container", "Container in Container With Scroll", "C", AbstractDiagramContainerEditPart.class, 100, "D", AbstractDiagramContainerEditPart.class, + 109, false, ZoomLevel.ZOOM_100, Options.newSome("OtherClass")); + } + + /** + * Case of edge created between 2 border nodes of container with scroll and + * zoom. + */ + public void testBorderNodesOnBorderNodeOnContainerAreAlignedWithScrollOnDiagramAndZoom() { + testBorderNodesAreAligned("TC2185 Bordered Node on Container", "Bordered Node on Container With Scroll", "C", AbstractDiagramBorderNodeEditPart.class, 100, "D", + AbstractDiagramBorderNodeEditPart.class, 108, false, ZoomLevel.ZOOM_50); + } + + /** + * Case of edge created between 2 nodes in container with scroll and zoom. + */ + public void testBorderNodesOnNodeInContainerAreAlignedWithScrollOnDiagramAndContainerAndZoom() { + testBorderNodesAreAligned("TC2185 Node in Container", "Node in Container With Scroll", "C", AbstractDiagramNodeEditPart.class, 100, "D", AbstractDiagramNodeEditPart.class, 109, false, + ZoomLevel.ZOOM_50, Options.newSome("OtherClass")); + } + + /** + * Case of edge created between 2 containers in container with scroll and + * zoom. + */ + public void testBorderNodesOnContainerInContainerAreAlignedWithScrollOnDiagramAndContainerAndZoom() { + testBorderNodesAreAligned("TC2185 Container in Container", "Container in Container With Scroll", "C", AbstractDiagramContainerEditPart.class, 100, "D", AbstractDiagramContainerEditPart.class, + 109, false, ZoomLevel.ZOOM_50, Options.newSome("OtherClass")); + } + + /** * Create an edge with its associated border nodes between two elements * (zoom 100%). * |
