Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.contractmonitor/src/org/eclipse/etrice/generator/contractmonitor/gen/MainGen.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.contractmonitor/src/org/eclipse/etrice/generator/contractmonitor/gen/MainGen.xtend3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.contractmonitor/src/org/eclipse/etrice/generator/contractmonitor/gen/MainGen.xtend b/plugins/org.eclipse.etrice.generator.contractmonitor/src/org/eclipse/etrice/generator/contractmonitor/gen/MainGen.xtend
index 0ac6a3be2..f0d348a66 100644
--- a/plugins/org.eclipse.etrice.generator.contractmonitor/src/org/eclipse/etrice/generator/contractmonitor/gen/MainGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.contractmonitor/src/org/eclipse/etrice/generator/contractmonitor/gen/MainGen.xtend
@@ -20,6 +20,7 @@ import org.eclipse.etrice.core.room.RoomModel
import org.eclipse.etrice.generator.base.args.Arguments
import org.eclipse.etrice.generator.base.io.IGeneratorFileIO
import org.eclipse.etrice.generator.base.logging.ILogger
+import org.eclipse.etrice.core.room.ActorClass
class MainGen {
@@ -29,7 +30,7 @@ class MainGen {
val model = resource.contents.head
if(model instanceof RoomModel) {
val generatedModel = monitorGen.generateMonitors(model)
- if(!generatedModel.actorClasses.empty) {
+ if(!generatedModel.roomClasses.filter(ActorClass).empty) {
val serializedModel = monitorGen.serializeMonitors(generatedModel, resource.resourceSet)
val path = generatedModel.name.replace('.', '/') + '.room'
fileIO.generateFile("Saving generated contracts", path, serializedModel)

Back to the top