Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-09-28 12:29:19 +0000
committerHenrik Rentz-Reichert2012-09-28 13:21:35 +0000
commit8a0b67a11df8ac25f4b62ba4b4ef28eeef25050f (patch)
tree2c2022d63560c7f931f40b71d056be84e66b5f40 /plugins
parent1b78b2602fa1d8506a631eb8e8910c3cf6083156 (diff)
downloadorg.eclipse.etrice-8a0b67a11df8ac25f4b62ba4b4ef28eeef25050f.tar.gz
org.eclipse.etrice-8a0b67a11df8ac25f4b62ba4b4ef28eeef25050f.tar.xz
org.eclipse.etrice-8a0b67a11df8ac25f4b62ba4b4ef28eeef25050f.zip
[generator] avoid code duplication for operationsImplementation
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend11
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend
index bff6fcdf6..85a906550 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend
@@ -192,16 +192,7 @@ class ProcedureHelpers {
}
def operationsImplementation(ActorClass ac) {
- '''
- /*--------------------- operations ---------------------*/
- «FOR operation : ac.operations»
- «IF !(languageExt.usesInheritance && operation.constructor)»
- «operationSignature(operation, ac.name, false)» {
- «AbstractGenerator::getInstance().getTranslatedCode(operation.detailCode)»
- }
- «ENDIF»
- «ENDFOR»
- '''
+ operationsImplementation(ac.operations, ac.name)
}
def destructorCall(String classname) {

Back to the top