Procházet zdrojové kódy

Ensuring that java packages are lower case

This fixes #1872
jthoene před 7 roky
rodič
revize
2cbe4fe6e4

+ 10 - 10
plugins/org.yakindu.sct.generator.java/src/org/yakindu/sct/generator/java/GenmodelEntries.xtend

@@ -70,21 +70,21 @@ class GenmodelEntries {
 	}
 
 	def getLicenseText(GeneratorEntry it) {
-		if (licenseTextParameter != null) {
+		if (licenseTextParameter !== null) {
 			return "/** " + licenseTextParameter.stringValue.trim + " */"
 		}
 		return null
 	}
 
 	def getBasePackageName(GeneratorEntry it) {
-		if (basePackageParameter != null)
-			return basePackageParameter.stringValue
-		if (outletFeatureTargetProject != null)
-			return outletFeatureTargetProject.stringValue
+		if (basePackageParameter !== null)
+			return basePackageParameter.stringValue.toLowerCase
+		if (outletFeatureTargetProject !== null)
+			return outletFeatureTargetProject.stringValue.toLowerCase
 	}
 
 	def getImplementationSuffix(GeneratorEntry it, ExecutionFlow flow) {
-		if (implementationSuffixParameter != null) {
+		if (implementationSuffixParameter !== null) {
 			return flow.statemachineName + implementationSuffixParameter.stringValue
 		}
 		return flow.statemachineName
@@ -105,28 +105,28 @@ class GenmodelEntries {
 	}
 
 	def createTimerService(GeneratorEntry it) {
-		if (timerServiceParameter != null) {
+		if (timerServiceParameter !== null) {
 			return timerServiceParameter.booleanValue
 		}
 		return false
 	}
 
 	def createRuntimeService(GeneratorEntry it) {
-		if (runtimeServiceParameter != null) {
+		if (runtimeServiceParameter !== null) {
 			return runtimeServiceParameter.booleanValue
 		}
 		return false
 	}
 
 	def createInterfaceObserver(GeneratorEntry it) {
-		if (interfaceObserverSupportParameter != null) {
+		if (interfaceObserverSupportParameter !== null) {
 			return interfaceObserverSupportParameter.booleanValue
 		}
 		return false
 	}
 
 	def useJavaInt(GeneratorEntry it) {
-		if (useJavaIntForInteger != null) {
+		if (useJavaIntForInteger !== null) {
 			return useJavaIntForInteger.booleanValue
 		}
 		return false