summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-07-13 08:28:40 (EDT)
committer Manik Kishore2012-07-19 02:20:13 (EDT)
commit6f1d780b6295910e66f1b939fe3fa5f11c9b37b5 (patch)
treeb486271facf09a2d34e51e3aaf1e3a7b473d0d12
parent5a19c834010b5a06e0f233d1cce123ba0eaaa10e (diff)
downloadorg.eclipse.stardust.ui.web-6f1d780b6295910e66f1b939fe3fa5f11c9b37b5.zip
org.eclipse.stardust.ui.web-6f1d780b6295910e66f1b939fe3fa5f11c9b37b5.tar.gz
org.eclipse.stardust.ui.web-6f1d780b6295910e66f1b939fe3fa5f11c9b37b5.tar.bz2
Jira-ID: CRNT-25414
1)Removed the code to use commandProtocol for DataSymbol git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57638 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js22
1 files changed, 14 insertions, 8 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
index b6eabdc..e192333 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
@@ -242,8 +242,8 @@ define(
commandType = "gateSymbol." + str;
} else if (this.type == m_constants.EVENT_SYMBOL) {
commandType = "eventSymbol." + str;
- } else if (this.type == m_constants.DATA_SYMBOL) {
- commandType = "dataSymbol." + str;
+ /*} else if (this.type == m_constants.DATA_SYMBOL) {
+ commandType = "dataSymbol." + str;*/
} else if (this.type == m_constants.SWIMLANE_SYMBOL) {
commandType = "swimlaneSymbol." + str;
}
@@ -1190,14 +1190,20 @@ define(
}
Symbol.prototype.createAndSubmitCreateCommand = function () {
- var command = m_command.createCreateNodeCommand(
- this.getCommandIdForNode("create"), this.getPath(true), {
- oid : this.parentSymbol.oid
- }, this.createTransferObject(), this);
- m_commandsController.submitCommand(command);
+ var commandType = this.getCommandIdForNode("create");
+ if (commandType) {
+ var command = m_command.createCreateNodeCommand(this
+ .getCommandIdForNode("create"), this
+ .getPath(true), {
+ oid : this.parentSymbol.oid
+ }, this.createTransferObject(), this);
+ m_commandsController.submitCommand(command);
+ } else {
+ this.submitCreation();
+ }
}
/**
- *
+ *
*/
Symbol.prototype.removePrimitives = function() {
var n = 0;