| author | Sidharth Singh | 2012-07-09 09:44:01 (EDT) |
|---|---|---|
| committer | Manik Kishore | 2012-07-10 00:32:14 (EDT) |
| commit | 18e654aaacac32ddad15cf6bf8309e7240cac5f8 (patch) (side-by-side diff) | |
| tree | 78747497b133eb91ea99e47e3f9ce9ddb7d8f998 | |
| parent | 33c8599c7b27a86c1e1970c1c172ae4960bd447a (diff) | |
| download | org.eclipse.stardust.ui.web-18e654aaacac32ddad15cf6bf8309e7240cac5f8.zip org.eclipse.stardust.ui.web-18e654aaacac32ddad15cf6bf8309e7240cac5f8.tar.gz org.eclipse.stardust.ui.web-18e654aaacac32ddad15cf6bf8309e7240cac5f8.tar.bz2 | |
Jira-ID: CRNT-25295
1)Removed the call to submitUpdate() and called createMoveNodeSymbolCommand() for command protocol in stretchStop of SwimlaneSymbol and m_symbol.js
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57549 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | web-modeler/src/main/resources/META-INF/xhtml/js/m_swimlaneSymbol.js | 5 | ||||
| -rw-r--r-- | web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_swimlaneSymbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_swimlaneSymbol.js index f3543c2..69cc956 100644 --- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_swimlaneSymbol.js +++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_swimlaneSymbol.js @@ -806,7 +806,10 @@ define( this.parentSymbol.recalculateBoundingBox();
this.parentSymbol.adjustGeometry();
- this.diagram.submitUpdate();
+ var newGeometry = {"x": this.x, "y" : this.y, "oid" : this.oid, "width" : this.width , "height" :this.height};
+
+ var command = m_command.createMoveNodeSymbolCommand(this.getPath(true), {oid: this.oid}, newGeometry, this);
+ m_commandsController.submitCommand(command);
}
};
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 e799fc8..12cab3e 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 @@ -1196,7 +1196,10 @@ define( *
*/
Symbol.prototype.stretchStop = function() {
- this.submitUpdate();
+ var newGeometry = {"x": this.x, "y" : this.y, "oid" : this.oid, "width" : this.width , "height" :this.height};
+
+ var command = m_command.createMoveNodeSymbolCommand(this.getPath(true), {oid: this.oid}, newGeometry, this);
+ m_commandsController.submitCommand(command);
};
/**
|

