summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-07-23 03:15:37 (EDT)
committerManik Kishore2012-07-30 01:51:03 (EDT)
commit9f20125639b09257d76ff0ea91a5e10664554cd8 (patch)
treeded07c0ac2aebc145801e4a8aacef6c29229ac1a
parentb835b086b2d89ae5bdb5719ac56f054a2d1dbe34 (diff)
downloadorg.eclipse.stardust.ui.web-9f20125639b09257d76ff0ea91a5e10664554cd8.zip
org.eclipse.stardust.ui.web-9f20125639b09257d76ff0ea91a5e10664554cd8.tar.gz
org.eclipse.stardust.ui.web-9f20125639b09257d76ff0ea91a5e10664554cd8.tar.bz2
Jira-ID: CRNT-25441
1)Removed the method toLaneSymbol() from ModelElementMarshaller.java as not immediate required for createLanes. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57843 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementMarshaller.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementMarshaller.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementMarshaller.java
index 0e67157..97edfd8 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementMarshaller.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementMarshaller.java
@@ -70,10 +70,6 @@ public class ModelElementMarshaller
{
jsResult = toProcessDefinition((ProcessDefinitionType) modelElement);
}
- else if (modelElement instanceof LaneSymbolImpl)
- {
- jsResult = toLaneSymbol((LaneSymbolImpl) modelElement);
- }
else if (modelElement instanceof ActivitySymbolType)
{
jsResult = toActivitySymbolJson((ActivitySymbolType) modelElement);
@@ -156,42 +152,6 @@ public class ModelElementMarshaller
}
/**
- *
- * @param laneSymbol
- * @return
- */
- public static JsonObject toLaneSymbol(LaneSymbol laneSymbol)
- {
- int poolOffsetX = 0;
- int poolOffsetY = 0;
-
- PoolSymbol container = (laneSymbol.eContainer() instanceof PoolSymbol)
- ? (PoolSymbol) laneSymbol.eContainer()
- : null;
-
- while (null != container)
- {
- poolOffsetX += container.getXPos();
- poolOffsetX += container.getYPos();
-
- // recurse
- container = (container.eContainer() instanceof PoolSymbol)
- ? (PoolSymbol) container.eContainer()
- : null;
- }
-
- JsonObject laneSymbolJson = new JsonObject();
- laneSymbolJson.addProperty(ModelerConstants.OID_PROPERTY,
- laneSymbol.getElementOid());
- laneSymbolJson.addProperty(ModelerConstants.ID_PROPERTY, laneSymbol.getId());
- laneSymbolJson.addProperty(ModelerConstants.NAME_PROPERTY, laneSymbol.getName());
-
- //TODO - Analyse and set other properties
- return laneSymbolJson;
-
- }
-
- /**
* @return
*/
public static JsonObject toProcessDefinitionDiagram(