Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistria2011-07-05 09:35:48 +0000
committermistria2011-07-05 09:35:48 +0000
commit3ea5dee9b6d7cd5f7646b4d1e825a75310863f6b (patch)
treed09d0c770408c330634886a9547ba5a07f582b29
parent4674ae2a2973e9ffeead47e9491f4409156afa56 (diff)
downloadorg.eclipse.gmf-tooling-3ea5dee9b6d7cd5f7646b4d1e825a75310863f6b.tar.gz
org.eclipse.gmf-tooling-3ea5dee9b6d7cd5f7646b4d1e825a75310863f6b.tar.xz
org.eclipse.gmf-tooling-3ea5dee9b6d7cd5f7646b4d1e825a75310863f6b.zip
bug 338522: ElementInitializer.xpt and Sequence{IntegerValue}
Integrated patch.
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ElementInitializers.xpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ElementInitializers.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ElementInitializers.xpt
index 9d79955b5..99e2d6f6a 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ElementInitializers.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ElementInitializers.xpt
@@ -107,7 +107,7 @@ public class «getElementInitializersClassName()» {
«IF getTypeGenClassifier(feature).expressionResultNeedsCast()-»
for (java.util.Iterator it = ((java.util.Collection) «expressionVarName»).iterator(); it.hasNext(); ) {
Object next = «diagramElement.getDiagram().editorGen.expressionProviders.getAbstractExpressionQualifiedClassName()».performCast(it.next(), «EXPAND MetaModel::MetaClass FOR getTypeGenClassifier(feature)»);
- «EXPAND MetaModel::getFeatureValue(instanceVar, instanceClass, true) FOR feature».add(next);
+ «EXPAND MetaModel::getFeatureValue(instanceVar, instanceClass, true) FOR feature».add((«EXPAND MetaModel::QualifiedClassName /*XXX sorta hack, better would be MM::setFeatureValue that supports lists*/FOR getTypeGenClassifier(feature)») next);
}
«ELSE-»
«EXPAND MetaModel::getFeatureValue(instanceVar, instanceClass, true) FOR feature».addAll(((java.util.Collection) «expressionVarName»));

Back to the top