Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-10-18 10:44:00 +0000
committerHenrik Rentz-Reichert2012-10-18 10:47:50 +0000
commite7fb9972518c6ff3d4c6d7d5da61a86fc70b770b (patch)
tree1f59ae3a62b59bd0190880a676350d69f221df69
parentef7efe6a2f89dd91351f7645af2e48c3eb68a2d0 (diff)
downloadorg.eclipse.etrice-e7fb9972518c6ff3d4c6d7d5da61a86fc70b770b.tar.gz
org.eclipse.etrice-e7fb9972518c6ff3d4c6d7d5da61a86fc70b770b.tar.xz
org.eclipse.etrice-e7fb9972518c6ff3d4c6d7d5da61a86fc70b770b.zip
[generator.java] added etUnit import to generated ProtocolClass
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend1
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.java2
2 files changed, 3 insertions, 0 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 036d195e6..bfff54fa8 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
@@ -59,6 +59,7 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
import org.eclipse.etrice.runtime.java.messaging.Message;
import org.eclipse.etrice.runtime.java.modelbase.*;
import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+ import static org.eclipse.etrice.runtime.java.etunit.EtUnit.*;
«pc.userCode(1)»
diff --git a/plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.java b/plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.java
index a5a0e83d0..d1857cdae 100644
--- a/plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.java
+++ b/plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.java
@@ -96,6 +96,8 @@ public class ProtocolClassGen extends GenericProtocolClassGenerator {
_builder.newLine();
_builder.append("import org.eclipse.etrice.runtime.java.debugging.DebuggingService;");
_builder.newLine();
+ _builder.append("import static org.eclipse.etrice.runtime.java.etunit.EtUnit.*;");
+ _builder.newLine();
_builder.newLine();
CharSequence _userCode = this._procedureHelpers.userCode(pc, 1);
_builder.append(_userCode, "");

Back to the top