summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-07 07:10:55 (EDT)
committer Stephan Born2012-09-07 07:10:55 (EDT)
commit4181b2e18f66c2389d55b0f789508b481b1876bb (patch)
tree9b3ec96f5077c0777bb4c5d77519cd5229758109
parent1296d978354e42fbb8f40022cf753ca77b1a311a (diff)
downloadorg.eclipse.stardust.ui.web-4181b2e18f66c2389d55b0f789508b481b1876bb.zip
org.eclipse.stardust.ui.web-4181b2e18f66c2389d55b0f789508b481b1876bb.tar.gz
org.eclipse.stardust.ui.web-4181b2e18f66c2389d55b0f789508b481b1876bb.tar.bz2
CRNT-26096 Pepper: Provide methods in ModelBuilderFacade to transform a data into another
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@59008 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java
index 7be18b0..5204389 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java
@@ -781,6 +781,15 @@ public abstract class ModelElementUnmarshaller
System.out.println("Structured Type: " + data.getType());
}
+ else if (dataJson.get(ModelerConstants.DATA_TYPE_PROPERTY)
+ .getAsString()
+ .equals(ModelerConstants.DOCUMENT_DATA_TYPE_KEY))
+ {
+ getModelBuilderFacade().convertDataType(data, ModelerConstants.DOCUMENT_DATA_TYPE_KEY);
+ getModelBuilderFacade().updateDocumentDataType(data, dataJson.get(ModelerConstants.STRUCTURED_DATA_TYPE_FULL_ID_PROPERTY).getAsString());
+
+ System.out.println("Dpcument Type: " + data.getType());
+ }
else
{
System.out.println("Other type "