Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-02-16 11:15:15 -0500
committerJuergen Haug2019-02-25 06:31:01 -0500
commit621741b7bf2b94027b69accbc57f8f520532a5d2 (patch)
treea57704e7b3bd5b9c3e362402f131291db4b3ab8d /plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/EnumerationTypeGen.xtend
parenta7b0badaed395687bf9e9cc6fe13b38b7e8ef50e (diff)
downloadorg.eclipse.etrice-621741b7bf2b94027b69accbc57f8f520532a5d2.tar.gz
org.eclipse.etrice-621741b7bf2b94027b69accbc57f8f520532a5d2.tar.xz
org.eclipse.etrice-621741b7bf2b94027b69accbc57f8f520532a5d2.zip
Bug 544723 - [room] Add annotation for deprecated elements
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