summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-01-11 05:22:58 (EST)
committer Stephan Born2012-04-24 04:29:32 (EDT)
commit43b4ff4e45916cced9ccaf22dbbc2a950b3b1591 (patch)
tree90eef2f3c03c3db0c4beeb154256d8b0a0dfa79a
parent75ac6755b4f832685d90c8c91be408420feb1ff5 (diff)
downloadorg.eclipse.stardust.ide-43b4ff4e45916cced9ccaf22dbbc2a950b3b1591.zip
org.eclipse.stardust.ide-43b4ff4e45916cced9ccaf22dbbc2a950b3b1591.tar.gz
org.eclipse.stardust.ide-43b4ff4e45916cced9ccaf22dbbc2a950b3b1591.tar.bz2
Jira-ID: CRNT-23216 Refactor carnot-engine into org.eclipse.stardust.* packages (fixed loading of old MTAModels)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@52752 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java7
-rw-r--r--modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/launch/TransformationLaunchDelegate.java2
2 files changed, 2 insertions, 7 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java
index b9d5576..bef5918 100644
--- a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java
+++ b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java
@@ -165,13 +165,8 @@ public class MessageTransformationController {
mtaUtils = new MessageTransformationUtils(ModelUtils.getProjectFromEObject(element), element, model);
String xmlString = AttributeUtil.getAttributeValue((IExtensibleElement) element, Constants.TRANSFORMATION_PROPERTY);
- PreStardustTypeNameResolver typeNameResolver = new PreStardustTypeNameResolver();
- String r1 = typeNameResolver.resolveTypeName("com.infinity.bpm.messaging.model");
- String r2 = typeNameResolver.resolveTypeName("com.infinity.bpm.messaging.model.mapping.MappingPackage");
- xmlString = xmlString.replaceAll("com.infinity.bpm.messaging.model.mapping.MappingPackage", r2);
- xmlString = xmlString.replaceAll("com.infinity.bpm.messaging.model", r1);
if (xmlString != null) {
- trafoProp = (TransformationProperty) MappingModelUtil.transformXML2Ecore(xmlString.getBytes());
+ trafoProp = (TransformationProperty) MappingModelUtil.transformXML2Ecore(xmlString);
}
CodeCompletionHelper.getInstance().getTypeMap().clear();
diff --git a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/launch/TransformationLaunchDelegate.java b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/launch/TransformationLaunchDelegate.java
index 160f7d1..c953a06 100644
--- a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/launch/TransformationLaunchDelegate.java
+++ b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/launch/TransformationLaunchDelegate.java
@@ -330,7 +330,7 @@ public class TransformationLaunchDelegate extends LaunchConfigurationDelegate
if (xmlString != null)
{
trafoProp = (TransformationProperty) MappingModelUtil
- .transformXML2Ecore(xmlString.getBytes());
+ .transformXML2Ecore(xmlString);
this.fieldMappings = trafoProp.getFieldMappings();
}