Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2017-04-19 04:10:58 -0400
committerJuergen Haug2017-08-02 04:46:40 -0400
commit552d24296b4e2516b83a9edc1a6790d307f02e57 (patch)
tree735fcb8d7dc8474eeac33d4a504199952213505f
parent9f7b0a9d010b50f8455b9f478b7095f28183255d (diff)
downloadorg.eclipse.etrice-552d24296b4e2516b83a9edc1a6790d307f02e57.tar.gz
org.eclipse.etrice-552d24296b4e2516b83a9edc1a6790d307f02e57.tar.xz
org.eclipse.etrice-552d24296b4e2516b83a9edc1a6790d307f02e57.zip
[ui.tests] added simple test for inherited positions
-rw-r--r--tests/org.eclipse.etrice.ui.rcptests.runtime/.project17
-rw-r--r--tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/BaseDiagram.room24
-rw-r--r--tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/diagrams/BaseDiagram.BaseActor.behavior457
-rw-r--r--tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/BehaviorBaseDiagram.test53
-rw-r--r--tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/Helpers.ctx23
5 files changed, 573 insertions, 1 deletions
diff --git a/tests/org.eclipse.etrice.ui.rcptests.runtime/.project b/tests/org.eclipse.etrice.ui.rcptests.runtime/.project
new file mode 100644
index 000000000..910f03bba
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.rcptests.runtime/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.etrice.ui.rcptests.runtime</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/BaseDiagram.room b/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/BaseDiagram.room
index 296dc4ce4..bdfcb377e 100644
--- a/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/BaseDiagram.room
+++ b/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/BaseDiagram.room
@@ -7,10 +7,32 @@ RoomModel BaseDiagram {
}
Behavior {
+ StateMachine {
+ State state0 {
+ subgraph {
+ State state0
+ TransitionPoint tr0
+ EntryPoint tr1
+ ExitPoint tr2
+ ExitPoint tr3
+ EntryPoint tr4
+ Transition init0: initial -> state0
+ }
+ }
+ TransitionPoint tr0
+ TransitionPoint tr1
+ TransitionPoint tr2
+ TransitionPoint tr3
+ TransitionPoint tr4
+ TransitionPoint tr5
+ TransitionPoint tr6
+ TransitionPoint tr7
+ Transition init0: initial -> state0
+ }
}
}
- ActorClass SubActor {
+ ActorClass SubActor extends BaseActor {
Structure {
}
diff --git a/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/diagrams/BaseDiagram.BaseActor.behavior b/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/diagrams/BaseDiagram.BaseActor.behavior
new file mode 100644
index 000000000..d4630810c
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/diagrams/BaseDiagram.BaseActor.behavior
@@ -0,0 +1,457 @@
+<?xml version="1.0" encoding="ASCII"?>
+<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" gridUnit="10" diagramTypeId="room.behavior" name="Behavior of BaseActor" pictogramLinks="//@link //@children.0/@link //@children.0/@children.1/@link //@children.0/@children.2/@link //@children.0/@children.3/@link //@children.0/@children.4/@link //@children.0/@children.5/@link //@children.0/@children.6/@link //@children.0/@children.7/@link //@children.0/@children.8/@link //@children.0/@children.9/@link //@children.0/@children.10/@link //@connections.0/@link //@children.1/@link //@children.1/@children.1/@link //@children.1/@children.2/@link //@children.0/@children.10/@children.1/@link //@children.1/@children.3/@link //@children.0/@children.10/@children.2/@link //@children.1/@children.4/@link //@children.0/@children.10/@children.3/@link //@children.1/@children.5/@link //@children.1/@children.6/@link //@connections.1/@link //@children.1/@children.7/@link //@children.0/@children.10/@children.4/@link" verticalGridUnit="10" version="0.13.0">
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
+ <link>
+ <businessObjects href="../BaseDiagram.room#ActorClass:BaseActor"/>
+ </link>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="sg"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="880" height="580" x="40" y="40">
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.1" foreground="//@colors.4" lineWidth="4" transparency="0.5" width="800" height="500" x="40" y="40" cornerHeight="20" cornerWidth="20"/>
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.4" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40" cornerHeight="20" cornerWidth="20"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#StateGraph:BaseActor$sg"/>
+ </link>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="800" height="80" y="40" font="//@fonts.1" horizontalAlignment="ALIGNMENT_RIGHT" verticalAlignment="ALIGNMENT_TOP" value="/"/>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="5">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr0"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="30" font="//@fonts.0" verticalAlignment="ALIGNMENT_BOTTOM" value="tr0"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="796">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr1"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_BOTTOM" value="tr1"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="800" y="496">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr2"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_TOP" value="tr2"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" y="491">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr3"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" verticalAlignment="ALIGNMENT_TOP" value="tr3"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="368">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr4"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_BOTTOM" value="tr4"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="800" y="243">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr5"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_TOP" value="tr5"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" y="335">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr6"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" verticalAlignment="ALIGNMENT_TOP" value="tr6"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="424" y="500">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$tr7"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_TOP" value="tr7"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="40" height="40" x="389" y="108">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="10" y="10"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#StateGraph:BaseActor$sg"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.9/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="40" height="20" y="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="I"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="state"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="120" height="90" x="349" y="263">
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.5" foreground="//@colors.4" lineWidth="1" transparency="0.0" width="60" height="30" x="30" y="30" cornerHeight="20" cornerWidth="20">
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="15" height="8" x="35" y="3" cornerHeight="5" cornerWidth="5"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="30" y="24">
+ <points x="-3" y="-3"/>
+ <points x="-3" y="3"/>
+ <points x="-11" y="3"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="30" y="24">
+ <points x="3" y="-3"/>
+ <points x="3" y="3"/>
+ <points x="11" y="3"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="30" y="24">
+ <points x="-2" y="-3"/>
+ <points x="-2" y="3"/>
+ <points x="2" y="3"/>
+ <points x="2" y="-3"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#SimpleState:BaseActor$state0"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.10/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="60" height="30" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="state0"/>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="entp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="60" height="60" x="60">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="1" transparency="0.0" width="11" height="11" x="25" y="25"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0">
+ <points x="27" y="33"/>
+ <points x="33" y="27"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0">
+ <points x="27" y="27"/>
+ <points x="33" y="33"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#EntryPoint:BaseActor$state0$tr1"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.10/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="60" height="22" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_BOTTOM" value="tr1"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="extp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="60" height="60" x="60" y="30">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="1" transparency="0.0" width="11" height="11" x="25" y="25"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.4" lineWidth="1" filled="true" transparency="0.0" x="25" y="25">
+ <points x="5"/>
+ <points x="11" y="5"/>
+ <points x="5" y="11"/>
+ <points y="5"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#ExitPoint:BaseActor$state0$tr2"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.10/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="60" height="22" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_BOTTOM" value="tr2"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="extp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="60" height="60" y="30">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="1" transparency="0.0" width="11" height="11" x="25" y="25"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.4" lineWidth="1" filled="true" transparency="0.0" x="25" y="25">
+ <points x="5"/>
+ <points x="11" y="5"/>
+ <points x="5" y="11"/>
+ <points y="5"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#ExitPoint:BaseActor$state0$tr3"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.10/@children.3/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="60" height="22" font="//@fonts.0" verticalAlignment="ALIGNMENT_BOTTOM" value="tr3"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="entp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="60" height="60" x="26">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="1" transparency="0.0" width="11" height="11" x="25" y="25"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0">
+ <points x="27" y="33"/>
+ <points x="33" y="27"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0">
+ <points x="27" y="27"/>
+ <points x="33" y="33"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#EntryPoint:BaseActor$state0$tr4"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.10/@children.4/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children>
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="60" height="22" font="//@fonts.0" verticalAlignment="ALIGNMENT_BOTTOM" value="tr4"/>
+ </children>
+ </children>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="sg"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="880" height="580" x="40" y="40">
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.1" foreground="//@colors.4" lineWidth="4" transparency="0.5" width="800" height="500" x="40" y="40" cornerHeight="20" cornerWidth="20"/>
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.4" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40" cornerHeight="20" cornerWidth="20"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#StateGraph:BaseActor$state0$sg"/>
+ </link>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="800" height="80" y="40" font="//@fonts.1" horizontalAlignment="ALIGNMENT_RIGHT" verticalAlignment="ALIGNMENT_TOP" value="/state0"/>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="tp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="4">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.4" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#TransitionPoint:BaseActor$state0$tr0"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="30" font="//@fonts.0" verticalAlignment="ALIGNMENT_BOTTOM" value="tr0"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="entp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="796">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="2" filled="false" transparency="0.0">
+ <points x="33" y="47"/>
+ <points x="47" y="33"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="2" filled="false" transparency="0.0">
+ <points x="33" y="33"/>
+ <points x="47" y="47"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#EntryPoint:BaseActor$state0$tr1"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_BOTTOM" value="tr1"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="extp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="800" y="493">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.4" lineWidth="2" filled="true" transparency="0.0" x="30" y="30">
+ <points x="10"/>
+ <points x="20" y="10"/>
+ <points x="10" y="20"/>
+ <points y="10"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#ExitPoint:BaseActor$state0$tr2"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_TOP" value="tr2"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="extp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" y="497">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.4" lineWidth="2" filled="true" transparency="0.0" x="30" y="30">
+ <points x="10"/>
+ <points x="20" y="10"/>
+ <points x="10" y="20"/>
+ <points y="10"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#ExitPoint:BaseActor$state0$tr3"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" y="50" font="//@fonts.0" verticalAlignment="ALIGNMENT_TOP" value="tr3"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="state"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="120" height="90" x="470" y="209">
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.5" foreground="//@colors.4" lineWidth="1" transparency="0.0" width="60" height="30" x="30" y="30" cornerHeight="20" cornerWidth="20">
+ <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="15" height="8" x="35" y="3" cornerHeight="5" cornerWidth="5"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="30" y="24">
+ <points x="-3" y="-3"/>
+ <points x="-3" y="3"/>
+ <points x="-11" y="3"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="30" y="24">
+ <points x="3" y="-3"/>
+ <points x="3" y="3"/>
+ <points x="11" y="3"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.4" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="30" y="24">
+ <points x="-2" y="-3"/>
+ <points x="-2" y="3"/>
+ <points x="2" y="3"/>
+ <points x="2" y="-3"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#SimpleState:BaseActor$state0$state0"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.1/@children.5/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="60" height="30" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="state0"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="trp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="40" height="40" x="688" y="386">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="10" y="10"/>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#StateGraph:BaseActor$state0$sg"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.1/@children.6/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="40" height="20" y="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="I"/>
+ </children>
+ </children>
+ <children xsi:type="pi:ContainerShape" visible="true" active="true">
+ <properties key="obj-type" value="trp"/>
+ <properties key="item-kind" value="entp"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.3" lineWidth="2" transparency="0.75" width="80" height="80" x="342">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.4" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="2" filled="false" transparency="0.0">
+ <points x="33" y="47"/>
+ <points x="47" y="33"/>
+ </graphicsAlgorithmChildren>
+ <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="2" filled="false" transparency="0.0">
+ <points x="33" y="33"/>
+ <points x="47" y="47"/>
+ </graphicsAlgorithmChildren>
+ </graphicsAlgorithm>
+ <link>
+ <businessObjects href="../BaseDiagram.room#EntryPoint:BaseActor$state0$tr4"/>
+ </link>
+ <anchors xsi:type="pi:ChopboxAnchor"/>
+ <children visible="true">
+ <graphicsAlgorithm xsi:type="al:Text" background="//@colors.4" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="80" height="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" verticalAlignment="ALIGNMENT_BOTTOM" value="tr4"/>
+ </children>
+ </children>
+ </children>
+ <connections xsi:type="pi:FreeFormConnection" active="true" start="//@children.0/@children.9/@anchors.0" end="//@children.0/@children.10/@anchors.0">
+ <properties key="obj-type" value="trans"/>
+ <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0"/>
+ <link>
+ <businessObjects href="../BaseDiagram.room#InitialTransition:BaseActor$initial"/>
+ </link>
+ <connectionDecorators locationRelative="true" location="1.0">
+ <graphicsAlgorithm xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.4" lineWidth="1" filled="true" transparency="0.0">
+ <points x="-15" y="5"/>
+ <points/>
+ <points x="-15" y="-5"/>
+ </graphicsAlgorithm>
+ </connectionDecorators>
+ <connectionDecorators active="true" locationRelative="true" location="0.5">
+ <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" x="10" font="//@fonts.0" value="init"/>
+ </connectionDecorators>
+ </connections>
+ <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.1/@children.6/@anchors.0" end="//@children.1/@children.5/@anchors.0">
+ <properties key="obj-type" value="trans"/>
+ <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0"/>
+ <link>
+ <businessObjects href="../BaseDiagram.room#InitialTransition:BaseActor$state0$initial"/>
+ </link>
+ <connectionDecorators visible="true" locationRelative="true" location="1.0">
+ <graphicsAlgorithm xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.4" lineWidth="1" filled="true" transparency="0.0">
+ <points x="-15" y="5"/>
+ <points/>
+ <points x="-15" y="-5"/>
+ </graphicsAlgorithm>
+ </connectionDecorators>
+ <connectionDecorators visible="true" active="true" locationRelative="true" location="0.5">
+ <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" x="10" font="//@fonts.0" value="init"/>
+ </connectionDecorators>
+ </connections>
+ <colors red="227" green="238" blue="249"/>
+ <colors red="255" green="255" blue="255"/>
+ <colors red="192" green="192" blue="192"/>
+ <colors red="255" green="255"/>
+ <colors/>
+ <colors red="200" green="200" blue="200"/>
+ <fonts name="Arial" size="8"/>
+ <fonts name="Arial" size="9" bold="true"/>
+</pi:Diagram>
diff --git a/tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/BehaviorBaseDiagram.test b/tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/BehaviorBaseDiagram.test
new file mode 100644
index 000000000..100fa654e
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/BehaviorBaseDiagram.test
@@ -0,0 +1,53 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _Y3Gz4Bo-EeeCkdUpLubROA,_3Cyp0FF7EeWk3rbvuPRQHg,_bjDf8FG3EeWk3rbvuPRQHg,_Y0LU4B-SEeedDq_6HS15Nw
+Element-Name: BehaviorBaseDiagram
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _-UyGUBruEeeQAYi2m-xyaw
+Runtime-Version: 2.1.0.201605312320
+Save-Time: 4/19/17 11:06 AM
+Testcase-Type: ecl
+
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | select "org.eclipse.etrice.ui.rcptests.runtime/diagrams/behavior/baseDiagram/BaseDiagram.room" | double-click
+get-view Outline | get-tree | select "BaseDiagram/SubActor extends BaseActor" | get-menu "Edit Behavior" | click
+with[get-editor "Behavior of SubActor" | get-diagram -index 1 | get-edit-part -name "Behavior of SubActor"]{
+
+with [get-edit-part -text "/"] {
+ get-edit-part -text tr0 | verifyFigure -x 45 -y 40 -w 80 -h 80
+ get-edit-part -text tr1 | verifyFigure -x 836 -y 40 -w 80 -h 80
+ get-edit-part -text tr2 | verifyFigure -x 840 -y 536 -w 80 -h 80
+ get-edit-part -text tr3 | verifyFigure -x 40 -y 531 -w 80 -h 80
+ get-edit-part -text tr4 | verifyFigure -x 408 -y 40 -w 80 -h 80
+ get-edit-part -text tr5 | verifyFigure -x 840 -y 283 -w 80 -h 80
+ get-edit-part -text tr6 | verifyFigure -x 40 -y 375 -w 80 -h 80
+ get-edit-part -text tr7 | verifyFigure -x 464 -y 540 -w 80 -h 80
+}
+
+with [get-edit-part -text "/" | get-edit-part -text state0 ] {
+ get-edit-part -text tr1 | verifyFigure -x 449 -y 303 -w 60 -h 60
+ get-edit-part -text tr2 | verifyFigure -x 449 -y 333 -w 60 -h 60
+ get-edit-part -text tr3 | verifyFigure -x 389 -y 333 -w 60 -h 60
+ get-edit-part -text tr4 | verifyFigure -x 415 -y 303 -w 60 -h 60
+
+}
+}
+
+with [get-editor "Behavior of SubActor" | get-diagram -index 1] {
+ get-edit-part -name "Behavior of SubActor" | get-edit-part -text "/" | get-edit-part -text state0 | mouse-press 56 45 button3 -height 90 -width 120
+ get-menu "Switch to SubGraph" | click
+
+ with[get-edit-part -name "Behavior of SubActor" | get-edit-part -text "/state0"] {
+ get-edit-part -text tr0 | verifyFigure -x 44 -y 40 -w 80 -h 80
+ get-edit-part -text tr1 | verifyFigure -x 836 -y 40 -w 80 -h 80
+ get-edit-part -text tr2 | verifyFigure -x 840 -y 533 -w 80 -h 80
+ get-edit-part -text tr3 | verifyFigure -x 40 -y 537 -w 80 -h 80
+ get-edit-part -text tr4 | verifyFigure -x 382 -y 40 -w 80 -h 80
+}
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
diff --git a/tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/Helpers.ctx b/tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/Helpers.ctx
new file mode 100644
index 000000000..4a16c1a0d
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.rcptests/tests/diagrams/Helpers.ctx
@@ -0,0 +1,23 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Context-Type: org.eclipse.rcptt.ctx.ecl
+Element-Name: Helpers
+Element-Type: context
+Element-Version: 2.0
+Id: _Y0LU4B-SEeedDq_6HS15Nw
+Runtime-Version: 2.1.0.201605312320
+Save-Time: 4/12/17 5:28 PM
+
+------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
+Content-Type: text/ecl
+Entry-Name: .ecl.context
+
+proc verifyFigure [val editPart -input ] [val x] [val y] [val w] [val h] {
+ with[$editPart | get-figure] {
+ get-property x | equals $x | verify-true
+ get-property y | equals $y | verify-true
+ get-property width | equals $w | verify-true
+ get-property height | equals $h | verify-true
+ }
+}
+------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--

Back to the top