Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2012-06-17 16:12:42 +0000
committerJuergen Haug2012-06-17 16:12:42 +0000
commit0ad596fd60f9cb118380c01af1d8295316da1a49 (patch)
tree4fb63e708f25ad3bf1e1841861d2631bfa966cb1 /plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend
parentdb1daef4390d90ef1b3b9ede1f33f4312bcfdf74 (diff)
downloadorg.eclipse.etrice-0ad596fd60f9cb118380c01af1d8295316da1a49.tar.gz
org.eclipse.etrice-0ad596fd60f9cb118380c01af1d8295316da1a49.tar.xz
org.eclipse.etrice-0ad596fd60f9cb118380c01af1d8295316da1a49.zip
[CQ 6485][config,generator,tests]
- working protocol/port config with tests - config grammar formatting - array support for attribute config Change-Id: I9a7185e767407ec7538200140db4ba4014e3503c
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.xtend7
1 files changed, 6 insertions, 1 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 c333188b3..7b2a5629d 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
@@ -101,11 +101,14 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
«ENDIF»
// constructors
public «portClassName»(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public «portClassName»(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
super(actor, name, localId, idx, addr, peerAddress);
+ «IF pclass!=null»
+ «helpers.attributeInitialization(pclass.attributes, true)»
+ «ENDIF»
DebuggingService.getInstance().addPortInstance(this);
}
@@ -146,6 +149,8 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
«IF pclass!=null»
«helpers.attributes(pclass.attributes)»
+ // TODO JH: Avoid collision attr getters/setter <-> user operations
+ «attributeSettersGettersImplementation(pclass.attributes, null)»
«helpers.operationsImplementation(pclass.operations, portClassName)»
«ENDIF»

Back to the top