Explorar o código

Added genmodel prefix for sgraph States.

markus.muehlbrandt@gmail.com %!s(int64=11) %!d(string=hai) anos
pai
achega
f11950da76

+ 8 - 0
plugins/org.yakindu.sct.generator.c/src/org/yakindu/sct/generator/c/CNamingService.xtend

@@ -106,6 +106,14 @@ public class CNamingService extends DefaultNamingService {
 		}
 	}
 	
+	override protected prefix(State it, char separator) {
+		if (entry.statemachinePrefix.nullOrEmpty) {
+			super.prefix(it, separator).toFirstUpper
+		} else {
+			entry.statemachinePrefix
+		}
+	}
+	
 	override protected prefix(TimeEventSpec it, State state, char separator) {
 		if (entry.statemachinePrefix.nullOrEmpty) {
 			super.prefix(it, state, separator).toFirstLower