From 53a573d80dd345e80cf4f054d916d6e0b4cc5efd Mon Sep 17 00:00:00 2001 From: sohaniwso2 Date: Thu, 8 Mar 2018 11:24:40 +0530 Subject: [PATCH] Handle deserializing the attribute --- .../custom/deserializer/ProxyServiceDeserializer.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/deserializer/ProxyServiceDeserializer.java b/plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/deserializer/ProxyServiceDeserializer.java index 8b4e46617..1dcffe6e4 100755 --- a/plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/deserializer/ProxyServiceDeserializer.java +++ b/plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/deserializer/ProxyServiceDeserializer.java @@ -100,12 +100,10 @@ public org.wso2.developerstudio.eclipse.gmf.esb.ProxyService createNode(IGraphic hasPublishWsdl=false; } - if (object.getPreservePolicy() != null) { - if (object.getPreservePolicy().equals("true")) { - executeSetValueCommand(PROXY_SERVICE__PRESERVE_POLICY, true); - } else { - executeSetValueCommand(PROXY_SERVICE__PRESERVE_POLICY, false); - } + if("false".equals(object.getPreservePolicy())){ + executeSetValueCommand(PROXY_SERVICE__PRESERVE_POLICY, false); + } else { + executeSetValueCommand(PROXY_SERVICE__PRESERVE_POLICY, true); } Endpoint targetInLineEndpoint = object.getTargetInLineEndpoint();