summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-09-21 09:07:04 (EDT)
committerStephan Born2012-09-21 09:07:04 (EDT)
commitc237fbf34578d76ad16f9ad2a2515a4d4f586459 (patch)
treebfa68434e344bb16ac67aaeae179a79b6b4d8b52
parentc509faf19e7f3c57af68da76fe11aade51be64bc (diff)
downloadorg.eclipse.stardust.ui.web-c237fbf34578d76ad16f9ad2a2515a4d4f586459.zip
org.eclipse.stardust.ui.web-c237fbf34578d76ad16f9ad2a2515a4d4f586459.tar.gz
org.eclipse.stardust.ui.web-c237fbf34578d76ad16f9ad2a2515a4d4f586459.tar.bz2
CRNT-26006
1)Added code to remove the lanesymbol from this.diagram.symbols on delete. 2)made a call to createSwimlaneSymbol on PoolSymbol when all lanes are deleted. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@59429 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_poolSymbol.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_poolSymbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_poolSymbol.js
index 5dd0964..44bfe21 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_poolSymbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_poolSymbol.js
@@ -666,10 +666,14 @@ define(
PoolSymbol.prototype.removeLane = function(laneSymbol) {
/* remove lane from lane symbols array. */
m_utils.removeItemFromArray(this.laneSymbols, laneSymbol);
-
+ m_utils.removeItemFromArray(this.diagram.symbols,
+ laneSymbol);
/* Create a default lane if the very last lane was deleted. */
if(this.laneSymbols.length == 0) {
- this.createDefaultLane();
+ // Lane Index is reinitialized when all lanes are
+ // deleted
+ laneIndex = 0;
+ this.createSwimlaneSymbol();
}
this.recalculateBoundingBox();