Explorar el Código

Throw RuntimeException if no generator is found for generator id.

markus.muehlbrandt@gmail.com hace 12 años
padre
commit
14eeff8c37

+ 1 - 1
plugins/org.yakindu.sct.generator.core/src/org/yakindu/sct/generator/core/GeneratorExecutor.java

@@ -69,7 +69,7 @@ public class GeneratorExecutor {
 		GeneratorDescriptor description = GeneratorExtensions
 				.getGeneratorDescriptorForId(generatorId);
 		if (description == null)
-			return;
+			throw new RuntimeException("No generator registered for ID: " + generatorId);
 		final ISCTGenerator generator = description.createGenerator();
 		final EList<GeneratorEntry> entries = model.getEntries();