Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-03-07 10:34:06 -0500
committerHenrik Rentz-Reichert2013-03-11 07:28:39 -0400
commit0a3871c66cba1d8db653b4312c7e3644b9a762e0 (patch)
tree113c46bd1af7ef119ef48da68d109711036e8972 /plugins/org.eclipse.etrice.core.config
parent453d96b8348b21cc0ac57ec201d225764c3b0ef2 (diff)
downloadorg.eclipse.etrice-0a3871c66cba1d8db653b4312c7e3644b9a762e0.tar.gz
org.eclipse.etrice-0a3871c66cba1d8db653b4312c7e3644b9a762e0.tar.xz
org.eclipse.etrice-0a3871c66cba1d8db653b4312c7e3644b9a762e0.zip
[core.config, core.room] minor improvements
Diffstat (limited to 'plugins/org.eclipse.etrice.core.config')
-rw-r--r--plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/postprocessing/ImplPostprocesser.xtend8
-rw-r--r--plugins/org.eclipse.etrice.core.config/xtend-gen/org/eclipse/etrice/core/postprocessing/ImplPostProcessing.java16
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/postprocessing/ImplPostprocesser.xtend b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/postprocessing/ImplPostprocesser.xtend
index 1fd64822f..a9222761b 100644
--- a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/postprocessing/ImplPostprocesser.xtend
+++ b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/postprocessing/ImplPostprocesser.xtend
@@ -25,7 +25,7 @@ class ImplPostProcessing {
configModel.addOperation(
"getActorClassConfigs",
configPackage.getEClassifier("ActorClassConfig"),
- -1,
+ UNBOUNDED_MULTIPLICITY,
'''
EList<ActorClassConfig> list = new org.eclipse.emf.common.util.BasicEList<ActorClassConfig>();
for(ConfigElement element : this.getConfigElements())
@@ -36,7 +36,7 @@ class ImplPostProcessing {
configModel.addOperation(
"getActorInstanceConfigs",
configPackage.getEClassifier("ActorInstanceConfig"),
- -1,
+ UNBOUNDED_MULTIPLICITY,
'''
EList<ActorInstanceConfig> list = new org.eclipse.emf.common.util.BasicEList<ActorInstanceConfig>();
for(ConfigElement element : this.getConfigElements())
@@ -46,7 +46,7 @@ class ImplPostProcessing {
configModel.addOperation(
"getProtocolClassConfigs",
configPackage.getEClassifier("ProtocolClassConfig"),
- -1,
+ UNBOUNDED_MULTIPLICITY,
'''
EList<ProtocolClassConfig> list = new org.eclipse.emf.common.util.BasicEList<ProtocolClassConfig>();
for(ConfigElement element : this.getConfigElements())
@@ -57,7 +57,7 @@ class ImplPostProcessing {
configModel.addOperation(
"getSubSystemConfigs",
configPackage.getEClassifier("SubSystemConfig"),
- -1,
+ UNBOUNDED_MULTIPLICITY,
'''
EList<SubSystemConfig> list = new org.eclipse.emf.common.util.BasicEList<SubSystemConfig>();
for(ConfigElement element : this.getConfigElements())
diff --git a/plugins/org.eclipse.etrice.core.config/xtend-gen/org/eclipse/etrice/core/postprocessing/ImplPostProcessing.java b/plugins/org.eclipse.etrice.core.config/xtend-gen/org/eclipse/etrice/core/postprocessing/ImplPostProcessing.java
index 873d23dd6..ac15ac45e 100644
--- a/plugins/org.eclipse.etrice.core.config/xtend-gen/org/eclipse/etrice/core/postprocessing/ImplPostProcessing.java
+++ b/plugins/org.eclipse.etrice.core.config/xtend-gen/org/eclipse/etrice/core/postprocessing/ImplPostProcessing.java
@@ -15,7 +15,6 @@ public class ImplPostProcessing {
EPackage configPackage = metamodel.getEPackage();
EClass configModel = PostprocessingHelpers.getClass(configPackage, "ConfigModel");
EClassifier _eClassifier = configPackage.getEClassifier("ActorClassConfig");
- int _minus = (-1);
StringConcatenation _builder = new StringConcatenation();
_builder.append("EList<ActorClassConfig> list = new org.eclipse.emf.common.util.BasicEList<ActorClassConfig>();");
_builder.newLine();
@@ -30,9 +29,9 @@ public class ImplPostProcessing {
_builder.append("return list;");
_builder.newLine();
PostprocessingHelpers.addOperation(configModel,
- "getActorClassConfigs", _eClassifier, Integer.valueOf(_minus), _builder.toString());
+ "getActorClassConfigs", _eClassifier,
+ Integer.valueOf(PostprocessingHelpers.UNBOUNDED_MULTIPLICITY), _builder.toString());
EClassifier _eClassifier_1 = configPackage.getEClassifier("ActorInstanceConfig");
- int _minus_1 = (-1);
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("EList<ActorInstanceConfig> list = new org.eclipse.emf.common.util.BasicEList<ActorInstanceConfig>();");
_builder_1.newLine();
@@ -46,9 +45,9 @@ public class ImplPostProcessing {
_builder_1.newLine();
_builder_1.append("return list;");
PostprocessingHelpers.addOperation(configModel,
- "getActorInstanceConfigs", _eClassifier_1, Integer.valueOf(_minus_1), _builder_1.toString());
+ "getActorInstanceConfigs", _eClassifier_1,
+ Integer.valueOf(PostprocessingHelpers.UNBOUNDED_MULTIPLICITY), _builder_1.toString());
EClassifier _eClassifier_2 = configPackage.getEClassifier("ProtocolClassConfig");
- int _minus_2 = (-1);
StringConcatenation _builder_2 = new StringConcatenation();
_builder_2.append("EList<ProtocolClassConfig> list = new org.eclipse.emf.common.util.BasicEList<ProtocolClassConfig>();");
_builder_2.newLine();
@@ -63,9 +62,9 @@ public class ImplPostProcessing {
_builder_2.append("return list;");
_builder_2.newLine();
PostprocessingHelpers.addOperation(configModel,
- "getProtocolClassConfigs", _eClassifier_2, Integer.valueOf(_minus_2), _builder_2.toString());
+ "getProtocolClassConfigs", _eClassifier_2,
+ Integer.valueOf(PostprocessingHelpers.UNBOUNDED_MULTIPLICITY), _builder_2.toString());
EClassifier _eClassifier_3 = configPackage.getEClassifier("SubSystemConfig");
- int _minus_3 = (-1);
StringConcatenation _builder_3 = new StringConcatenation();
_builder_3.append("EList<SubSystemConfig> list = new org.eclipse.emf.common.util.BasicEList<SubSystemConfig>();");
_builder_3.newLine();
@@ -79,7 +78,8 @@ public class ImplPostProcessing {
_builder_3.newLine();
_builder_3.append("return list;");
boolean _addOperation = PostprocessingHelpers.addOperation(configModel,
- "getSubSystemConfigs", _eClassifier_3, Integer.valueOf(_minus_3), _builder_3.toString());
+ "getSubSystemConfigs", _eClassifier_3,
+ Integer.valueOf(PostprocessingHelpers.UNBOUNDED_MULTIPLICITY), _builder_3.toString());
_xblockexpression = (_addOperation);
}
return _xblockexpression;

Back to the top