summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-08-13 09:54:51 (EDT)
committer Manik Kishore2012-08-13 09:54:51 (EDT)
commitb88d3a65804a340292634539b64ed3c892f0d433 (patch)
treead9f680eaefc2841d614495659c2cb7b183dbd72
parentc54b646aca438b04618a82337af2aaa0e383572d (diff)
downloadorg.eclipse.stardust.ui.web-b88d3a65804a340292634539b64ed3c892f0d433.zip
org.eclipse.stardust.ui.web-b88d3a65804a340292634539b64ed3c892f0d433.tar.gz
org.eclipse.stardust.ui.web-b88d3a65804a340292634539b64ed3c892f0d433.tar.bz2
Jira-ID: CRNT-25692
1)Added code to call createUpdateModelElementCommand on activity rename in m_diagram.js git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58378 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
index 0d56d84..8f93734 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
@@ -590,6 +590,8 @@ define(
m_utils.debug("Changed symbol to:");
m_utils.debug(symbol);
symbol.refresh();
+ // TODO - update properties panel on
+ // modelElement change
}
}
}
@@ -1353,6 +1355,16 @@ define(
.trigger("blur");
this.currentTextPrimitive.attr("text", content);
m_utils.debug("text set");
+ var changes = {
+ modelElement : {
+ name : this.currentTextPrimitive.attr("text")
+ }
+ };
+
+ m_commandsController.submitCommand(m_command
+ .createUpdateModelElementCommand(this.currentTextPrimitive.auxiliaryProperties.callbackScope.diagram.modelId,
+ this.currentTextPrimitive.auxiliaryProperties.callbackScope.oid,
+ changes));
this.currentTextPrimitive.show();
this.symbolEditMode = false;
m_utils.debug("text primitive shown");