diff options
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective')
18 files changed, 0 insertions, 1136 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/DetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/DetailsTool.java deleted file mode 100644 index e60ca2e9a..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/DetailsTool.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; - -public abstract class DetailsTool extends FormTool { - - public String formLink_; - - public DetailsTool(ToolManager toolManager, String alt, String formLink) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - formLink_ = formLink; - } - - protected void initDefaultProperties() { - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return formLink_; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/InvokeWSDLOperationTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/InvokeWSDLOperationTool.java deleted file mode 100644 index 17cc13ea4..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/InvokeWSDLOperationTool.java +++ /dev/null @@ -1,96 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.WSDLOperationElement; - -public class InvokeWSDLOperationTool extends FormTool { - - private String fragmentViewID_; - private String fragmentNameAnchorID_; - private String endPoint_; - - public InvokeWSDLOperationTool(ToolManager toolManager, String alt) { - super(toolManager, "wsdl/images/invoke_wsdl_operation_enabled.gif", "wsdl/images/invoke_wsdl_operation_highlighted.gif", alt); - fragmentViewID_ = FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM; - fragmentNameAnchorID_ = null; - endPoint_ = null; - } - - protected void initDefaultProperties() { - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - StringBuffer formLink = new StringBuffer(); - formLink.append("wsdl/forms/InvokeWSDLOperationForm.jsp"); - String nameAnchorID = getFragmentNameAnchorID(); - if (nameAnchorID != null && nameAnchorID.length() > 0) { - formLink.append("#"); - formLink.append(nameAnchorID); - setFragmentNameAnchorID(null); - } - return formLink.toString(); - } - - public String getFormActionLink(int operationType,String fragmentViewID) - { - switch (operationType) - { - case WSDLOperationElement.OPERATION_TYPE_SOAP: - if (fragmentViewID.equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE)) - return "wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp"; - else - return "wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp"; - case WSDLOperationElement.OPERATION_TYPE_HTTP_GET: - return "wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp"; - case WSDLOperationElement.OPERATION_TYPE_HTTP_POST: - default: - return "wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp"; - } - } - - public String getFragmentViewID() { - return fragmentViewID_; - } - - public void setFragmentViewID(String fragmentViewID) { - fragmentViewID_ = fragmentViewID; - } - - public String getFragmentNameAnchorID() { - return fragmentNameAnchorID_; - } - - public void setFragmentNameAnchorID(String fragmentNameAnchorID) { - fragmentNameAnchorID_ = fragmentNameAnchorID; - } - - public String getEndPoint() - { - return endPoint_; - } - - public void setEndPoint(String endPoint) - { - endPoint_ = endPoint; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/OpenWSDLTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/OpenWSDLTool.java deleted file mode 100644 index d352109b5..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/OpenWSDLTool.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; - -public class OpenWSDLTool extends FormTool { - - public OpenWSDLTool(ToolManager toolManager, String alt) { - super(toolManager, "wsdl/images/open_wsdl_enabled.gif", "wsdl/images/open_wsdl_highlighted.gif", alt); - } - - protected void initDefaultProperties() { - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "wsdl/forms/OpenWSDLForm.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/SOAPMessageQueue.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/SOAPMessageQueue.java deleted file mode 100644 index c854ebeb2..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/SOAPMessageQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import java.util.Vector; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.MessageQueue; - -public class SOAPMessageQueue extends MessageQueue -{ - private Vector cachedMessageList_; - - public SOAPMessageQueue() - { - super(); - cachedMessageList_ = new Vector(); - } - - public void clear() - { - cachedMessageList_.removeAllElements(); - messageList_.removeAllElements(); - } - - public String getMessagesFromList() - { - if (messageList_.size() == 0) - copyMessages(cachedMessageList_,messageList_); - else - copyMessages(messageList_,cachedMessageList_); - return super.getMessagesFromList(); - } - - private final void copyMessages(Vector sourceList,Vector destList) - { - for (int i=0;i<sourceList.size();i++) - destList.addElement(sourceList.elementAt(i)); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLAddToFavoritesTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLAddToFavoritesTool.java deleted file mode 100644 index 271d671b7..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLAddToFavoritesTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ActionTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLAddToFavoritesAction; - -public class WSDLAddToFavoritesTool extends ActionTool { - public WSDLAddToFavoritesTool(ToolManager toolManager, String alt) { - super(toolManager, "images/favorites_enabled.gif", "images/favorites_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return WSDLAddToFavoritesAction.getActionLink(selectedNode.getNodeId()); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingDetailsTool.java deleted file mode 100644 index 4b90d81e6..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingDetailsTool.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class WSDLBindingDetailsTool extends DetailsTool { - - public WSDLBindingDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, alt, "wsdl/forms/WSDLBindingDetailsForm.jsp"); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingNode.java deleted file mode 100644 index 93c04b961..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingNode.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLModelConstants; - -// WSDL binding node for the WSDL Navigator Tree View -public class WSDLBindingNode extends WSDLNavigatorNode -{ - public WSDLBindingNode(TreeElement element,NodeManager nodeManager,int nodeDepth) - { - super(element,nodeManager,nodeDepth,"wsdl/images/wsdl_binding_node.gif"); - element.addListener(new ElementAdapter() - { - public void relAdded(RelAddEvent event) - { - String rel = event.getOutBoundRelName(); - if (rel.equals(WSDLModelConstants.REL_WSDL_OPERATION)) { - WSDLOperationNode wsdlOperationNode = new WSDLOperationNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(wsdlOperationNode); - } - } - - public void relRemoved(RelRemoveEvent event) - { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(WSDLModelConstants.REL_WSDL_OPERATION)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(WSDLModelConstants.REL_WSDL_OPERATION)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - setVisibilityOfChildren(false); - } - - protected final void initTools() - { - Controller controller = nodeManager_.getController(); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - new WSDLBindingDetailsTool(toolManager_, wsdlPerspective.getMessage("ALT_WSDL_BINDING_DETAILS")); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLDetailsTool.java deleted file mode 100644 index 279eadff7..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLDetailsTool.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class WSDLDetailsTool extends DetailsTool { - - public static final int FORM_VIEW_ID = 0; - public static final int SOURCE_VIEW_ID = 1; - - private int viewId_; - - public WSDLDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, alt, "wsdl/forms/WSDLDetailsForm.jsp"); - viewId_ = FORM_VIEW_ID; - } - - public int getViewId() { - return viewId_; - } - - public void setViewId(int viewId) { - if (viewId == FORM_VIEW_ID || viewId == SOURCE_VIEW_ID) - viewId_ = viewId; - } - - public void toggleViewId() { - if (viewId_ == FORM_VIEW_ID) - viewId_ = SOURCE_VIEW_ID; - else - viewId_ = FORM_VIEW_ID; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToFileSystemTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToFileSystemTool.java deleted file mode 100644 index 3b191a3b4..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToFileSystemTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ImportToFileSystemTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLImportWSDLToFileSystemAction; - -public class WSDLImportWSDLToFileSystemTool extends ImportToFileSystemTool { - public WSDLImportWSDLToFileSystemTool(ToolManager toolManager,String alt) { - super(toolManager,alt); - } - - public final String getSelectToolActionHref(boolean forHistory) { - Node node = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(node.getNodeId(),toolId_,node.getViewId(),node.getViewToolId(),forHistory); - } - - public final String getActionLink() { - Node node = toolManager_.getNode(); - return WSDLImportWSDLToFileSystemAction.getActionLink(node.getNodeId(),toolId_,node.getViewId(),node.getViewToolId()); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToWorkbenchTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToWorkbenchTool.java deleted file mode 100644 index 5dccc9500..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToWorkbenchTool.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ImportToWorkbenchTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; - -public class WSDLImportWSDLToWorkbenchTool extends ImportToWorkbenchTool { - public WSDLImportWSDLToWorkbenchTool(ToolManager toolManager,String alt) { - super(toolManager,alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node node = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(node.getNodeId(),toolId_,node.getViewId(),node.getViewToolId(),forHistory); - } - - public final String getFormLink() { - return "wsdl/forms/WSDLImportWSDLToWorkbenchForm.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLLaunchWebServiceWizardTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLLaunchWebServiceWizardTool.java deleted file mode 100644 index 36f9780eb..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLLaunchWebServiceWizardTool.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.LaunchWebServiceWizardTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction; - -public class WSDLLaunchWebServiceWizardTool extends LaunchWebServiceWizardTool { - public WSDLLaunchWebServiceWizardTool(ToolManager toolManager,String alt) { - super(toolManager,alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node node = toolManager_.getNode(); - return SelectWSDLPropertiesToolAction.getActionLink(node.getNodeId(),toolId_,node.getViewId(),node.getViewToolId(),forHistory); - } - - public final String getFormLink() { - return "wsdl/forms/WSDLLaunchWebServiceWizardForm.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLMainNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLMainNode.java deleted file mode 100644 index 5d54922fb..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLMainNode.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLModelConstants; - -// Root node for the WSDL Navigator Tree View -public class WSDLMainNode extends WSDLNavigatorNode -{ - public WSDLMainNode(TreeElement element,NodeManager nodeManager) - { - super(element,nodeManager,1,"images/root_main.gif"); - element.addListener(new ElementAdapter() - { - public void relAdded(RelAddEvent event) - { - String rel = event.getOutBoundRelName(); - if (rel.equals(WSDLModelConstants.REL_WSDL)) { - WSDLNode wsdlNode = new WSDLNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(wsdlNode); - } - } - - public void relRemoved(RelRemoveEvent event) - { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(WSDLModelConstants.REL_WSDL)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(WSDLModelConstants.REL_WSDL)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected final void initTools() - { - Controller controller = nodeManager_.getController(); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - new OpenWSDLTool(toolManager_, wsdlPerspective.getMessage("ALT_OPEN_WSDL")); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNavigatorNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNavigatorNode.java deleted file mode 100644 index 45ef58b8f..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNavigatorNode.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLNavigatorNodeAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.ToggleWSDLNavigatorNodeAction; - -public abstract class WSDLNavigatorNode extends Node -{ - public WSDLNavigatorNode(TreeElement element,NodeManager nodeManager,int nodeDepth,String imagePath) - { - super(element,nodeManager,nodeDepth,imagePath); - } - - // wsdl/actions/ToggleWSDLNavigatorNodeAction.jsp?nodeId=... - public final String getToggleNodeActionHref() - { - return ToggleWSDLNavigatorNodeAction.getActionLink(nodeId_,isOpen_); - } - - // wsdl/actions/SelectWSDLNavigatorNodeAction.jsp?nodeId=... - public final String getLinkActionHref() - { - return SelectWSDLNavigatorNodeAction.getActionLink(nodeId_,false); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNode.java deleted file mode 100644 index 4144a86c9..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNode.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLModelConstants; - -// WSDL node for the WSDL Navigator Tree View -public class WSDLNode extends WSDLNavigatorNode -{ - public WSDLNode(TreeElement element,NodeManager nodeManager,int nodeDepth) - { - super(element,nodeManager,nodeDepth,"images/wsdl.gif"); - element.addListener(new ElementAdapter() - { - public void relAdded(RelAddEvent event) - { - String rel = event.getOutBoundRelName(); - if (rel.equals(WSDLModelConstants.REL_WSDL_SERVICE)) { - WSDLServiceNode wsdlServiceNode = new WSDLServiceNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(wsdlServiceNode); - } - } - - public void relRemoved(RelRemoveEvent event) - { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(WSDLModelConstants.REL_WSDL_SERVICE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(WSDLModelConstants.REL_WSDL_SERVICE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - setVisibilityOfChildren(false); - } - - protected final void initTools() - { - Controller controller = nodeManager_.getController(); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - new WSDLDetailsTool(toolManager_, wsdlPerspective.getMessage("ALT_WSDL_DETAILS")); - new WSDLImportWSDLToWorkbenchTool(toolManager_, controller.getMessage("ALT_IMPORT_WSDL_TO_WORKBENCH")); - new WSDLImportWSDLToFileSystemTool(toolManager_, controller.getMessage("ALT_WSDL_IMPORT_TO_FS")); - new WSDLLaunchWebServiceWizardTool(toolManager_, controller.getMessage("ALT_LAUNCH_WEB_SERVICE_WIZARD")); - new WSDLAddToFavoritesTool(toolManager_, wsdlPerspective.getMessage("ALT_ADD_WSDL_TO_FAVORITES")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLOperationNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLOperationNode.java deleted file mode 100644 index c03a0263a..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLOperationNode.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -// WSDL operation node for the WSDL Navigator Tree View -public class WSDLOperationNode extends WSDLNavigatorNode -{ - public WSDLOperationNode(TreeElement element,NodeManager nodeManager,int nodeDepth) - { - super(element,nodeManager,nodeDepth,"wsdl/images/wsdl_operation_node.gif"); - element.addListener(new ElementAdapter() - { - public void relAdded(RelAddEvent event) - { - } - - public void relRemoved(RelRemoveEvent event) - { - } - }); - } - - protected final void initTools() - { - Controller controller = nodeManager_.getController(); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - new InvokeWSDLOperationTool(toolManager_, wsdlPerspective.getMessage("ALT_INVOKE_WSDL_OPERATION")); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLPerspective.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLPerspective.java deleted file mode 100644 index 9f69b2f3c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLPerspective.java +++ /dev/null @@ -1,370 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import java.util.Hashtable; -import java.util.Iterator; -import java.util.Vector; -import javax.servlet.ServletContext; -import javax.wsdl.Service; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl; -import org.eclipse.wst.ws.internal.datamodel.BasicModel; -import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Perspective; -import org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils; -import org.eclipse.wst.ws.internal.explorer.platform.util.URLUtils; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.OpenWSDLAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SwitchPerspectiveFromWSDLAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.UpdateWSDLBindingAction; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.BindingTypes; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLActionInputs; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.WSDLBindingElement; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.WSDLServiceElement; -import org.eclipse.xsd.impl.XSDPackageImpl; -import org.eclipse.xsd.util.XSDResourceFactoryImpl; - -public class WSDLPerspective extends Perspective -{ - public static final int STATUS_CONTENT_DEFAULT = 0; - public static final int STATUS_CONTENT_RESULT_FORM = 1; - public static final int STATUS_CONTENT_RESULT_SOURCE = 2; - - private BasicModel model_; - private NodeManager nodeManager_; - private String perspectiveContentFramesetCols_; - private String savedPerspectiveContentFramesetCols_; - private String actionsContainerFramesetRows_; - private String savedActionsContainerFramesetRows_; - private int statusContentType_; - - private SOAPMessageQueue soapRequestQueue_; - private SOAPMessageQueue soapResponseQueue_; - private Node operationNode_; - - static - { - // Initialize the XSD subsystem. - (new ResourceFactoryRegistryImpl()).getExtensionToFactoryMap().put("xsd",new XSDResourceFactoryImpl()); - // port to org.eclipse.xsd - // Init.init(); - EcorePackageImpl.init(); - XSDPackageImpl.init(); - } - - public WSDLPerspective(Controller controller) - { - super("wsdl",controller); - } - - public final void initPerspective(ServletContext application) - { - model_ = new BasicModel("wsdlModel"); - TreeElement treeElement = new TreeElement(getMessage("NODE_NAME_WSDL_MAIN"), model_); - model_.setRootElement(treeElement); - nodeManager_ = new NodeManager(controller_); - WSDLMainNode wsdlMainNode = new WSDLMainNode(treeElement, nodeManager_); - nodeManager_.setRootNode(wsdlMainNode); - - // Starting frameset sizes. - if (!DirUtils.isRTL()) - perspectiveContentFramesetCols_ = "30%,*"; - else - perspectiveContentFramesetCols_ = "*,30%"; - savedPerspectiveContentFramesetCols_ = perspectiveContentFramesetCols_; - actionsContainerFramesetRows_ = "75%,*"; - savedActionsContainerFramesetRows_ = actionsContainerFramesetRows_; - - // Message status pane - statusContentType_ = STATUS_CONTENT_DEFAULT; - soapRequestQueue_ = new SOAPMessageQueue(); - soapResponseQueue_ = new SOAPMessageQueue(); - operationNode_ = null; - } - - public final void preloadWSDL(String[] wsdlURLs) { - if (wsdlURLs != null) { - for (int i = 0; i < wsdlURLs.length; i++) { - OpenWSDLAction openWSDLAction = new OpenWSDLAction(controller_); - Hashtable propertyTable = openWSDLAction.getPropertyTable(); - String decodedWSDLURL = URLUtils.decode(wsdlURLs[i]); - propertyTable.put(ActionInputs.QUERY_INPUT_WSDL_URL, decodedWSDLURL); - openWSDLAction.run(); - } - if (wsdlURLs.length > 0) - controller_.setCurrentPerspective(ActionInputs.PERSPECTIVE_WSDL); - } - } - - public final void preloadEndpoints(String[] wsdlURLs, String[] endpoints) - { - if (wsdlURLs != null && wsdlURLs.length > 0 && endpoints != null && endpoints.length > 0) - { - String wsdlURL = wsdlURLs[0]; - Vector wsdlNodes = nodeManager_.getRootNode().getChildNodes(); - for (Iterator wsdlNodesIterator = wsdlNodes.iterator(); wsdlNodesIterator.hasNext();) - { - Node wsdlNode = (Node)wsdlNodesIterator.next(); - if (wsdlNode.getNodeName().equals(wsdlURL)) - { - Vector serviceNodes = wsdlNode.getChildNodes(); - for (Iterator serviceNodesIterator = serviceNodes.iterator(); serviceNodesIterator.hasNext();) - { - Node serviceNode = (Node)serviceNodesIterator.next(); - Vector bindingNodes = serviceNode.getChildNodes(); - String[] nodeIds = new String[bindingNodes.size()]; - for (int i = 0; i < nodeIds.length; i++) - nodeIds[i] = String.valueOf(((Node)bindingNodes.get(i)).getNodeId()); - UpdateWSDLBindingAction action = new UpdateWSDLBindingAction(controller_); - Hashtable propertyTable = new Hashtable(); - propertyTable.put(ActionInputs.NODEID, nodeIds); - propertyTable.put(WSDLActionInputs.END_POINT, endpoints); - action.setPropertyTable(propertyTable); - action.execute(false); - } - return; - } - } - } - } - - public final void preselectServiceOrBinding(String[] wsdlURLs,String[] serviceQNameStrings,String[] bindingNameStrings) - { - if (wsdlURLs != null && wsdlURLs.length > 0) - { - String wsdlURL = wsdlURLs[0]; - if (serviceQNameStrings != null && serviceQNameStrings.length > 0) - preselectService(wsdlURL,serviceQNameStrings[0]); - else - { - if (bindingNameStrings != null && bindingNameStrings.length > 0) - preselectBinding(wsdlURL,bindingNameStrings[0]); - } - } - } - - private final void preselectService(String wsdlURL,String serviceQNameString) - { - Vector wsdlNodes = nodeManager_.getRootNode().getChildNodes(); - for (int i=0;i<wsdlNodes.size();i++) - { - Node wsdlNode = (Node)wsdlNodes.elementAt(i); - if (wsdlNode.getNodeName().equals(wsdlURL)) - { - Vector serviceNodes = wsdlNode.getChildNodes(); - for (int j=0;j<serviceNodes.size();j++) - { - Node serviceNode = (Node)serviceNodes.elementAt(j); - WSDLServiceElement serviceElement = (WSDLServiceElement)serviceNode.getTreeElement(); - Service service = serviceElement.getService(); - if (service.getQName().toString().equals(serviceQNameString)) - { - nodeManager_.setSelectedNodeId(serviceNode.getNodeId()); - nodeManager_.makeSelectedNodeVisible(); - controller_.setCurrentPerspective(ActionInputs.PERSPECTIVE_WSDL); - return; - } - } - } - } - } - - private final void preselectBinding(String wsdlURL,String bindingNameString) - { - Vector wsdlNodes = nodeManager_.getRootNode().getChildNodes(); - for (int i=0;i<wsdlNodes.size();i++) - { - Node wsdlNode = (Node)wsdlNodes.elementAt(i); - if (wsdlNode.getNodeName().equals(wsdlURL)) - { - Vector serviceNodes = wsdlNode.getChildNodes(); - for (int j=0;j<serviceNodes.size();j++) - { - Node serviceNode = (Node)serviceNodes.elementAt(j); - Vector bindingNodes = serviceNode.getChildNodes(); - for (int k=0;k<bindingNodes.size();k++) - { - Node bindingNode = (Node)bindingNodes.elementAt(k); - WSDLBindingElement bindingElement = (WSDLBindingElement)bindingNode.getTreeElement(); - if (bindingElement.getBinding().getQName().toString().equals(bindingNameString)) - { - nodeManager_.setSelectedNodeId(bindingNode.getNodeId()); - nodeManager_.makeSelectedNodeVisible(); - controller_.setCurrentPerspective(ActionInputs.PERSPECTIVE_WSDL); - return; - } - } - } - } - } - } - - public NodeManager getNodeManager() - { - return nodeManager_; - } - - public String getPerspectiveContentPage() - { - return "wsdl/wsdl_perspective_content.jsp"; - } - - public int getPerspectiveId() - { - return ActionInputs.PERSPECTIVE_WSDL; - } - - public String getPanesFile() - { - return "wsdl/scripts/wsdlpanes.jsp"; - } - - public String getFramesetsFile() - { - return "wsdl/scripts/wsdlframesets.jsp"; - } - - public String getProcessFramesetsForm() - { - return "wsdl/forms/ProcessWSDLFramesetsForm.jsp"; - } - - public String getTreeContentVar() - { - return "wsdlNavigatorContent"; - } - - public String getTreeContentPage() - { - return "wsdl/wsdl_navigator_content.jsp"; - } - - public String getPropertiesContainerVar() - { - return "wsdlPropertiesContainer"; - } - - public String getPropertiesContainerPage() - { - return "wsdl/wsdl_properties_container.jsp"; - } - - public String getStatusContentVar() - { - return "wsdlStatusContent"; - } - - public String getStatusContentPage() - { - return "wsdl/wsdl_status_content.jsp"; - } - - public final String getPerspectiveContentFramesetCols() - { - return perspectiveContentFramesetCols_; - } - - public final void setPerspectiveContentFramesetCols(String cols) - { - perspectiveContentFramesetCols_ = cols; - } - - public final void setSavedPerspectiveContentFramesetCols(String cols) - { - savedPerspectiveContentFramesetCols_ = cols; - } - - public final String getSavedPerspectiveContentFramesetCols() - { - return savedPerspectiveContentFramesetCols_; - } - - public final String getActionsContainerFramesetRows() - { - return actionsContainerFramesetRows_; - } - - public final void setActionsContainerFramesetRows(String rows) - { - actionsContainerFramesetRows_ = rows; - } - - public final void setSavedActionsContainerFramesetRows(String rows) - { - savedActionsContainerFramesetRows_ = rows; - } - - public final String getSavedActionsContainerFramesetRows() - { - return savedActionsContainerFramesetRows_; - } - - public final String getSwitchPerspectiveFormActionLink(int targetPerspectiveId,boolean forHistory) - { - return SwitchPerspectiveFromWSDLAction.getFormActionLink(targetPerspectiveId,forHistory); - } - - public final int getStatusContentType() - { - return statusContentType_; - } - - public final void setStatusContentType(int statusContentType) - { - statusContentType_ = statusContentType; - } - - public final SOAPMessageQueue getSOAPRequestQueue() - { - return soapRequestQueue_; - } - - public final SOAPMessageQueue getSOAPResponseQueue() - { - return soapResponseQueue_; - } - - public final Node getOperationNode() - { - return operationNode_; - } - - public final void setOperationNode(Node operationNode) - { - operationNode_ = operationNode; - } - - public final String getSOAPEnvelopeXMLLink(int soapEnvelopeType) - { - StringBuffer link = new StringBuffer("wsdl/soap_envelope_xml.jsp?"); - link.append(WSDLActionInputs.SOAP_ENVELOPE_TYPE).append('=').append(soapEnvelopeType); - return link.toString(); - } - - public final String getBindingTypeString(int bindingType) - { - switch (bindingType) - { - case BindingTypes.SOAP: - return getMessage("FORM_LABEL_BINDING_TYPE_SOAP"); - case BindingTypes.HTTP_GET: - return getMessage("FORM_LABEL_BINDING_TYPE_HTTP_GET"); - case BindingTypes.HTTP_POST: - return getMessage("FORM_LABEL_BINDING_TYPE_HTTP_POST"); - default: - return getMessage("FORM_LABEL_BINDING_TYPE_UNSUPPORTED"); - } - } -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceDetailsTool.java deleted file mode 100644 index 457fe9b61..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceDetailsTool.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class WSDLServiceDetailsTool extends DetailsTool { - - public WSDLServiceDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, alt, "wsdl/forms/WSDLServiceDetailsForm.jsp"); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceNode.java deleted file mode 100644 index ae9268678..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceNode.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLModelConstants; - -// WSDL service node for the WSDL Navigator Tree View -public class WSDLServiceNode extends WSDLNavigatorNode -{ - public WSDLServiceNode(TreeElement element,NodeManager nodeManager,int nodeDepth) - { - super(element,nodeManager,nodeDepth,"wsdl/images/wsdl_service_node.gif"); - element.addListener(new ElementAdapter() - { - public void relAdded(RelAddEvent event) - { - String rel = event.getOutBoundRelName(); - if (rel.equals(WSDLModelConstants.REL_WSDL_BINDING)) { - WSDLBindingNode wsdlBindingNode = new WSDLBindingNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(wsdlBindingNode); - } - } - - public void relRemoved(RelRemoveEvent event) - { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(WSDLModelConstants.REL_WSDL_BINDING)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(WSDLModelConstants.REL_WSDL_BINDING)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - setVisibilityOfChildren(false); - } - - protected final void initTools() - { - Controller controller = nodeManager_.getController(); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - new WSDLServiceDetailsTool(toolManager_, wsdlPerspective.getMessage("ALT_WSDL_SERVICE_DETAILS")); - } - -} |