Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/commands/CreateNodeCommand.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/commands/CreateNodeCommand.xpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/commands/CreateNodeCommand.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/commands/CreateNodeCommand.xpt
index ef98d179c..b9fb375eb 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/commands/CreateNodeCommand.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/commands/CreateNodeCommand.xpt
@@ -143,11 +143,11 @@ protected org.eclipse.emf.ecore.EObject doDefaultElementCreation() {
«EXPAND MetaModel::NewInstance("newElement") FOR metaClass»
«IF containmentMetaFeature != null-»
«EXPAND MetaModel::DeclareAndAssign("owner", "getElementToEdit()") FOR containmentMetaFeature.genClass»
- «EXPAND CreateLinkUtils::addValue("owner", containmentMetaFeature.genClass, "newElement") FOR containmentMetaFeature-»
+ «EXPAND MetaModel::modifyFeature("owner", containmentMetaFeature.genClass, "newElement") FOR containmentMetaFeature-»
«ENDIF»
«IF hasExplicitChildFeature(this)-»
«EXPAND MetaModel::DeclareAndAssign("childHolder", "getElementToEdit()") FOR childMetaFeature.genClass»
- «EXPAND CreateLinkUtils::addValue("childHolder", childMetaFeature.genClass, "newElement") FOR childMetaFeature»
+ «EXPAND MetaModel::modifyFeature("childHolder", childMetaFeature.genClass, "newElement") FOR childMetaFeature»
«ENDIF-»
«EXPAND initialize(node, "newElement")-»
return «EXPAND MetaModel::DowncastToEObject("newElement") FOR metaClass»;

Back to the top