Explorar o código

add testmodels for cKeywords, javaKeywords, raiseEvent, sameNameDifferentRegion

Andreas Mülder %!s(int64=13) %!d(string=hai) anos
pai
achega
12707b506d

BIN=BIN
test-plugins/org.yakindu.sct.test.models/images/CKeywords.png


BIN=BIN
test-plugins/org.yakindu.sct.test.models/images/JavaKeywords.png


BIN=BIN
test-plugins/org.yakindu.sct.test.models/images/RaiseEvent.png


BIN=BIN
test-plugins/org.yakindu.sct.test.models/images/SameNameDifferentRegion.png


+ 113 - 58
test-plugins/org.yakindu.sct.test.models/src/util/TestModels.java

@@ -32,161 +32,196 @@ import de.itemis.xtext.utils.gmf.resource.InjectMembersResource;
  * @author andreas muelder - Initial contribution and API
  * 
  */
-public class TestModels {
-
-	private static final String TESTMODEL_DIR = "org.yakindu.sct.test.models/testmodels/";
+public class TestModels { 
 
+	public static final String ALWAYS_ONCYCLE = "AlwaysOncycle.sct";
 	public static final String BIT_EXPRESSIONS = "BitExpressions.sct";
-	public static final String REAL_EXPRESSIONS = "RealExpressions.sct";
-	public static final String STRING_EXPRESSIONS = "StringExpressions.sct";
-	public static final String INTEGER_EXPRESSIONS = "IntegerExpressions.sct";
 	public static final String BOOLEAN_EXPRESSIONS = "BooleanExpressions.sct";
-	public static final String ALWAYS_ONCYCLE = "AlwaysOncycle.sct";
+	public static final String C_KEYWORDS_M = "CKeywords.sct";
 	public static final String CHOICE = "Choice.sct";
 	public static final String DEEP_HISTORY = "DeepHistory.sct";
 	public static final String FEATURE_CALLS = "FeatureCalls.sct";
 	public static final String GUARD = "Guard.sct";
+	public static final String INTEGER_EXPRESSIONS = "IntegerExpressions.sct";
+	public static final String JAVA_KEYWORDS_M = "JavaKeywords.sct";
 	public static final String PRIORITY_VALUES = "PriorityValues.sct";
+	public static final String RAISE_EVENTS = "RaiseEvent.sct";
+	public static final String REAL_EXPRESSIONS = "RealExpressions.sct";
+	public static final String SAME_NAME_DIFFERENT_REGION = "SameNameDifferentRegion.sct";
 	public static final String SHALLOW_HISTORY = "ShallowHistory.sct";
 	public static final String SIMPLE_EVENT = "SimpleEvent.sct";
 	public static final String SIMPLE_HIERACHY = "SimpleHierachy.sct";
-	public static final String STATECHART_LOCAL_REACTIONS = "StatechartLocalReactions.sct";
 	public static final String STATE_ACTIVE = "StateIsActive.sct";
+	public static final String STATECHART_LOCAL_REACTIONS = "StatechartLocalReactions.sct";
+	public static final String STRING_EXPRESSIONS = "StringExpressions.sct";
 	public static final String SYNC_FORK = "SyncFork.sct";
 	public static final String SYNC_JOIN = "SyncJoin.sct";
+	private static final String TESTMODEL_DIR = "org.yakindu.sct.test.models/testmodels/";
+	public static final String TIME_TRIGGER = "TimeTrigger.sct";
 	public static final String VALUED_EVENTS = "ValuedEvents.sct";
 
 	@Inject
 	private ModelSequencer sequencer;
 
+	/**
+	 * <img src="../../images/AlwaysOncycle.png" /> <br />
+	 * 
+	 * @return the {@link ExecutionFlow}
+	 * @throws IOException
+	 */
+	public ExecutionFlow createAlwaysOncycleModel() throws IOException {
+		return loadExecutionFlowFromResource(ALWAYS_ONCYCLE);
+	}
+
 	/**
 	 * <img src="../../images/SimpleEvent.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createBitExpressions() throws IOException {
+	public ExecutionFlow createBitExpressionsModel() throws IOException {
 		return loadExecutionFlowFromResource(BIT_EXPRESSIONS);
 	}
 
 	/**
-	 * <img src="../../images/RealExpressions.png" /> <br />
+	 * <img src="../../images/BooleanExpressions.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createRealExpressions() throws IOException {
-		return loadExecutionFlowFromResource(REAL_EXPRESSIONS);
+
+	public ExecutionFlow createBooleanExpressionsModel() throws IOException {
+		return loadExecutionFlowFromResource(BOOLEAN_EXPRESSIONS);
 	}
+
 	/**
-	 * <img src="../../images/StringExpressions.png" /> <br />
+	 * <img src="../../images/Choice.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createStringExpressions() throws IOException {
-		return loadExecutionFlowFromResource(STRING_EXPRESSIONS);
+	public ExecutionFlow createChoiceJunctionModel() throws IOException {
+		return loadExecutionFlowFromResource(CHOICE);
 	}
 
 	/**
-	 * <img src="../../images/IntegerExpressions.png" /> <br />
+	 * <img src="../../images/CKeywords.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createIntegerExpressions() throws IOException {
-		return loadExecutionFlowFromResource(INTEGER_EXPRESSIONS);
+	public ExecutionFlow createCKeywordModel() throws IOException {
+		return loadExecutionFlowFromResource(C_KEYWORDS_M);
 	}
 
 	/**
-	 * <img src="../../images/BooleanExpressions.png" /> <br />
+	 * <img src="../../images/DeepHistory.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
+	public ExecutionFlow createDeepHistoryModel() throws IOException {
+		return loadExecutionFlowFromResource(DEEP_HISTORY);
+	}
 
-	public ExecutionFlow createBooleanExpressions() throws IOException {
-		return loadExecutionFlowFromResource(BOOLEAN_EXPRESSIONS);
+	/**
+	 * <img src="../../images/FeatureCalls.png" /> <br />
+	 * 
+	 * @return the {@link ExecutionFlow}
+	 * @throws IOException
+	 */
+	public ExecutionFlow createFeatureCallModel() throws IOException {
+		return loadExecutionFlowFromResource(FEATURE_CALLS);
 	}
 
 	/**
-	 * <img src="../../images/BitExpressions.png" /> <br />
+	 * <img src="../../images/Guard.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createSimpleEventModel() throws IOException {
-		return loadExecutionFlowFromResource(SIMPLE_EVENT);
+	public ExecutionFlow createGuardModel() throws IOException {
+		return loadExecutionFlowFromResource(GUARD);
 	}
 
 	/**
-	 * <img src="../../images/PriorityValues.png" /> <br />
+	 * <img src="../../images/IntegerExpressions.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createPriorityValueModel() throws IOException {
-		return loadExecutionFlowFromResource(PRIORITY_VALUES);
+	public ExecutionFlow createIntegerExpressionsModel() throws IOException {
+		return loadExecutionFlowFromResource(INTEGER_EXPRESSIONS);
 	}
 
 	/**
-	 * <img src="../../images/ShallowHistory.png" /> <br />
+	 * <img src="../../images/JavaKeywords.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createShallowHistoryModel() throws IOException {
-		return loadExecutionFlowFromResource(SHALLOW_HISTORY);
+	public ExecutionFlow createJavaKeywordsModel() throws IOException {
+		return loadExecutionFlowFromResource(JAVA_KEYWORDS_M);
 	}
 
 	/**
-	 * <img src="../../images/SyncFork.png" /> <br />
+	 * <img src="../../images/PriorityValues.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createSyncForkModel() throws IOException {
-		return loadExecutionFlowFromResource(SYNC_FORK);
+	public ExecutionFlow createPriorityValueModel() throws IOException {
+		return loadExecutionFlowFromResource(PRIORITY_VALUES);
 	}
 
 	/**
-	 * <img src="../../images/SyncJoin.png" /> <br />
+	 * <img src="../../images/RaisEvent.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createSyncJoinModel() throws IOException {
-		return loadExecutionFlowFromResource(SYNC_JOIN);
+	public ExecutionFlow createRaisEventModel() throws IOException {
+		return loadExecutionFlowFromResource(RAISE_EVENTS);
 	}
 
 	/**
-	 * <img src="../../images/Choice.png" /> <br />
+	 * <img src="../../images/RealExpressions.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createChoiceJunctionModel() throws IOException {
-		return loadExecutionFlowFromResource(CHOICE);
+	public ExecutionFlow createRealExpressionsModel() throws IOException {
+		return loadExecutionFlowFromResource(REAL_EXPRESSIONS);
 	}
 
 	/**
-	 * <img src="../../images/Guard.png" /> <br />
+	 * <img src="../../images/SameNameDifferentRegion.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createGuardModel() throws IOException {
-		return loadExecutionFlowFromResource(GUARD);
+	public ExecutionFlow createSameNameDifferentRegionModel() throws IOException {
+		return loadExecutionFlowFromResource(SAME_NAME_DIFFERENT_REGION);
 	}
 
 	/**
-	 * <img src="../../images/AlwaysOncycle.png" /> <br />
+	 * <img src="../../images/ShallowHistory.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createAlwaysOncycle() throws IOException {
-		return loadExecutionFlowFromResource(ALWAYS_ONCYCLE);
+	public ExecutionFlow createShallowHistoryModel() throws IOException {
+		return loadExecutionFlowFromResource(SHALLOW_HISTORY);
+	}
+
+	/**
+	 * <img src="../../images/BitExpressions.png" /> <br />
+	 * 
+	 * @return the {@link ExecutionFlow}
+	 * @throws IOException
+	 */
+	public ExecutionFlow createSimpleEventModel() throws IOException {
+		return loadExecutionFlowFromResource(SIMPLE_EVENT);
 	}
 
 	/**
@@ -200,13 +235,14 @@ public class TestModels {
 	}
 
 	/**
-	 * <img src="../../images/DeepHistory.png" /> <br />
+	 * <img src="../../images/StatechartLocalReactions.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createDeepHistoryModel() throws IOException {
-		return loadExecutionFlowFromResource(DEEP_HISTORY);
+	public ExecutionFlow createStatechartLocalReactionsModel()
+			throws IOException {
+		return loadExecutionFlowFromResource(STATECHART_LOCAL_REACTIONS);
 	}
 
 	/**
@@ -220,34 +256,53 @@ public class TestModels {
 	}
 
 	/**
-	 * <img src="../../images/ValuedEvents.png" /> <br />
+	 * <img src="../../images/StringExpressions.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createValuedEventsModel() throws IOException {
-		return loadExecutionFlowFromResource(VALUED_EVENTS);
+	public ExecutionFlow createStringExpressionsModel() throws IOException {
+		return loadExecutionFlowFromResource(STRING_EXPRESSIONS);
 	}
 
 	/**
-	 * <img src="../../images/FeatureCalls.png" /> <br />
+	 * <img src="../../images/SyncFork.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createFeatureCallModel() throws IOException {
-		return loadExecutionFlowFromResource(FEATURE_CALLS);
+	public ExecutionFlow createSyncForkModel() throws IOException {
+		return loadExecutionFlowFromResource(SYNC_FORK);
 	}
 
 	/**
-	 * <img src="../../images/StatechartLocalReactions.png" /> <br />
+	 * <img src="../../images/SyncJoin.png" /> <br />
 	 * 
 	 * @return the {@link ExecutionFlow}
 	 * @throws IOException
 	 */
-	public ExecutionFlow createStatechartLocalReactionsModel()
-			throws IOException {
-		return loadExecutionFlowFromResource(STATECHART_LOCAL_REACTIONS);
+	public ExecutionFlow createSyncJoinModel() throws IOException {
+		return loadExecutionFlowFromResource(SYNC_JOIN);
+	}
+
+	/**
+	 * <img src="../../images/TimeTrigger.png" /> <br />
+	 * 
+	 * @return the {@link ExecutionFlow}
+	 * @throws IOException
+	 */ 
+	public ExecutionFlow createTimeTriggerModel() throws IOException {
+		return loadExecutionFlowFromResource(TIME_TRIGGER);
+	}
+
+	/**
+	 * <img src="../../images/ValuedEvents.png" /> <br />
+	 * 
+	 * @return the {@link ExecutionFlow}
+	 * @throws IOException
+	 */
+	public ExecutionFlow createValuedEventsModel() throws IOException {
+		return loadExecutionFlowFromResource(VALUED_EVENTS);
 	}
 
 	/**

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 290 - 0
test-plugins/org.yakindu.sct.test.models/testmodels/CKeywords.sct


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 282 - 0
test-plugins/org.yakindu.sct.test.models/testmodels/JavaKeywords.sct


+ 186 - 0
test-plugins/org.yakindu.sct.test.models/testmodels/RaiseEvent.sct

@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
+  <sgraph:Statechart xmi:id="_lIoDMMv-EeGZoP1H_25Cxw" specification="interface:&#xD;&#xA;out event e1&#xD;&#xA;in event e2" name="RaiseEvent">
+    <regions xmi:id="_lI6-Isv-EeGZoP1H_25Cxw" name="main region">
+      <vertices xsi:type="sgraph:Entry" xmi:id="_lJEvJsv-EeGZoP1H_25Cxw">
+        <outgoingTransitions xmi:id="_lJN5Ecv-EeGZoP1H_25Cxw" target="_lJEvMcv-EeGZoP1H_25Cxw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_lJEvMcv-EeGZoP1H_25Cxw" name="StateA" incomingTransitions="_lJN5Ecv-EeGZoP1H_25Cxw">
+        <outgoingTransitions xmi:id="_x8CrUMv-EeGZoP1H_25Cxw" specification="e2" target="_wsBN4Mv-EeGZoP1H_25Cxw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_wsBN4Mv-EeGZoP1H_25Cxw" specification="entry / raise e1" name="StateB" incomingTransitions="_x8CrUMv-EeGZoP1H_25Cxw"/>
+    </regions>
+    <regions xmi:id="_z616UMv-EeGZoP1H_25Cxw" name="second region">
+      <vertices xsi:type="sgraph:Entry" xmi:id="_1WMeAMv-EeGZoP1H_25Cxw">
+        <outgoingTransitions xmi:id="_3p3JwMv-EeGZoP1H_25Cxw" specification="" target="_18MHAMv-EeGZoP1H_25Cxw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_18MHAMv-EeGZoP1H_25Cxw" name="SateA" incomingTransitions="_3p3JwMv-EeGZoP1H_25Cxw">
+        <outgoingTransitions xmi:id="_6m9NAMv-EeGZoP1H_25Cxw" specification="e1" target="_5QFgsMv-EeGZoP1H_25Cxw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_5QFgsMv-EeGZoP1H_25Cxw" name="StateB" incomingTransitions="_6m9NAMv-EeGZoP1H_25Cxw"/>
+    </regions>
+  </sgraph:Statechart>
+  <notation:Diagram xmi:id="_lI6-IMv-EeGZoP1H_25Cxw" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_lIoDMMv-EeGZoP1H_25Cxw" measurementUnit="Pixel">
+    <children xmi:id="_lI6-I8v-EeGZoP1H_25Cxw" type="Region" element="_lI6-Isv-EeGZoP1H_25Cxw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_lJEvIMv-EeGZoP1H_25Cxw" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_lJEvIcv-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_lJEvIsv-EeGZoP1H_25Cxw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_lJEvI8v-EeGZoP1H_25Cxw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_lJEvJ8v-EeGZoP1H_25Cxw" type="Entry" element="_lJEvJsv-EeGZoP1H_25Cxw">
+          <children xmi:id="_lJEvKsv-EeGZoP1H_25Cxw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_lJEvLcv-EeGZoP1H_25Cxw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_lJEvLsv-EeGZoP1H_25Cxw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_lJEvL8v-EeGZoP1H_25Cxw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_lJEvK8v-EeGZoP1H_25Cxw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJEvLMv-EeGZoP1H_25Cxw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_lJEvKMv-EeGZoP1H_25Cxw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJEvMMv-EeGZoP1H_25Cxw" x="85" y="4"/>
+        </children>
+        <children xmi:id="_lJEvM8v-EeGZoP1H_25Cxw" type="State" element="_lJEvMcv-EeGZoP1H_25Cxw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_lJEvN8v-EeGZoP1H_25Cxw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_lJEvOMv-EeGZoP1H_25Cxw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_lJEvOcv-EeGZoP1H_25Cxw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_lJEvOsv-EeGZoP1H_25Cxw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_lJEvO8v-EeGZoP1H_25Cxw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJEvPMv-EeGZoP1H_25Cxw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_lJEvPcv-EeGZoP1H_25Cxw" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_lJEvNMv-EeGZoP1H_25Cxw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_lJEvNcv-EeGZoP1H_25Cxw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_lJEvPsv-EeGZoP1H_25Cxw"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJN5EMv-EeGZoP1H_25Cxw" x="46" y="64" width="99" height="96"/>
+        </children>
+        <children xmi:id="_wsUI0Mv-EeGZoP1H_25Cxw" type="State" element="_wsBN4Mv-EeGZoP1H_25Cxw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_wsUI1Mv-EeGZoP1H_25Cxw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_wsUI1cv-EeGZoP1H_25Cxw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_wsUI1sv-EeGZoP1H_25Cxw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_wsUI18v-EeGZoP1H_25Cxw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_wsUI2Mv-EeGZoP1H_25Cxw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_wsUI2cv-EeGZoP1H_25Cxw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_wsUI2sv-EeGZoP1H_25Cxw" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_wsUI0cv-EeGZoP1H_25Cxw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_wsUI0sv-EeGZoP1H_25Cxw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_wsUI28v-EeGZoP1H_25Cxw"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_wsUI08v-EeGZoP1H_25Cxw" x="239" y="79" width="76" height="93"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJEvJMv-EeGZoP1H_25Cxw"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_lI6-JMv-EeGZoP1H_25Cxw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJEvJcv-EeGZoP1H_25Cxw" x="220" y="10" width="400" height="231"/>
+    </children>
+    <children xsi:type="notation:Shape" xmi:id="_lJN5Gcv-EeGZoP1H_25Cxw" type="StatechartText" fontName="Verdana" lineColor="4210752">
+      <children xsi:type="notation:DecorationNode" xmi:id="_lJN5G8v-EeGZoP1H_25Cxw" type="StatechartName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_lJN5HMv-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_lJN5Hcv-EeGZoP1H_25Cxw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_lJN5Hsv-EeGZoP1H_25Cxw" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJN5H8v-EeGZoP1H_25Cxw"/>
+      </children>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lJN5IMv-EeGZoP1H_25Cxw" x="10" y="10" width="200" height="435"/>
+    </children>
+    <children xmi:id="_z616Ucv-EeGZoP1H_25Cxw" type="Region" element="_z616UMv-EeGZoP1H_25Cxw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_z616VMv-EeGZoP1H_25Cxw" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_z616Vcv-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_z616Vsv-EeGZoP1H_25Cxw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_z616V8v-EeGZoP1H_25Cxw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_1WVn8Mv-EeGZoP1H_25Cxw" type="Entry" element="_1WMeAMv-EeGZoP1H_25Cxw">
+          <children xmi:id="_1WVn88v-EeGZoP1H_25Cxw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_1WVn9sv-EeGZoP1H_25Cxw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_1WVn98v-EeGZoP1H_25Cxw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_1WVn-Mv-EeGZoP1H_25Cxw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_1WVn9Mv-EeGZoP1H_25Cxw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1WVn9cv-EeGZoP1H_25Cxw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_1WVn8cv-EeGZoP1H_25Cxw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1WVn8sv-EeGZoP1H_25Cxw" x="43" y="28"/>
+        </children>
+        <children xmi:id="_18V4AMv-EeGZoP1H_25Cxw" type="State" element="_18MHAMv-EeGZoP1H_25Cxw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_18V4BMv-EeGZoP1H_25Cxw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_18V4Bcv-EeGZoP1H_25Cxw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_18V4Bsv-EeGZoP1H_25Cxw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_18fB8Mv-EeGZoP1H_25Cxw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_18fB8cv-EeGZoP1H_25Cxw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_18fB8sv-EeGZoP1H_25Cxw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_18fB88v-EeGZoP1H_25Cxw" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_18V4Acv-EeGZoP1H_25Cxw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_18V4Asv-EeGZoP1H_25Cxw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_18fB9Mv-EeGZoP1H_25Cxw"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_18V4A8v-EeGZoP1H_25Cxw" x="85" y="17" width="86" height="73"/>
+        </children>
+        <children xmi:id="_5QYboMv-EeGZoP1H_25Cxw" type="State" element="_5QFgsMv-EeGZoP1H_25Cxw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_5QYbpMv-EeGZoP1H_25Cxw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_5QYbpcv-EeGZoP1H_25Cxw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_5QYbpsv-EeGZoP1H_25Cxw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_5QYbp8v-EeGZoP1H_25Cxw" type="StateTextCompartment" collapsed="true">
+            <children xsi:type="notation:Shape" xmi:id="_5QYbqMv-EeGZoP1H_25Cxw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_5QYbqcv-EeGZoP1H_25Cxw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_5QYbqsv-EeGZoP1H_25Cxw" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_5QYbocv-EeGZoP1H_25Cxw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_5QYbosv-EeGZoP1H_25Cxw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_5QYbq8v-EeGZoP1H_25Cxw"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_5QYbo8v-EeGZoP1H_25Cxw" x="260" y="25" width="71" height="75"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_z616WMv-EeGZoP1H_25Cxw"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_z616Usv-EeGZoP1H_25Cxw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_z616U8v-EeGZoP1H_25Cxw" x="220" y="245" width="400" height="200"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_lI6-Icv-EeGZoP1H_25Cxw"/>
+    <edges xmi:id="_lJN5Esv-EeGZoP1H_25Cxw" type="Transition" element="_lJN5Ecv-EeGZoP1H_25Cxw" source="_lJEvJ8v-EeGZoP1H_25Cxw" target="_lJEvM8v-EeGZoP1H_25Cxw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_lJN5Fsv-EeGZoP1H_25Cxw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_lJN5F8v-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_lJN5GMv-EeGZoP1H_25Cxw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_lJN5E8v-EeGZoP1H_25Cxw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_lJN5Fcv-EeGZoP1H_25Cxw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_lJN5FMv-EeGZoP1H_25Cxw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+    <edges xmi:id="_x8L1QMv-EeGZoP1H_25Cxw" type="Transition" element="_x8CrUMv-EeGZoP1H_25Cxw" source="_lJEvM8v-EeGZoP1H_25Cxw" target="_wsUI0Mv-EeGZoP1H_25Cxw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_x8L1RMv-EeGZoP1H_25Cxw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_x8L1Rcv-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_x8L1Rsv-EeGZoP1H_25Cxw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_x8L1Qcv-EeGZoP1H_25Cxw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_x8L1Q8v-EeGZoP1H_25Cxw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_x8L1Qsv-EeGZoP1H_25Cxw" points="[10, -1, -92, 1]$[103, -9, 1, -7]"/>
+      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_x8VmQMv-EeGZoP1H_25Cxw" id="(0.8214285714285714,0.375)"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_x8VmQcv-EeGZoP1H_25Cxw" id="(0.013157894736842105,0.2)"/>
+    </edges>
+    <edges xmi:id="_3qA6wMv-EeGZoP1H_25Cxw" type="Transition" element="_3p3JwMv-EeGZoP1H_25Cxw" source="_1WVn8Mv-EeGZoP1H_25Cxw" target="_18V4AMv-EeGZoP1H_25Cxw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_3qA6xMv-EeGZoP1H_25Cxw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_3qA6xcv-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_3qA6xsv-EeGZoP1H_25Cxw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_3qA6wcv-EeGZoP1H_25Cxw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_3qA6w8v-EeGZoP1H_25Cxw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_3qA6wsv-EeGZoP1H_25Cxw" points="[7, 2, -32, -10]$[41, -1, 2, -13]"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_3qKEsMv-EeGZoP1H_25Cxw" id="(0.23529411764705882,0.35714285714285715)"/>
+    </edges>
+    <edges xmi:id="_6nG-AMv-EeGZoP1H_25Cxw" type="Transition" element="_6m9NAMv-EeGZoP1H_25Cxw" source="_18V4AMv-EeGZoP1H_25Cxw" target="_5QYboMv-EeGZoP1H_25Cxw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_6nG-BMv-EeGZoP1H_25Cxw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_6nG-Bcv-EeGZoP1H_25Cxw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_6nG-Bsv-EeGZoP1H_25Cxw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_6nG-Acv-EeGZoP1H_25Cxw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_6nG-A8v-EeGZoP1H_25Cxw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_6nG-Asv-EeGZoP1H_25Cxw" points="[23, 2, -89, 2]$[113, -20, 1, -20]"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_6nQH8Mv-EeGZoP1H_25Cxw" id="(0.05357142857142857,0.39285714285714285)"/>
+    </edges>
+  </notation:Diagram>
+</xmi:XMI>

+ 187 - 0
test-plugins/org.yakindu.sct.test.models/testmodels/SameNameDifferentRegion.sct

@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
+  <sgraph:Statechart xmi:id="_llXNcMnYEeG-eM2T7cZLNw" specification="interface:&#xD;&#xA;in event e1&#xD;&#xA;" name="SameNameDifferentRegion">
+    <regions xmi:id="_ln5kEMnYEeG-eM2T7cZLNw" name="main region">
+      <vertices xsi:type="sgraph:Entry" xmi:id="_lrecgMnYEeG-eM2T7cZLNw">
+        <outgoingTransitions xmi:id="_ltHbQMnYEeG-eM2T7cZLNw" target="_lrxXcMnYEeG-eM2T7cZLNw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_lrxXcMnYEeG-eM2T7cZLNw" name="StateA" incomingTransitions="_ltHbQMnYEeG-eM2T7cZLNw">
+        <outgoingTransitions xmi:id="_xBAxYMnYEeG-eM2T7cZLNw" specification="e1" target="_wRex4MnYEeG-eM2T7cZLNw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_wRex4MnYEeG-eM2T7cZLNw" name="StateB" incomingTransitions="_xBAxYMnYEeG-eM2T7cZLNw">
+        <regions xmi:id="_wRex4snYEeG-eM2T7cZLNw" name="r1">
+          <vertices xsi:type="sgraph:Entry" xmi:id="_3N1mQOFhEeGAOK6qzLDFeg">
+            <outgoingTransitions xmi:id="_W9dZsOFiEeGAOK6qzLDFeg" specification="" target="_VBVrQOFiEeGAOK6qzLDFeg"/>
+          </vertices>
+          <vertices xsi:type="sgraph:State" xmi:id="_VBVrQOFiEeGAOK6qzLDFeg" name="StateA" incomingTransitions="_W9dZsOFiEeGAOK6qzLDFeg">
+            <outgoingTransitions xmi:id="_ZLLOcOFiEeGAOK6qzLDFeg" specification="e1" target="_X4xLYOFiEeGAOK6qzLDFeg"/>
+          </vertices>
+          <vertices xsi:type="sgraph:State" xmi:id="_X4xLYOFiEeGAOK6qzLDFeg" name="StateB" incomingTransitions="_ZLLOcOFiEeGAOK6qzLDFeg"/>
+        </regions>
+      </vertices>
+    </regions>
+  </sgraph:Statechart>
+  <notation:Diagram xmi:id="_lnc4IMnYEeG-eM2T7cZLNw" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_llXNcMnYEeG-eM2T7cZLNw" measurementUnit="Pixel">
+    <children xmi:id="_loCuAMnYEeG-eM2T7cZLNw" type="Region" element="_ln5kEMnYEeG-eM2T7cZLNw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_lqbToMnYEeG-eM2T7cZLNw" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_lqbTocnYEeG-eM2T7cZLNw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_lqbTosnYEeG-eM2T7cZLNw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_lqlEoMnYEeG-eM2T7cZLNw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_lrecgcnYEeG-eM2T7cZLNw" type="Entry" element="_lrecgMnYEeG-eM2T7cZLNw">
+          <children xmi:id="_lrechMnYEeG-eM2T7cZLNw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_lrech8nYEeG-eM2T7cZLNw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_lreciMnYEeG-eM2T7cZLNw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_lrecicnYEeG-eM2T7cZLNw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_lrechcnYEeG-eM2T7cZLNw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lrechsnYEeG-eM2T7cZLNw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_lrecgsnYEeG-eM2T7cZLNw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lrecisnYEeG-eM2T7cZLNw" x="45" y="14"/>
+        </children>
+        <children xmi:id="_lsqvUcnYEeG-eM2T7cZLNw" type="State" element="_lrxXcMnYEeG-eM2T7cZLNw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_lsqvVcnYEeG-eM2T7cZLNw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_lsqvVsnYEeG-eM2T7cZLNw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_lsqvV8nYEeG-eM2T7cZLNw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_lsqvWMnYEeG-eM2T7cZLNw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_lsqvWcnYEeG-eM2T7cZLNw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lsqvWsnYEeG-eM2T7cZLNw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_lsqvW8nYEeG-eM2T7cZLNw" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_lsqvUsnYEeG-eM2T7cZLNw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_lsqvU8nYEeG-eM2T7cZLNw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_lsz5QMnYEeG-eM2T7cZLNw"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lsz5QcnYEeG-eM2T7cZLNw" x="17" y="144" width="76"/>
+        </children>
+        <children xmi:id="_wRn70MnYEeG-eM2T7cZLNw" type="State" element="_wRex4MnYEeG-eM2T7cZLNw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_wRn71MnYEeG-eM2T7cZLNw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_wRn71cnYEeG-eM2T7cZLNw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_wRn71snYEeG-eM2T7cZLNw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_wRn718nYEeG-eM2T7cZLNw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_wRn72MnYEeG-eM2T7cZLNw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_wRn72cnYEeG-eM2T7cZLNw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_wRn72snYEeG-eM2T7cZLNw" type="StateFigureCompartment">
+            <children xmi:id="_wSOYwMnYEeG-eM2T7cZLNw" type="Region" element="_wRex4snYEeG-eM2T7cZLNw">
+              <children xsi:type="notation:DecorationNode" xmi:id="_wSOYw8nYEeG-eM2T7cZLNw" type="RegionName">
+                <styles xsi:type="notation:ShapeStyle" xmi:id="_wSOYxMnYEeG-eM2T7cZLNw"/>
+                <layoutConstraint xsi:type="notation:Location" xmi:id="_wSOYxcnYEeG-eM2T7cZLNw"/>
+              </children>
+              <children xsi:type="notation:Shape" xmi:id="_wSXisMnYEeG-eM2T7cZLNw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+                <children xmi:id="_3N_XQOFhEeGAOK6qzLDFeg" type="Entry" element="_3N1mQOFhEeGAOK6qzLDFeg">
+                  <children xmi:id="_3N_XQ-FhEeGAOK6qzLDFeg" type="BorderItemLabelContainer">
+                    <children xsi:type="notation:DecorationNode" xmi:id="_3OIhMOFhEeGAOK6qzLDFeg" type="BorderItemLabel">
+                      <styles xsi:type="notation:ShapeStyle" xmi:id="_3OIhMeFhEeGAOK6qzLDFeg"/>
+                      <layoutConstraint xsi:type="notation:Location" xmi:id="_3OIhMuFhEeGAOK6qzLDFeg"/>
+                    </children>
+                    <styles xsi:type="notation:ShapeStyle" xmi:id="_3N_XROFhEeGAOK6qzLDFeg" fontName="Verdana" lineColor="4210752"/>
+                    <layoutConstraint xsi:type="notation:Bounds" xmi:id="_3N_XReFhEeGAOK6qzLDFeg"/>
+                  </children>
+                  <styles xsi:type="notation:ShapeStyle" xmi:id="_3N_XQeFhEeGAOK6qzLDFeg" fontName="Verdana" lineColor="4210752"/>
+                  <layoutConstraint xsi:type="notation:Bounds" xmi:id="_3N_XQuFhEeGAOK6qzLDFeg" x="8" y="3"/>
+                </children>
+                <children xmi:id="_VBomMOFiEeGAOK6qzLDFeg" type="State" element="_VBVrQOFiEeGAOK6qzLDFeg">
+                  <children xsi:type="notation:DecorationNode" xmi:id="_VBomNOFiEeGAOK6qzLDFeg" type="StateName">
+                    <styles xsi:type="notation:ShapeStyle" xmi:id="_VBomNeFiEeGAOK6qzLDFeg"/>
+                    <layoutConstraint xsi:type="notation:Location" xmi:id="_VBomNuFiEeGAOK6qzLDFeg"/>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_VBomN-FiEeGAOK6qzLDFeg" type="StateTextCompartment">
+                    <children xsi:type="notation:Shape" xmi:id="_VBomOOFiEeGAOK6qzLDFeg" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+                      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_VBomOeFiEeGAOK6qzLDFeg"/>
+                    </children>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_VBomOuFiEeGAOK6qzLDFeg" type="StateFigureCompartment"/>
+                  <styles xsi:type="notation:ShapeStyle" xmi:id="_VBomMeFiEeGAOK6qzLDFeg" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+                  <styles xsi:type="notation:FontStyle" xmi:id="_VBomMuFiEeGAOK6qzLDFeg"/>
+                  <styles xsi:type="notation:BooleanValueStyle" xmi:id="_VBomO-FiEeGAOK6qzLDFeg"/>
+                  <layoutConstraint xsi:type="notation:Bounds" xmi:id="_VBomM-FiEeGAOK6qzLDFeg" x="8" y="63" width="91" height="71"/>
+                </children>
+                <children xmi:id="_X5EGUOFiEeGAOK6qzLDFeg" type="State" element="_X4xLYOFiEeGAOK6qzLDFeg">
+                  <children xsi:type="notation:DecorationNode" xmi:id="_X5EGVOFiEeGAOK6qzLDFeg" type="StateName">
+                    <styles xsi:type="notation:ShapeStyle" xmi:id="_X5EGVeFiEeGAOK6qzLDFeg"/>
+                    <layoutConstraint xsi:type="notation:Location" xmi:id="_X5EGVuFiEeGAOK6qzLDFeg"/>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_X5EGV-FiEeGAOK6qzLDFeg" type="StateTextCompartment">
+                    <children xsi:type="notation:Shape" xmi:id="_X5EGWOFiEeGAOK6qzLDFeg" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+                      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_X5EGWeFiEeGAOK6qzLDFeg"/>
+                    </children>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_X5EGWuFiEeGAOK6qzLDFeg" type="StateFigureCompartment"/>
+                  <styles xsi:type="notation:ShapeStyle" xmi:id="_X5EGUeFiEeGAOK6qzLDFeg" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+                  <styles xsi:type="notation:FontStyle" xmi:id="_X5EGUuFiEeGAOK6qzLDFeg"/>
+                  <styles xsi:type="notation:BooleanValueStyle" xmi:id="_X5EGW-FiEeGAOK6qzLDFeg"/>
+                  <layoutConstraint xsi:type="notation:Bounds" xmi:id="_X5EGU-FiEeGAOK6qzLDFeg" x="143" y="68" width="81" height="61"/>
+                </children>
+                <layoutConstraint xsi:type="notation:Bounds" xmi:id="_wSXiscnYEeG-eM2T7cZLNw"/>
+              </children>
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_wSOYwcnYEeG-eM2T7cZLNw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_wSOYwsnYEeG-eM2T7cZLNw"/>
+            </children>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_wRn70cnYEeG-eM2T7cZLNw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_wRn70snYEeG-eM2T7cZLNw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_wRn728nYEeG-eM2T7cZLNw"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_wRn708nYEeG-eM2T7cZLNw" x="124" y="64" width="271" height="356"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lqlEocnYEeG-eM2T7cZLNw"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_loCuAcnYEeG-eM2T7cZLNw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_lqu1oMnYEeG-eM2T7cZLNw" x="220" y="10" width="466" height="476"/>
+    </children>
+    <children xsi:type="notation:Shape" xmi:id="_luAMF8nYEeG-eM2T7cZLNw" type="StatechartText" fontName="Verdana" lineColor="4210752">
+      <children xsi:type="notation:DecorationNode" xmi:id="_luAMGcnYEeG-eM2T7cZLNw" type="StatechartName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_luAMGsnYEeG-eM2T7cZLNw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_luAMG8nYEeG-eM2T7cZLNw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_luAMHMnYEeG-eM2T7cZLNw" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_luAMHcnYEeG-eM2T7cZLNw"/>
+      </children>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_luAMHsnYEeG-eM2T7cZLNw" x="10" y="10" width="200" height="400"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_lnc4IcnYEeG-eM2T7cZLNw"/>
+    <edges xmi:id="_luAMEMnYEeG-eM2T7cZLNw" type="Transition" element="_ltHbQMnYEeG-eM2T7cZLNw" source="_lrecgcnYEeG-eM2T7cZLNw" target="_lsqvUcnYEeG-eM2T7cZLNw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_luAMFMnYEeG-eM2T7cZLNw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_luAMFcnYEeG-eM2T7cZLNw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_luAMFsnYEeG-eM2T7cZLNw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_luAMEcnYEeG-eM2T7cZLNw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_luAME8nYEeG-eM2T7cZLNw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_luAMEsnYEeG-eM2T7cZLNw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+    <edges xmi:id="_xBAxYcnYEeG-eM2T7cZLNw" type="Transition" element="_xBAxYMnYEeG-eM2T7cZLNw" source="_lsqvUcnYEeG-eM2T7cZLNw" target="_wRn70MnYEeG-eM2T7cZLNw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_xBAxZcnYEeG-eM2T7cZLNw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_xBAxZsnYEeG-eM2T7cZLNw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_xBAxZ8nYEeG-eM2T7cZLNw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_xBAxYsnYEeG-eM2T7cZLNw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_xBAxZMnYEeG-eM2T7cZLNw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_xBAxY8nYEeG-eM2T7cZLNw" points="[32, 4, -169, -19]$[202, 8, 1, -15]"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_xBKiYMnYEeG-eM2T7cZLNw" id="(0.17647058823529413,0.30357142857142855)"/>
+    </edges>
+    <edges xmi:id="_W9nKsOFiEeGAOK6qzLDFeg" type="Transition" element="_W9dZsOFiEeGAOK6qzLDFeg" source="_3N_XQOFhEeGAOK6qzLDFeg" target="_VBomMOFiEeGAOK6qzLDFeg">
+      <children xsi:type="notation:DecorationNode" xmi:id="_W9nKtOFiEeGAOK6qzLDFeg" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_W9nKteFiEeGAOK6qzLDFeg"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_W9nKtuFiEeGAOK6qzLDFeg" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_W9nKseFiEeGAOK6qzLDFeg" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_W9nKs-FiEeGAOK6qzLDFeg" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_W9nKsuFiEeGAOK6qzLDFeg" points="[0, 7, 2, -55]$[-1, 53, 1, -9]"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_W9w7sOFiEeGAOK6qzLDFeg" id="(0.06593406593406594,0.14084507042253522)"/>
+    </edges>
+    <edges xmi:id="_ZLLOceFiEeGAOK6qzLDFeg" type="Transition" element="_ZLLOcOFiEeGAOK6qzLDFeg" source="_VBomMOFiEeGAOK6qzLDFeg" target="_X5EGUOFiEeGAOK6qzLDFeg">
+      <children xsi:type="notation:DecorationNode" xmi:id="_ZLLOdeFiEeGAOK6qzLDFeg" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_ZLLOduFiEeGAOK6qzLDFeg"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_ZLLOd-FiEeGAOK6qzLDFeg" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_ZLLOcuFiEeGAOK6qzLDFeg" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_ZLLOdOFiEeGAOK6qzLDFeg" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_ZLLOc-FiEeGAOK6qzLDFeg" points="[15, 0, -87, 1]$[101, 27, -1, 28]"/>
+      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_ZLUYYOFiEeGAOK6qzLDFeg" id="(0.8351648351648352,0.5211267605633803)"/>
+    </edges>
+  </notation:Diagram>
+</xmi:XMI>

+ 11 - 0
test-plugins/org.yakindu.sct.test.models/tests/RaiseEvent.sctunit

@@ -0,0 +1,11 @@
+testcase for RaiseEvent {
+	test raiseEvent {
+		assert active ( RaiseEvent.second_region.SateA)
+		assert active (RaiseEvent.main_region.StateA)
+		raise e2
+		cycle
+		cycle
+		assert active (RaiseEvent.second_region.StateB)
+		assert active (RaiseEvent.main_region.StateB)
+	}
+}

+ 13 - 0
test-plugins/org.yakindu.sct.test.models/tests/SameNameDifferentRegion.sctunit

@@ -0,0 +1,13 @@
+testcase for SameNameDifferentRegion {
+	test sameNameDifferenRegionTest {
+		assert active ( SameNameDifferentRegion.main_region.StateA)
+		raise e1
+		cycle
+		assert active (SameNameDifferentRegion.main_region.StateB)
+		assert active (SameNameDifferentRegion.main_region.StateB.r1.StateA)
+		raise e1
+		cycle
+		assert active (SameNameDifferentRegion.main_region.StateB) 
+		assert active (SameNameDifferentRegion.main_region.StateB.r1.StateB) 
+	}
+}

+ 4 - 4
test-plugins/org.yakindu.sct.test.models/tests/SyncFork.sctunit

@@ -20,9 +20,9 @@ testcase for SyncFork{
 		
 		raise f
 		cycle
-		assert !active (SyncFork.main_region.B)
-		assert active (SyncFork.main_region.B.r1.C2)
-		assert active (SyncFork.main_region.B.r2.D2)
+		assert active (SyncFork.main_region.B)
+		assert active (SyncFork.main_region.B.r1.C1)
+		assert active (SyncFork.main_region.B.r2.D1)
 				
 	} 
-}   
+}