Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend
index a8f88af50..c23be3521 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend
@@ -20,6 +20,7 @@ import org.eclipse.etrice.core.genmodel.etricegen.Root
import org.eclipse.etrice.core.room.EnumerationType
import org.eclipse.etrice.generator.base.io.IGeneratorFileIO
import org.eclipse.etrice.generator.generic.TypeHelpers
+import org.eclipse.etrice.core.room.util.RoomHelpers
/**
* @author Henrik Rentz-Reichert
@@ -28,12 +29,13 @@ import org.eclipse.etrice.generator.generic.TypeHelpers
class EnumerationTypeGen {
@Inject IGeneratorFileIO fileIO
+ @Inject extension RoomHelpers
@Inject extension CExtensions
@Inject extension RoomExtensions
@Inject extension TypeHelpers
def doGenerate(Root root) {
- for (et: root.enumClasses) {
+ root.enumClasses.filter[!isDeprecatedGeneration].forEach[et |
val path = et.getPath
var file = et.getCHeaderFileName
@@ -43,7 +45,7 @@ class EnumerationTypeGen {
// header file
file = et.getCSourceFileName
fileIO.generateFile("generating Enumeration source", path + file, root.generateSourceFile(et))
- }
+ ]
}
private def generateHeaderFile(Root root, EnumerationType et) {

Back to the top