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.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.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.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend
index 749a6a1b3..57780cb3e 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend
@@ -17,19 +17,18 @@ package org.eclipse.etrice.generator.java.gen
import com.google.inject.Inject
import com.google.inject.Singleton
import org.eclipse.etrice.core.genmodel.etricegen.Root
+import org.eclipse.etrice.core.genmodel.fsm.IDiagnostician
import org.eclipse.etrice.core.room.CommunicationType
import org.eclipse.etrice.core.room.DataClass
import org.eclipse.etrice.core.room.Message
import org.eclipse.etrice.core.room.ProtocolClass
-import org.eclipse.etrice.generator.fsm.base.FileSystemHelpers
import org.eclipse.etrice.generator.base.io.IGeneratorFileIO
import org.eclipse.etrice.generator.generic.GenericProtocolClassGenerator
+import org.eclipse.etrice.generator.generic.ILanguageExtension
import org.eclipse.etrice.generator.generic.ProcedureHelpers
import org.eclipse.etrice.generator.generic.RoomExtensions
import org.eclipse.etrice.generator.generic.TypeHelpers
import org.eclipse.etrice.generator.java.Main
-import org.eclipse.etrice.generator.generic.ILanguageExtension
-import org.eclipse.etrice.core.genmodel.fsm.IDiagnostician
import org.eclipse.etrice.generator.java.setup.GeneratorOptionsHelper
@Singleton
@@ -42,12 +41,11 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
@Inject extension Initialization
@Inject extension TypeHelpers
@Inject extension DataClassGen
- @Inject extension FileSystemHelpers
@Inject protected extension GeneratorOptionsHelper
@Inject IDiagnostician diagnostician
def doGenerate(Root root) {
- for (pc: root.protocolClasses.filter(cl|cl.isValidGenerationLocation)) {
+ root.protocolClasses.filter[!isDeprecatedGeneration].forEach[pc |
val path = pc.getPath
val file = pc.getJavaFileName
val contents =
@@ -63,7 +61,7 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
diagnostician.error("synchronous protocols not supported yet", pc, null)
else
fileIO.generateFile("generating ProtocolClass implementation", path + file, contents)
- }
+ ]
}
def generate(Root root, ProtocolClass pc) {'''

Back to the top