summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-08-15 03:01:28 (EDT)
committerManik Kishore2012-08-15 03:01:28 (EDT)
commitb57d10656d9e8cd671c78ce5caf619299659efa0 (patch)
tree455f8d6a9635bf1869949606b3794b22c52c3f46
parent18429d39acb3bbb53a87a68cc7c4930a415cd332 (diff)
downloadorg.eclipse.stardust.ui.web-b57d10656d9e8cd671c78ce5caf619299659efa0.zip
org.eclipse.stardust.ui.web-b57d10656d9e8cd671c78ce5caf619299659efa0.tar.gz
org.eclipse.stardust.ui.web-b57d10656d9e8cd671c78ce5caf619299659efa0.tar.bz2
CRNT-25760 Refactor/Clean up MB Facade
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58420 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DataChangeCommandHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DataChangeCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DataChangeCommandHandler.java
index a514470..bc6bb7a 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DataChangeCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DataChangeCommandHandler.java
@@ -76,16 +76,16 @@ public class DataChangeCommandHandler
{
String id = extractString(request, ModelerConstants.ID_PROPERTY);
String name = extractString(request, ModelerConstants.NAME_PROPERTY);
+ String dataFullID = extractString(request, ModelerConstants.STRUCTURED_DATA_TYPE_FULL_ID);
String stripFullId_ = MBFacade.getInstance().getModelId(extractString(request,
ModelerConstants.STRUCTURED_DATA_TYPE_FULL_ID));
if (StringUtils.isEmpty(stripFullId_))
{
stripFullId_ = model.getId();
}
- String structuredDataFullId = MBFacade.getInstance().stripFullId(extractString(request,
- ModelerConstants.STRUCTURED_DATA_TYPE_FULL_ID));
- DataType data = MBFacade.getInstance().createStructuredData(model, stripFullId_, id, name,
- structuredDataFullId);
+
+ DataType data = MBFacade.getInstance().createStructuredData(model, id, name,
+ dataFullID);
long maxOid = XpdlModelUtils.getMaxUsedOid(model);
data.setElementOid(++maxOid);