Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmah2006-05-30 01:17:37 +0000
committerrmah2006-05-30 01:17:37 +0000
commit046a974f1ac0e4431f3c6bc5721f9eec2019f1ad (patch)
treea5bff910a56c33bdb2da339726ad3a551f608726 /bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal
parent85b88373a047996db7f45000ad7d41b1dce2bd1d (diff)
downloadwebtools.webservices-046a974f1ac0e4431f3c6bc5721f9eec2019f1ad.tar.gz
webtools.webservices-046a974f1ac0e4431f3c6bc5721f9eec2019f1ad.tar.xz
webtools.webservices-046a974f1ac0e4431f3c6bc5721f9eec2019f1ad.zip
[144334] WSDL Editor: protocol value we show in the Port's properties is incorrect
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal')
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/EndPointSection.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/EndPointSection.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/EndPointSection.java
index da1fc4934..068a514b5 100644
--- a/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/EndPointSection.java
+++ b/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/EndPointSection.java
@@ -26,6 +26,7 @@ import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory;
import org.eclipse.wst.common.ui.internal.search.dialogs.ComponentSpecification;
+import org.eclipse.wst.wsdl.ui.internal.adapters.basic.W11EndPoint;
import org.eclipse.wst.wsdl.ui.internal.asd.Messages;
import org.eclipse.wst.wsdl.ui.internal.asd.actions.ASDSetExistingBindingAction;
import org.eclipse.wst.wsdl.ui.internal.asd.actions.ASDSetNewBindingAction;
@@ -101,8 +102,12 @@ public class EndPointSection extends ReferenceSection {
addressText.setText(endPoint.getAddress());
}
}
- if (endPoint.getBinding() != null) {
- String protocolValue = endPoint.getBinding().getProtocol();
+ // TODO: rmah: We should not know about W11EndPoint. We need to for
+ // now to get access to the getProtocol() method. Eventually the
+ // getProtocol() method should be defined in the IEndPoint interface
+ // post 1.5...
+ if (endPoint instanceof W11EndPoint) {
+ String protocolValue = ((W11EndPoint) endPoint).getProtocol();
if (protocolValue.equals("")) { //$NON-NLS-1$
protocolValue = "----"; //$NON-NLS-1$
}

Back to the top