summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-06 08:46:49 (EDT)
committerStephan Born2012-09-06 08:46:49 (EDT)
commit7e8d9e2a75dc3a69960bcd942a355f09b2f647f6 (patch)
treec7ee98729d88f6dc9d367b7f764f4cbb4420e4b1
parent870da20d277a19e674dbc7f96c3882adfe0a0eeb (diff)
downloadorg.eclipse.stardust.ui.web-7e8d9e2a75dc3a69960bcd942a355f09b2f647f6.zip
org.eclipse.stardust.ui.web-7e8d9e2a75dc3a69960bcd942a355f09b2f647f6.tar.gz
org.eclipse.stardust.ui.web-7e8d9e2a75dc3a69960bcd942a355f09b2f647f6.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@58964 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java13
1 files changed, 3 insertions, 10 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 70c20ce..7be18b0 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
@@ -767,12 +767,7 @@ public abstract class ModelElementUnmarshaller
System.out.println("Creating Primitive Type: "
+ dataJson.get(ModelerConstants.PRIMITIVE_DATA_TYPE_PROPERTY));
- getModelBuilderFacade().updatePrimitiveData(
- data,
- dataJson.get(ModelerConstants.PRIMITIVE_DATA_TYPE_PROPERTY)
- .getAsString());
-
-
+ getModelBuilderFacade().convertDataType(data, ModelerConstants.PRIMITIVE_DATA_TYPE_KEY);
getModelBuilderFacade().updatePrimitiveData(data, dataJson.get(ModelerConstants.PRIMITIVE_DATA_TYPE_PROPERTY).getAsString());
System.out.println("Primitive Type: " + data.getType());
@@ -781,10 +776,8 @@ public abstract class ModelElementUnmarshaller
.getAsString()
.equals(ModelerConstants.STRUCTURED_DATA_TYPE_KEY))
{
- getModelBuilderFacade().updateStructuredDataType(
- data,
- dataJson.get(ModelerConstants.STRUCTURED_DATA_TYPE_FULL_ID_PROPERTY)
- .getAsString());
+ getModelBuilderFacade().convertDataType(data, ModelerConstants.STRUCTURED_DATA_TYPE_KEY);
+ getModelBuilderFacade().updateStructuredDataType(data, dataJson.get(ModelerConstants.STRUCTURED_DATA_TYPE_FULL_ID_PROPERTY).getAsString());
System.out.println("Structured Type: " + data.getType());
}