Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2014-08-25 04:58:45 -0400
committerHenrik Rentz-Reichert2014-08-25 04:58:45 -0400
commitd4628d759b567bf81e74999026c89f3d34b952a5 (patch)
tree9b1a67c454a33dac8c676dc8bbe75638854c2df6 /plugins/org.eclipse.etrice.generator.java/src/org
parent50e40ddd3c778e4663160d71ca07eb4c09045c2f (diff)
downloadorg.eclipse.etrice-d4628d759b567bf81e74999026c89f3d34b952a5.tar.gz
org.eclipse.etrice-d4628d759b567bf81e74999026c89f3d34b952a5.tar.xz
org.eclipse.etrice-d4628d759b567bf81e74999026c89f3d34b952a5.zip
[*] AbstractMessage even more abstract: EObject
Renamings of class fields. Change-Id: I32a98482f8f4aaa7088bfff1287fdc842da490a7
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.java/src/org')
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/JavaTranslationProvider.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/JavaTranslationProvider.java b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/JavaTranslationProvider.java
index 0346f9f59..cdfdfc660 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/JavaTranslationProvider.java
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/JavaTranslationProvider.java
@@ -14,9 +14,9 @@ package org.eclipse.etrice.generator.java.gen;
import java.util.ArrayList;
+import org.eclipse.emf.ecore.EObject;
import org.eclipse.etrice.core.room.Attribute;
import org.eclipse.etrice.core.fsm.fSM.AbstractInterfaceItem;
-import org.eclipse.etrice.core.fsm.fSM.AbstractMessage;
import org.eclipse.etrice.core.fsm.fSM.DetailCode;
import org.eclipse.etrice.core.room.InterfaceItem;
import org.eclipse.etrice.core.room.Message;
@@ -47,9 +47,14 @@ public class JavaTranslationProvider extends DefaultTranslationProvider {
}
@Override
- public String getInterfaceItemMessageText(AbstractInterfaceItem item, AbstractMessage msg, ArrayList<String> args, String index, String orig) {
+ public String getInterfaceItemMessageText(AbstractInterfaceItem item, EObject abstractMsg, ArrayList<String> args, String index, String orig) {
if (index==null)
return orig;
+
+ if (!(abstractMsg instanceof Message))
+ return orig;
+
+ Message msg = (Message) abstractMsg;
StringBuilder argtext = new StringBuilder();
for (String arg : args) {

Back to the top