Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
index a3f909696..28c34dacb 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
@@ -23,7 +23,6 @@ import org.eclipse.etrice.core.room.ComplexType
import org.eclipse.etrice.core.room.DataClass
import org.eclipse.etrice.core.room.util.RoomHelpers
import org.eclipse.etrice.generator.base.io.IGeneratorFileIO
-import org.eclipse.etrice.generator.fsm.base.FileSystemHelpers
import org.eclipse.etrice.generator.generic.ProcedureHelpers
import org.eclipse.etrice.generator.generic.RoomExtensions
@@ -35,15 +34,15 @@ class DataClassGen {
@Inject extension RoomExtensions
@Inject extension ProcedureHelpers
@Inject extension Initialization
- @Inject extension FileSystemHelpers
+ @Inject extension RoomHelpers
@Inject RoomHelpers roomHelpers
def doGenerate(Root root) {
- for (dc: root.dataClasses.filter(cl|cl.isValidGenerationLocation)) {
+ root.dataClasses.filter[!isDeprecatedGeneration].forEach[dc |
var path = dc.getPath
var file = dc.getJavaFileName
fileIO.generateFile("generating DataClass implementation", path + file, root.generate(dc))
- }
+ ]
}
def generate(Root root, DataClass dc) {

Back to the top