Parcourir la source

Providing c statechart naming without ExecutionFlow (#2136)

This pr is needed for https://github.com/Yakindu/sctpro/pull/1530
jthoene il y a 7 ans
Parent
commit
6e99a9abb9

+ 7 - 0
plugins/org.yakindu.sct.generator.c/src/org/yakindu/sct/generator/c/extensions/Naming.xtend

@@ -123,6 +123,13 @@ class Naming {
 		}
 		return entryStatemachinePrefix.toFirstUpper
 	}
+	
+	def String getContainerType(EObject it) {
+		if (flow !== null) {
+			return flow.type
+		}
+		return statechart.type
+	}
 
 	def dispatch instance(InterfaceScope it) {
 		'iface' + (if(name.nullOrEmpty) '' else name).asIdentifier.toFirstUpper