diff options
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl')
108 files changed, 0 insertions, 7273 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp deleted file mode 100644 index 9b758e886..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp +++ /dev/null @@ -1,29 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.ClearWSDLAction"%> - -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -ClearWSDLAction action = new ClearWSDLAction(controller); - -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); - -// Run the action and obtain the return code (fail/success). -boolean actionResult = action.execute(); -%> -<%@ include file="/actions/ClearNodeAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp deleted file mode 100644 index 678eeb2ac..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp +++ /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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.CreateInstanceAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <% - CreateInstanceAction action = new CreateInstanceAction(controller); - action.populatePropertyTable(request); - action.execute(); - %> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - </script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp deleted file mode 100644 index 449c9ef89..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp +++ /dev/null @@ -1,42 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <% - // Prepare the action. - InvokeWSDLHttpGetOperationFormAction action = new InvokeWSDLHttpGetOperationFormAction(controller); - - // Load the parameters for the action from the servlet request. - boolean inputsValid = action.populatePropertyTable(request); - - if (inputsValid) - { - boolean actionResult = action.execute(); - } - %> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp deleted file mode 100644 index d3f4e5253..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp +++ /dev/null @@ -1,42 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <% - // Prepare the action. - InvokeWSDLHttpPostOperationFormAction action = new InvokeWSDLHttpPostOperationFormAction(controller); - - // Load the parameters for the action from the servlet request. - boolean inputsValid = action.populatePropertyTable(request); - - if (inputsValid) - { - boolean actionResult = action.execute(); - } - %> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp deleted file mode 100644 index b44fe049f..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp +++ /dev/null @@ -1,138 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.MessageQueue, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLActionInputs, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.transport.HTTPException, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.transport.HTTPTransport, - sun.misc.BASE64Decoder, - javax.servlet.http.HttpServletResponse"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -InvokeWSDLSOAPOperationFormAction action = new InvokeWSDLSOAPOperationFormAction(controller); -String httpBasicAuthData = request.getHeader(HTTPTransport.HTTP_HEADER_AUTH); -if (httpBasicAuthData != null && httpBasicAuthData.length() > 0) -{ - int basicIndex = httpBasicAuthData.indexOf(HTTPTransport.BASIC); - if (basicIndex != -1) - { - BASE64Decoder decoder = new BASE64Decoder(); - httpBasicAuthData = new String(decoder.decodeBuffer(httpBasicAuthData.substring(basicIndex + HTTPTransport.BASIC.length() + 1))); - int colonIndex = httpBasicAuthData.indexOf(HTTPTransport.COLON); - if (colonIndex != -1) - { - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_USERNAME, httpBasicAuthData.substring(0, colonIndex)); - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_PASSWORD, httpBasicAuthData.substring(colonIndex + 1, httpBasicAuthData.length())); - } - } -} - -// Load the parameters for the action from the servlet request. -boolean inputsValid = action.populatePropertyTable(request); -if (!inputsValid) -{ -%> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> -<% -} -else -{ - try - { - // Run the action and obtain the return code (fail/success). - boolean actionResult = action.execute(); -%> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - <% - if (actionResult) - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_result_content.jsp"))%>"; - <% - } - else - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - <% - } - %> - </script> - </body> - </html> -<% - } - catch (HTTPException httpe) - { - int code = httpe.getStatusCode(); - if (code == HttpServletResponse.SC_UNAUTHORIZED) - { - response.setStatus(code); - response.setHeader(HTTPTransport.HTTP_HEADER_CONTENT_LENGTH, String.valueOf(0)); - String wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH.toLowerCase()); - if (wwwAuthData == null) - wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH); - if (wwwAuthData == null) - wwwAuthData = HTTPTransport.BASIC; - response.setHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH, wwwAuthData); - } - else - { - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - MessageQueue messageQueue = wsdlPerspective.getMessageQueue(); - messageQueue.addMessage(controller.getMessage("MSG_ERROR_UNEXPECTED")); - messageQueue.addMessage(String.valueOf(code)); - messageQueue.addMessage(httpe.getStatusMessage()); - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp deleted file mode 100644 index a907688f4..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp +++ /dev/null @@ -1,172 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLActionInputs, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.transport.HTTPException, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.transport.HTTPTransport, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - sun.misc.BASE64Decoder, - javax.servlet.http.HttpServletResponse, - javax.wsdl.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -InvokeWSDLSOAPOperationSourceAction action = new InvokeWSDLSOAPOperationSourceAction(controller); - -// Load the parameters for the action from the servlet request. -boolean inputsValid = action.populatePropertyTable(request); - -if (action.wasSaveAsSelected()) -{ - // write to file system - response.setContentType("application/octet-stream"); - response.setHeader("Content-Disposition","attachment;filename="+action.getDefaultSaveAsFileName()); - action.writeSourceContent(response.getOutputStream()); -} -else -{ - if (!inputsValid) - { - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - else - { - if (action.wasNewFileSelected()) - { - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - else - { - String httpBasicAuthData = request.getHeader(HTTPTransport.HTTP_HEADER_AUTH); - if (httpBasicAuthData != null && httpBasicAuthData.length() > 0) - { - int basicIndex = httpBasicAuthData.indexOf(HTTPTransport.BASIC); - if (basicIndex != -1) - { - BASE64Decoder decoder = new BASE64Decoder(); - httpBasicAuthData = new String(decoder.decodeBuffer(httpBasicAuthData.substring(basicIndex + HTTPTransport.BASIC.length() + 1))); - int colonIndex = httpBasicAuthData.indexOf(HTTPTransport.COLON); - if (colonIndex != -1) - { - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_USERNAME, httpBasicAuthData.substring(0, colonIndex)); - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_PASSWORD, httpBasicAuthData.substring(colonIndex + 1, httpBasicAuthData.length())); - } - } - } - try - { - // Run the action and obtain the return code (fail/success). - boolean actionResult = action.execute(); - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - <% - if (actionResult) - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_result_content.jsp"))%>"; - <% - } - else - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - <% - } - %> - </script> - </body> - </html> -<% - } - catch (HTTPException httpe) - { - int code = httpe.getStatusCode(); - if (code == HttpServletResponse.SC_UNAUTHORIZED) - { - response.setStatus(code); - response.setHeader(HTTPTransport.HTTP_HEADER_CONTENT_LENGTH, String.valueOf(0)); - String wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH.toLowerCase()); - if (wwwAuthData == null) - wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH); - if (wwwAuthData == null) - wwwAuthData = HTTPTransport.BASIC; - response.setHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH, wwwAuthData); - } - else - { - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - MessageQueue messageQueue = wsdlPerspective.getMessageQueue(); - messageQueue.addMessage(controller.getMessage("MSG_ERROR_UNEXPECTED")); - messageQueue.addMessage(String.valueOf(code)); - messageQueue.addMessage(httpe.getStatusMessage()); - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - } - } - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp deleted file mode 100644 index b23ad7792..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp +++ /dev/null @@ -1,58 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.OpenWSDLAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> - </script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - // Prepare the action. - OpenWSDLAction action = new OpenWSDLAction(controller); - - // Load the parameters for the action from the servlet request. - boolean inputsValid = action.populatePropertyTable(request); - if (!inputsValid) { -%> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> -<% - } - else { - // Run the action and obtain the return code (fail/success). - boolean actionResult = action.execute(); -%> - <script language="javascript"> - if (isMicrosoftInternetExplorer()) { - wsdlNavigatorContent.location="<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_navigator_content.jsp"))%>"; - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - } - else { - perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_perspective_content.jsp"))%>"; - } - </script> -<% - } -%> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp deleted file mode 100644 index 81fc7f7df..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp +++ /dev/null @@ -1,73 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.RefreshWSDLAction, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.ClearWSDLAction, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<% -// Prepare the action. -RefreshWSDLAction action = new RefreshWSDLAction(controller); - -// The action may be executed via program link. -boolean paramsValid = action.populatePropertyTable(request); -if (paramsValid) { - int nodeID = Integer.parseInt((String)action.getPropertyTable().get(ActionInputs.NODEID)); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - NodeManager nodeManager = wsdlPerspective.getNodeManager(); - Node wsdlNode = nodeManager.getNode(nodeID); - - // Run the action. - boolean actionResult = action.execute(); - - if (actionResult) { - %> - <script language="javascript"> - if (isMicrosoftInternetExplorer()) { - wsdlNavigatorContent.location="<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_navigator_content.jsp"))%>"; - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - } - else { - perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_perspective_content.jsp"))%>"; - } - </script> - <% - } - else { - %> - <script language="javascript"> - if (confirm("<%=HTMLUtils.JSMangle(wsdlPerspective.getMessage("MSG_QUESTION_REMOVE_WSDL_NODE", wsdlNode.getNodeName()))%>")) - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearWSDLAction.getActionLink(nodeID)))%>"; - else { - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - } - </script> - <% - } -} -%> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp deleted file mode 100644 index 1fbaf5b32..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp +++ /dev/null @@ -1,54 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - // Create the action. - ResizeWSDLFramesAction action = new ResizeWSDLFramesAction(controller); - - // Populate the action with the request properties. - boolean result = action.populatePropertyTable(request); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<jsp:include page="/wsdl/scripts/wsdlframesets.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - if (result) - { - action.execute(false); - - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<script language="javascript"> - if (isMicrosoftInternetExplorer()) - { - var perspectiveContentFrameset = getPerspectiveContentFrameset(); - var actionsContainerFrameset = getActionsContainerFrameset(); - perspectiveContentFrameset.setAttribute("cols","<%=wsdlPerspective.getPerspectiveContentFramesetCols()%>"); - actionsContainerFrameset.setAttribute("rows","<%=wsdlPerspective.getActionsContainerFramesetRows()%>"); - } - else - perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_perspective_content.jsp"))%>"; -</script> -<% - } -%> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp deleted file mode 100644 index e61449d40..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp +++ /dev/null @@ -1,33 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLNavigatorNodeAction" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -SelectWSDLNavigatorNodeAction action = new SelectWSDLNavigatorNodeAction(controller); - -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); - -// Run the action and obtain the return code (fail/success). -boolean actionResult = action.execute(); - -// Determine if the action was added to the history list. -boolean isAddedToHistory = action.isAddedToHistory(); -%> -<%@ include file="/actions/SelectNodeAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp deleted file mode 100644 index 147641419..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp +++ /dev/null @@ -1,33 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -SelectWSDLPropertiesToolAction action = new SelectWSDLPropertiesToolAction(controller); - -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); - -// Run the action and obtain the return code (fail/success). -boolean actionResult = action.execute(); - -// Determine if the action was added to the history list. -boolean isAddedToHistory = action.isAddedToHistory(); -%> -<%@ include file="/actions/SelectNodeToolAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp deleted file mode 100644 index 901c76648..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp +++ /dev/null @@ -1,30 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action -SwitchPerspectiveFromWSDLAction action = new SwitchPerspectiveFromWSDLAction(controller); - -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); - -// Run the action and obtain the return code (fail/success). -boolean actionResult = action.execute(); - -// Determine if the action was added to the history list. -boolean isAddedToHistory = action.isAddedToHistory(); -%> -<jsp:include page="/scripts/switchperspective.jsp" flush="true"/> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp deleted file mode 100644 index 11d64a006..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp +++ /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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -if (wsdlPerspective.getStatusContentType() == WSDLPerspective.STATUS_CONTENT_RESULT_FORM) - wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_RESULT_SOURCE); -else - wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_RESULT_FORM); -%> -<script language="javascript"> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_result_content.jsp"))%>"; -</script> - -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp deleted file mode 100644 index 46138b269..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp +++ /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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLDetailsTool"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node wsdlNode = wsdlPerspective.getNodeManager().getSelectedNode(); -WSDLDetailsTool wsdlDetailsTool = (WSDLDetailsTool)wsdlNode.getToolManager().getSelectedTool(); -wsdlDetailsTool.toggleViewId(); -%> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; -</script> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp deleted file mode 100644 index 6911ceb0f..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp +++ /dev/null @@ -1,38 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.InvokeWSDLOperationTool"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -InvokeWSDLOperationTool invokeWSDLOperationTool = (InvokeWSDLOperationTool)controller.getWSDLPerspective().getNodeManager().getSelectedNode().getCurrentToolManager().getSelectedTool(); -if (invokeWSDLOperationTool.getFragmentViewID().equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM)) - invokeWSDLOperationTool.setFragmentViewID(FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE); -else - invokeWSDLOperationTool.setFragmentViewID(FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM); -%> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; -</script> - -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp deleted file mode 100644 index dca68ff91..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp +++ /dev/null @@ -1,56 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SynchronizeFragmentViewsAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -SynchronizeFragmentViewsAction action = new SynchronizeFragmentViewsAction(controller); -boolean paramValid = action.populatePropertyTable(request); -String viewID = (String)action.getPropertyTable().get(FragmentConstants.FRAGMENT_VIEW_ID); -boolean sourceToForm = viewID.equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM); -if (sourceToForm) { - if (paramValid) { -%> - <script language="javascript"> - if (!confirm("<%=controller.getWSDLPerspective().getMessage("MSG_QUESTION_SYNC_VIEWS")%>")) - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp"))%>"; - </script> -<% - } - else { -%> - <script language="javascript"> - if (!confirm("<%=controller.getWSDLPerspective().getMessage("MSG_QUESTION_SYNC_VIEWS_DESPITE_INVALID_SOURCE_CONTENT")%>")) - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp"))%>"; - </script> -<% - } -} -action.execute(); -%> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; -</script> - -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp deleted file mode 100644 index 1e586d042..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp +++ /dev/null @@ -1,33 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -ToggleWSDLNavigatorNodeAction action = new ToggleWSDLNavigatorNodeAction(controller); - -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); - -// Run the action and obtain the return code (fail/success). -boolean actionResult = action.execute(); - -// Determine if the action was added to the history list. -boolean isAddedToHistory = action.isAddedToHistory(); -%> -<%@ include file="/actions/ToggleNodeAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/UpdateWSDLBindingActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/UpdateWSDLBindingActionJSP.jsp deleted file mode 100644 index 11b1a24a5..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/UpdateWSDLBindingActionJSP.jsp +++ /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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.UpdateWSDLBindingAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - UpdateWSDLBindingAction action = new UpdateWSDLBindingAction(controller); - action.populatePropertyTable(request); - action.execute(); -%> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp deleted file mode 100644 index fb8c8d123..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp +++ /dev/null @@ -1,40 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLAddToFavoritesAction"%> - - -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -WSDLAddToFavoritesAction action = new WSDLAddToFavoritesAction(controller); - -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); - -// Run the action and obtain the return code (fail/success). -boolean actionResult = action.execute(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp deleted file mode 100644 index b83258bc2..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp +++ /dev/null @@ -1,65 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - java.util.*" %> - - -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> - -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<form action="<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/WSDLAddToFavoritesActionJSP.jsp"))%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>"> -<% -Enumeration paramNames = request.getParameterNames(); -while (paramNames.hasMoreElements()) { - String paramName = (String)paramNames.nextElement(); - String[] paramValues = request.getParameterValues(paramName); - for (int i = 0; i < paramValues.length; i++) { -%> - <input type="hidden" name="<%=paramName%>" value="<%=paramValues[i]%>"> -<% - } -} -%> -</form> -</body> -</html> - -<% -// Prepare the action. -WSDLAddToFavoritesAction action = new WSDLAddToFavoritesAction(controller); -// Load the parameters for the action from the servlet request. -action.populatePropertyTable(request); -if (action.favoriteExists()) { -%> - <script language="javascript"> - if (confirm("<%=HTMLUtils.JSMangle(controller.getWSDLPerspective().getMessage("MSG_QUESTION_OVERWRITE_FAVORITES"))%>")) - document.forms[0].submit(); - </script> -<% -} -else { -%> - <script language="javascript"> - document.forms[0].submit(); - </script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp deleted file mode 100644 index 0df02da62..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp +++ /dev/null @@ -1,23 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLImportWSDLToFileSystemAction, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.actions.*, - java.io.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -WSDLImportWSDLToFileSystemAction action = new WSDLImportWSDLToFileSystemAction(controller); -%> -<%@ include file="/actions/ImportToFileSystemAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp deleted file mode 100644 index d02382edc..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp +++ /dev/null @@ -1,22 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLImportWSDLToWorkbenchAction, - org.eclipse.wst.ws.internal.explorer.platform.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -WSDLImportWSDLToWorkbenchAction action = new WSDLImportWSDLToWorkbenchAction(controller); -%> -<%@ include file="/actions/ImportToWorkbenchAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp deleted file mode 100644 index 8f8760f34..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp +++ /dev/null @@ -1,19 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLLaunchWebServiceWizardAction" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -WSDLLaunchWebServiceWizardAction action = new WSDLLaunchWebServiceWizardAction(controller); -%> -<%@ include file="/actions/LaunchWebServiceWizardAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsFormView.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsFormView.jsp deleted file mode 100644 index 3f2d2e65d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsFormView.jsp +++ /dev/null @@ -1,43 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.xsd.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - javax.wsdl.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getSelectedNode(); -nodeID.delete(0, nodeID.length()); -nodeID.append(selectedNode.getNodeId()); -InvokeWSDLOperationTool invokeWSDLOperationTool = (InvokeWSDLOperationTool)(selectedNode.getCurrentToolManager().getSelectedTool()); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -Iterator it = operElement.getOrderedBodyParts().iterator(); -while (it.hasNext()) { - Part part = (Part)it.next(); - IXSDFragment frag = operElement.getFragment(part); - fragID.delete(0, fragID.length()); - fragID.append(frag.getID()); - %> - <jsp:include page="<%=frag.getWriteFragment()%>" flush="true"/> - <% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsSoapView.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsSoapView.jsp deleted file mode 100644 index 9b190efdd..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsSoapView.jsp +++ /dev/null @@ -1,316 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.util.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.w3c.dom.*, - javax.wsdl.*, - javax.wsdl.extensions.ExtensibilityElement, - javax.wsdl.extensions.soap.SOAPBody, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - WSDLOperationElement operElement = (WSDLOperationElement)(wsdlPerspective.getNodeManager().getSelectedNode().getTreeElement()); - Operation oper = operElement.getOperation(); - Iterator it = operElement.getOrderedBodyParts().iterator(); - StringBuffer sourceContent = new StringBuffer(); - String cachedSourceContent = operElement.getPropertyAsString(WSDLModelConstants.PROP_SOURCE_CONTENT); - Hashtable soapEnvelopeNamespaceTable = new Hashtable(); - SoapHelper.addDefaultSoapEnvelopeNamespaces(soapEnvelopeNamespaceTable); - if (cachedSourceContent != null) - { - sourceContent.append(cachedSourceContent); - String[] nsDeclarations = (String[])operElement.getPropertyAsObject(WSDLModelConstants.PROP_SOURCE_CONTENT_NAMESPACE); - if (nsDeclarations != null) - { - for (int i = 0; i < nsDeclarations.length; i++) - { - String[] prefix_ns = SoapHelper.decodeNamespaceDeclaration(nsDeclarations[i]); - if (!soapEnvelopeNamespaceTable.contains(prefix_ns[1])) - soapEnvelopeNamespaceTable.put(prefix_ns[1], prefix_ns[0]); - } - } - } - else - { - while (it.hasNext()) - { - Part part = (Part)it.next(); - IXSDFragment frag = operElement.getFragment(part); - Element[] instanceDocuments = frag.genInstanceDocumentsFromParameterValues(!operElement.isUseLiteral(), soapEnvelopeNamespaceTable, XMLUtils.createNewDocument(null)); - for (int i = 0; i < instanceDocuments.length; i++) - { - sourceContent.append(XMLUtils.serialize(instanceDocuments[i], true)); - sourceContent.append(HTMLUtils.LINE_SEPARATOR); - } - } - } - - Enumeration enum = soapEnvelopeNamespaceTable.keys(); - while (enum.hasMoreElements()) - { - String uri = (String)enum.nextElement(); - String prefix = (String)soapEnvelopeNamespaceTable.get(uri); - String value = SoapHelper.encodeNamespaceDeclaration(prefix, uri); - %> - <input type="hidden" name="<%=FragmentConstants.SOURCE_CONTENT_NAMESPACE%>" value="<%=value%>"> - <% - } -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td height=30 valign="bottom" class="labels"> -<% - Document doc = XMLUtils.createNewDocument(null); - Element soapEnvelopeElement = SoapHelper.createSoapEnvelopeElement(doc,soapEnvelopeNamespaceTable); - StringBuffer header = new StringBuffer("<"); - header.append(soapEnvelopeElement.getTagName()); - NamedNodeMap attributes = soapEnvelopeElement.getAttributes(); - int numberOfAttributes = attributes.getLength(); - if (numberOfAttributes == 0) - header.append('>'); -%> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - for (int i=0;i<numberOfAttributes;i++) - { - header.setLength(0); - Node attrNode = attributes.item(i); - header.append(attrNode.getNodeName()).append("=\"").append(attrNode.getNodeValue()).append('\"'); - if (i == numberOfAttributes-1) - header.append('>'); -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td width=8> - <img width=8 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - } - - Element soapBodyElement = SoapHelper.createSoapBodyElement(doc); - header.setLength(0); - header.append('<').append(soapBodyElement.getTagName()); - attributes = soapBodyElement.getAttributes(); - numberOfAttributes = attributes.getLength(); - if (numberOfAttributes == 0) - header.append('>'); -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td width=8> - <img width=8 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - for (int i=0;i<numberOfAttributes;i++) - { - header.setLength(0); - Node attrNode = attributes.item(i); - header.append(attrNode.getNodeName()).append("=\"").append(attrNode.getNodeValue()).append('\"'); - if (i == numberOfAttributes-1) - header.append('>'); -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td width=16> - <img width=16 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<table -<% - } - - Element wrapperElement = null; - if (!operElement.isDocumentStyle()) - { - // Must be RPC style. - String encodingNamespaceURI = null; - /* - * WS-I: In a rpc-literal SOAP binding, the serialized child element of the - * soap:Body element consists of a wrapper element, whose namespace is the value - * of the namespace attribute of the soapbind:body element and whose local name is - * either the name of the operation or the name of the operation suffixed - * with "Response". The namespace attribute is required, as opposed to being - * optional, to ensure that the children of the soap:Body element are namespace- - * qualified. - */ - BindingOperation bindingOperation = operElement.getBindingOperation(); - if (bindingOperation != null) - { - BindingInput bindingInput = bindingOperation.getBindingInput(); - if (bindingInput != null) - { - List extElements = bindingInput.getExtensibilityElements(); - for (Iterator extElementsIt = extElements.iterator(); extElementsIt.hasNext();) - { - ExtensibilityElement extElement = (ExtensibilityElement)extElementsIt.next(); - if (extElement instanceof SOAPBody) - { - encodingNamespaceURI = ((SOAPBody)extElement).getNamespaceURI(); - break; - } - } - } - } - // If the namespace of the soapbind:body element is not set, get it from the operation element - if (encodingNamespaceURI == null) - encodingNamespaceURI = operElement.getEncodingNamespace(); - // If the namespace of the operation element is not set, get it from the definition element - if (encodingNamespaceURI == null) - { - WSDLBindingElement bindingElement = (WSDLBindingElement)operElement.getParentElement(); - WSDLServiceElement serviceElement = (WSDLServiceElement)bindingElement.getParentElement(); - WSDLElement wsdlElement = (WSDLElement)serviceElement.getParentElement(); - Definition definition = wsdlElement.getDefinition(); - encodingNamespaceURI = definition.getTargetNamespace(); - } - // Generate an RPC style wrapper element. - String encodingStyle = (operElement.isUseLiteral() ? null : operElement.getEncodingStyle()); - wrapperElement = SoapHelper.createRPCWrapperElement(doc,soapEnvelopeNamespaceTable,encodingNamespaceURI,oper.getName(),encodingStyle); - header.setLength(0); - header.append('<').append(wrapperElement.getTagName()); - attributes = wrapperElement.getAttributes(); - numberOfAttributes = attributes.getLength(); - if (numberOfAttributes == 0) - header.append('>'); -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td width=16> - <img width=16 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - for (int i=0;i<numberOfAttributes;i++) - { - header.setLength(0); - Node attrNode = attributes.item(i); - header.append(attrNode.getNodeName()).append("=\"").append(attrNode.getNodeValue()).append('\"'); - if (i == numberOfAttributes-1) - header.append('>'); -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td width=24> - <img width=24 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - } - } - - int sourceContentIndentationImageWidth = 16; - if (wrapperElement != null) - sourceContentIndentationImageWidth += 8; -%> -<table border=0 cellpadding=3 cellspacing=3> - <tr> - <td width=<%=sourceContentIndentationImageWidth%>> - <img width=<%=sourceContentIndentationImageWidth%> height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="center" align="left" nowrap> - <input type="file" name="<%=WSDLActionInputs.SELECTED_FILE%>" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_SOAP_FILE")%>"> - </td> - <td valign="center" align="left" class="labels" nowrap> - <a href="javascript:showNewFileContents()"><%=wsdlPerspective.getMessage("BUTTON_LABEL_LOAD")%></a> - </td> - <td valign="center" align="left" class="labels" nowrap> - <a href="javascript:saveSourceContent()"><%=wsdlPerspective.getMessage("BUTTON_LABEL_SAVE_AS")%></a> - </td> - </tr> -</table> -<table width="95%" border=0 cellpadding=3 cellspacing=3> - <tr> - <td width=<%=sourceContentIndentationImageWidth%>> - <img width=<%=sourceContentIndentationImageWidth%> height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td width="100%"> - <textarea id="soap_body_content" name="<%=FragmentConstants.SOURCE_CONTENT%>" class="bigtextareaenter"><%=sourceContent.toString()%></textarea> - </td> - </tr> -</table> -<% - if (wrapperElement != null) - { - header.setLength(0); - header.append("</").append(wrapperElement.getTagName()).append('>'); -%> -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td width=16> - <img width=16 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - } - - header.setLength(0); - header.append("</").append(soapBodyElement.getTagName()).append('>'); -%> -<table width="95%" cellpadding=1 cellspacing=0> - <tr> - <td width=8> - <img width=8 height=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> -<% - header.setLength(0); - header.append("</").append(soapEnvelopeElement.getTagName()).append('>'); -%> -<table width="95%" cellpadding=1 cellspacing=0> - <tr> - <td valign="bottom" class="labels"> - <%=HTMLUtils.charactersToHTMLEntities(header.toString())%> - </td> - </tr> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/InvokeWSDLOperationForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/InvokeWSDLOperationForm.jsp deleted file mode 100644 index 938de2662..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/InvokeWSDLOperationForm.jsp +++ /dev/null @@ -1,164 +0,0 @@ -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - javax.wsdl.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> - -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node selectedNode = wsdlPerspective.getNodeManager().getSelectedNode(); - InvokeWSDLOperationTool invokeWSDLOperationTool = (InvokeWSDLOperationTool)(selectedNode.getCurrentToolManager().getSelectedTool()); - WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); - String fragmentViewID = invokeWSDLOperationTool.getFragmentViewID(); - int operationType = operElement.getOperationType(); - String invokeWSDLOperationURL = response.encodeURL(controller.getPathWithContext(invokeWSDLOperationTool.getFormActionLink(operationType,fragmentViewID))); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FORM_TITLE_INVOKE_WSDL_OPERATION")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -<jsp:include page="/scripts/formsubmit.jsp" flush="true"/> -<jsp:include page="/wsdl/scripts/fragmenttables.jsp" flush="true"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<script language="javascript"> - function showNewFileContents() - { - var form = document.forms[0]; - if (handleSubmit(form)) - { - form.<%=WSDLActionInputs.SUBMISSION_ACTION%>.value = "<%=WSDLActionInputs.SUBMISSION_ACTION_BROWSE_FILE%>"; - form.submit(); - form.<%=WSDLActionInputs.SUBMISSION_ACTION%>.value = "<%=invokeWSDLOperationURL%>"; - resetSubmission(); - } - } - - function saveSourceContent() - { - var form = document.forms[0]; - if (handleSubmit(form)) - { - form.<%=WSDLActionInputs.SUBMISSION_ACTION%>.value = "<%=WSDLActionInputs.SUBMISSION_ACTION_SAVE_AS%>"; - form.submit(); - form.<%=WSDLActionInputs.SUBMISSION_ACTION%>.value = "<%=invokeWSDLOperationURL%>"; - resetSubmission(); - } - } - - function closeChildWindows() - { - closeXSDInfoDialog(); - closeCalendarBrowser(); - } -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin" onUnload="closeChildWindows()"> -<div id="contentborder"> - <form action="<%=invokeWSDLOperationURL%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" enctype="multipart/form-data"> - <input type="hidden" name="<%=WSDLActionInputs.SUBMISSION_ACTION%>" value="<%=WSDLActionInputs.SUBMISSION_ACTION_FORM%>"> - <% - String titleImagePath = "wsdl/images/invoke_wsdl_operation_highlighted.gif"; - String title = wsdlPerspective.getMessage("ALT_INVOKE_WSDL_OPERATION"); - if (operationType == WSDLOperationElement.OPERATION_TYPE_SOAP) - { - %> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td> - <img src="<%=response.encodeURL(controller.getPathWithContext(titleImagePath))%>" alt=""> - <strong><%=title%></strong> - </td> - <td width="*"> </td> - <td align="right" class="labels"> -<% - if (fragmentViewID.equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE)) - { -%> - <a href="javascript:synchronizeFragmentViews('<%=FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM%>')" title="<%=wsdlPerspective.getMessage("ALT_SWITCH_TO_FORM_VIEW")%>"><%=wsdlPerspective.getMessage("FORM_LINK_FORM")%></a> -<% - } - else - { -%> - <a href="javascript:synchronizeFragmentViews('<%=FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE%>')" title="<%=wsdlPerspective.getMessage("ALT_SWITCH_TO_SOURCE_VIEW")%>"><%=wsdlPerspective.getMessage("FORM_LINK_SOURCE")%></a> -<% - } -%> - </td> - </tr> - <tr> - <td height=20 colspan=3><img height=2 width="100%" align="top" src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>"></td> - </tr> -</table> - <% - } - else - { - %> - <%@ include file = "/forms/formheader.inc" %> - <% - } - %> - <table> - <tr> - <td class="labels"> - <%=wsdlPerspective.getMessage("FORM_LABEL_INVOKE_WSDL_OPERATION_DESC")%> - </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td> - <fieldset class="keylinefieldset"> - <legend class="labels"> - <label for="<%=WSDLActionInputs.END_POINT%>"><%=wsdlPerspective.getMessage("FORM_LABEL_END_POINTS")%></label> - </legend> - <table border=0 cellpadding=10 cellspacing=0> - <tr> - <td> - <select id="<%=WSDLActionInputs.END_POINT%>" name="<%=WSDLActionInputs.END_POINT%>" class="selectlist"> - <% - WSDLBindingElement bindingElement = (WSDLBindingElement)operElement.getParentElement(); - String[] endPoints = bindingElement.getEndPoints(); - String currEndPoint = invokeWSDLOperationTool.getEndPoint(); - for (int i = 0; i < endPoints.length; i++) - { - %> - <option value="<%=endPoints[i]%>" <%if (endPoints[i].equals(currEndPoint)) {%>selected<%}%>><%=endPoints[i]%> - <% - } - %> - </select> - </td> - </tr> - </table> - </fieldset> - </td> - </tr> - </table> - <% - if (fragmentViewID.equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE)) - { - %> -<jsp:include page="/wsdl/forms/FragmentsSoapView.jsp" flush="true"/> - <% - } - else - { - %> -<jsp:include page="/wsdl/forms/FragmentsFormView.jsp" flush="true"/> - <% - } - %> - <jsp:include page="/forms/simpleCommon_table.jsp" flush="true"/> - </form> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/OpenWSDLForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/OpenWSDLForm.jsp deleted file mode 100644 index 1b0a05784..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/OpenWSDLForm.jsp +++ /dev/null @@ -1,81 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.util.HTMLUtils" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - FormTool formTool = (FormTool)wsdlPerspective.getNodeManager().getSelectedNode().getToolManager().getSelectedTool(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FORM_TITLE_OPEN_WSDL")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<jsp:include page="/scripts/formsubmit.jsp" flush="true"/> -<jsp:include page="/scripts/formutils.jsp" flush="true"/> -<jsp:include page="/scripts/wsdlbrowser.jsp" flush="true"/> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin" onUnload="closeWSDLBrowser()"> -<div id="contentborder"> - <form action="<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/OpenWSDLActionJSP.jsp"))%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" enctype="multipart/form-data" onSubmit="return handleSubmit(this)"> - <% - String titleImagePath = "wsdl/images/open_wsdl_highlighted.gif"; - String title = wsdlPerspective.getMessage("ALT_OPEN_WSDL"); - %> - <%@ include file = "/forms/formheader.inc" %> - <table> - <tr> - <td class="labels"> - <%=wsdlPerspective.getMessage("FORM_LABEL_OPEN_WSDL_DESC")%> - </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td class="labels" height=25 valign="bottom" nowrap> - <label for="input_wsdl_url"><%=controller.getMessage("FORM_LABEL_WSDL_URL")%></label> - <% - if (!formTool.isInputValid(ActionInputs.QUERY_INPUT_WSDL_URL)) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - String wsdlUrl = (String)formTool.getProperty(ActionInputs.QUERY_INPUT_WSDL_URL); - if (wsdlUrl == null) - wsdlUrl = ""; - %> - </td> - <td height=25 valign="bottom" nowrap> - <a href="javascript:openWSDLBrowser('contentborder',<%=ActionInputs.WSDL_TYPE_SERVICE%>)"><%=controller.getMessage("FORM_LINK_BROWSE")%></a> - </td> - <td width="90%"> </td> - </tr> - <tr> - <td colspan=3> - <input type="text" id="input_wsdl_url" name="<%=ActionInputs.QUERY_INPUT_WSDL_URL%>" value="<%=wsdlUrl%>" size="50" class="textenter"> - </td> - </tr> - </table> -<jsp:include page="/forms/simpleCommon_table.jsp" flush="true"/> - </form> -</div> -<script language="javascript"> - closeWSDLBrowser(); -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ProcessWSDLFramesetsForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ProcessWSDLFramesetsForm.jsp deleted file mode 100644 index 3e52f4d3d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ProcessWSDLFramesetsForm.jsp +++ /dev/null @@ -1,27 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<jsp:useBean id="formAction" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="formFrameName" class="java.lang.StringBuffer" scope="request"/> -<form action="<%=response.encodeURL(controller.getPathWithContext(formAction.toString()))%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" enctype="multipart/form-data" style="margin-top:0;margin-bottom:0"> - <input name="<%=ActionInputs.FRAME_NAME%>" type="hidden" value="<%=formFrameName%>"> - <input name="<%=WSDLActionInputs.FRAMESET_COLS_PERSPECTIVE_CONTENT%>" type="hidden" value="<%=wsdlPerspective.getPerspectiveContentFramesetCols()%>"> - <input name="<%=WSDLActionInputs.FRAMESET_ROWS_ACTIONS_CONTAINER%>" type="hidden" value="<%=wsdlPerspective.getActionsContainerFramesetRows()%>"> -</form> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsFormView.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsFormView.jsp deleted file mode 100644 index c8a8c4388..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsFormView.jsp +++ /dev/null @@ -1,222 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.xsd.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.impl.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.w3c.dom.*, - javax.wsdl.*, - javax.xml.parsers.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<%! -private Element soapResponse_ = null; - -private Element[] parseSOAPResponse(SOAPMessageQueue soapMessageQueue, WSDLOperationElement operElement) -{ - String messages = soapMessageQueue.getMessagesFromList(); - try - { - soapResponse_ = XMLUtils.stringToElement(messages, true); - NodeList nl = soapResponse_.getElementsByTagNameNS(FragmentConstants.URI_SOAP_ENV, FragmentConstants.QNAME_LOCAL_NAME_BODY); - if (nl.getLength() > 0) - { - Element soapBody = (Element)nl.item(0); - NodeList soapFault = soapBody.getElementsByTagNameNS(FragmentConstants.URI_SOAP_ENV, FragmentConstants.QNAME_LOCAL_NAME_FAULT); - if (soapFault.getLength() > 0) - return new Element[0]; - NodeList instanceList; - if (operElement.isDocumentStyle()) - instanceList = soapBody.getChildNodes(); - else - { - NodeList rpcWrapper = soapBody.getElementsByTagNameNS("*", operElement.getOperation().getOutput().getMessage().getQName().getLocalPart()); - - /* - * HACK - Some of the web services out on the internet do not - * set their RPC wrapper properly. It should be set to the output - * message name of the selected operation. The hack is to - * assume the first element inside the body element is the - * RPC wrapper. - */ - if (rpcWrapper.getLength() <= 0) - rpcWrapper = soapBody.getElementsByTagNameNS("*", "*"); - - if (rpcWrapper.getLength() > 0) - instanceList = rpcWrapper.item(0).getChildNodes(); - else - return null; - } - return fixSOAPResponse(instanceList, operElement); - } - } - catch (Throwable t) { - t.printStackTrace(); - } - return null; -} - -/* -* HACK - The root element tag name of the instance document -* is ambiguous. It lands on a very grey area between the SOAP -* spec and the WSDL spec. The two specs do not explicitly define -* that the root element tag name must match the name of the -* WSDL part. The hack is to treat elements with different tag names -* as instances of the WSDL part. -*/ -private Element[] fixSOAPResponse(NodeList instanceList, WSDLOperationElement operElement) -{ - Vector instanceVector = new Vector(); - for (int i = 0; i < instanceList.getLength(); i++) - { - Object object = instanceList.item(i); - if (object != null && (object instanceof Element)) - instanceVector.add(object); - } - Element[] instanceDocuments = new Element[instanceVector.size()]; - Operation oper = operElement.getOperation(); - Map partsMap = oper.getOutput().getMessage().getParts(); - if (partsMap.size() == 1) - { - Iterator it = partsMap.values().iterator(); - IXSDFragment frag = operElement.getFragment((Part)it.next(), false); - for (int i = 0; i < instanceVector.size(); i++) - { - Element element = (Element)instanceVector.get(i); - if (!element.getTagName().equals(frag.getName())) - { - Document doc = element.getOwnerDocument(); - NodeList children = element.getChildNodes(); - NamedNodeMap attributes = element.getAttributes(); - element = doc.createElement(frag.getName()); - for (int j = 0; j < children.getLength(); j++) - { - if (children.item(j) != null) - { - element.appendChild(children.item(j)); - // When you append a node from one element to another, - // the original element will lose its reference to this node, - // therefore, the size of the node list will decrease by 1. - j--; - } - } - for (int j = 0; j < attributes.getLength(); j++) - { - Object attr = attributes.item(j); - if (attr != null && (attr instanceof Attr)) - { - Attr attribute = (Attr)attr; - element.setAttribute(attribute.getName(), attribute.getValue()); - } - } - } - instanceDocuments[i] = element; - } - } - else - instanceVector.copyInto(instanceDocuments); - return instanceDocuments; -} -%> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_RESULT_FORM); -Node operNode = wsdlPerspective.getOperationNode(); -nodeID.delete(0, nodeID.length()); -nodeID.append(operNode.getNodeId()); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -Operation oper = operElement.getOperation(); -if (oper.getOutput() == null) -{ -%> - <table width="95%" border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" class="labels"> - <%=wsdlPerspective.getMessage("FORM_LABEL_NOTHING_TO_DISPLAY_IN_FORM_VIEW")%> - </td> - </tr> - </table> -<% -} -else -{ - boolean cached = ((Boolean)operElement.getPropertyAsObject(WSDLActionInputs.SOAP_RESPONSE_CACHED)).booleanValue(); - Element[] instanceDocuments = null; - if (!cached) - { - SOAPMessageQueue soapMessageQueue = wsdlPerspective.getSOAPResponseQueue(); - instanceDocuments = parseSOAPResponse(soapMessageQueue, operElement); - } - if (!cached && instanceDocuments == null) - { - %> - <table width="95%" border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" class="labels"> - <%=wsdlPerspective.getMessage("FORM_LABEL_SOAP_RESPONSE_FAILED_VALIDATION_IN_FORM_VIEW")%> - </td> - </tr> - </table> - <% - } - else if (!cached && instanceDocuments.length <= 0) - { - %> - <table width="95%" border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" class="labels"> - <%=wsdlPerspective.getMessage("FORM_LABEL_NOTHING_TO_DISPLAY_IN_FORM_VIEW")%> - </td> - </tr> - </table> - <% - } - else - { - Map partsMap = oper.getOutput().getMessage().getParts(); - Iterator it = partsMap.values().iterator(); - Hashtable uriReferences = null; - while (it.hasNext()) - { - IXSDFragment fragment = operElement.getFragment((Part)it.next(), false); - if (!cached) - { - if (!operElement.isUseLiteral() && (fragment instanceof ISOAPEncodingWrapperFragment)) - { - if (uriReferences == null) - uriReferences = SOAPEncodingWrapperFragment.parseURIReferences(soapResponse_, true); - ((ISOAPEncodingWrapperFragment)fragment).setURIReferences(uriReferences); - } - fragment.setParameterValuesFromInstanceDocuments(instanceDocuments); - } - fragID.delete(0, fragID.length()); - fragID.append(fragment.getID()); - %> - <jsp:include page="<%=fragment.getReadFragment()%>" flush="true"/> - <% - } - operElement.setPropertyAsObject(WSDLActionInputs.SOAP_RESPONSE_CACHED, new Boolean(true)); - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsSoapView.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsSoapView.jsp deleted file mode 100644 index 80c36875e..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsSoapView.jsp +++ /dev/null @@ -1,114 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.WSDLOperationElement" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_RESULT_SOURCE); -Node operNode = wsdlPerspective.getOperationNode(); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -String soapRequestTableContainerId = "SOAPRequest"; -StringBuffer soapRequestTwistImageName = new StringBuffer("x"); -soapRequestTwistImageName.append(soapRequestTableContainerId); -String soapResponseTableContainerId = "SOAPResponse"; -StringBuffer soapResponseTwistImageName = new StringBuffer("x"); -soapResponseTwistImageName.append(soapResponseTableContainerId); -%> - -<script language="javascript"> - var sectionIds = ["<%=soapRequestTableContainerId%>","<%=soapResponseTableContainerId%>"]; - function toggleSOAPEnvelope(soapEnvelopeType,twistImageName) - { -<% - // If both envelopes are expanded, each should have 50% height. Otherwise, the remaining displayed envelope should be reset to 100% height. -%> - var soapSectionId = sectionIds[soapEnvelopeType]; - var soapSection = document.getElementById(soapSectionId); - var soapSectionTable = getTable(soapSectionId); - var otherSoapSectionId = sectionIds[1-soapEnvelopeType]; - var otherSoapSection = document.getElementById(otherSoapSectionId); - var otherSoapSectionTable = getTable(otherSoapSectionId); - if (soapSection.style.display == "none") - { - if (otherSoapSection.style.display == "") - { - soapSectionTable.height = "50%"; - otherSoapSectionTable.height = "50%"; - } - else - soapSectionTable.height = "100%"; - } - else - { - if (otherSoapSection.style.display == "") - otherSoapSectionTable.height = "100%"; - } - twist(soapSectionId,twistImageName); - } -</script> - -<table width="95%" border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" nowrap width=11><a href="javascript:toggleSOAPEnvelope(<%=WSDLActionInputs.SOAP_ENVELOPE_TYPE_REQUEST%>,'<%=soapRequestTwistImageName.toString()%>')"><img name="<%=soapRequestTwistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a></td> - <td height=20 valign="bottom" align="left" nowrap class="labels"> - <strong><%=wsdlPerspective.getMessage("FORM_LABEL_SOAP_REQUEST_ENVELOPE")%></strong> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<div id="<%=soapRequestTableContainerId%>" style="display:none"> - <table width="95%" height="50%" border=0 cellpadding=0 cellpadding=0> - <tr> - <td> - <iframe src="<%=response.encodeURL(controller.getPathWithContext(wsdlPerspective.getSOAPEnvelopeXMLLink(WSDLActionInputs.SOAP_ENVELOPE_TYPE_REQUEST)))%>" width="95%" height="100%"></iframe> - </td> - </tr> - </table> -</div> -<script language="javascript"> - twist("<%=soapRequestTableContainerId%>","<%=soapRequestTwistImageName.toString()%>"); -</script> - -<% -if (operElement.getOperation().getOutput() != null) -{ -%> -<table width="95%" border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" nowrap width=11><a href="javascript:toggleSOAPEnvelope(<%=WSDLActionInputs.SOAP_ENVELOPE_TYPE_RESPONSE%>,'<%=soapResponseTwistImageName.toString()%>')"><img name="<%=soapResponseTwistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a></td> - <td height=20 valign="bottom" align="left" nowrap class="labels"> - <strong><%=wsdlPerspective.getMessage("FORM_LABEL_SOAP_RESPONSE_ENVELOPE")%></strong> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<div id="<%=soapResponseTableContainerId%>" style="display:none"> - <table width="95%" height="50%" border=0 cellpadding=0 cellpadding=0> - <tr> - <td> - <iframe src="<%=response.encodeURL(controller.getPathWithContext(wsdlPerspective.getSOAPEnvelopeXMLLink(WSDLActionInputs.SOAP_ENVELOPE_TYPE_RESPONSE)))%>" width="95%" height="100%"></iframe> - </td> - </tr> - </table> -</div> -<script language="javascript"> - twist("<%=soapResponseTableContainerId%>","<%=soapResponseTwistImageName.toString()%>"); -</script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLBindingDetailsForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLBindingDetailsForm.jsp deleted file mode 100644 index 8647191ec..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLBindingDetailsForm.jsp +++ /dev/null @@ -1,111 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node bindingNode = wsdlPerspective.getNodeManager().getSelectedNode(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FORM_TITLE_WSDL_BINDING_DETAILS")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -<script language="javascript"> - var rowCheckboxName = "rowCheckboxName"; -</script> -<jsp:include page="/scripts/tables.jsp" flush="true"/> -<jsp:include page="/scripts/formsubmit.jsp" flush="true"/> -<jsp:include page="/scripts/formutils.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> -<form action="<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/UpdateWSDLBindingActionJSP.jsp"))%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" enctype="multipart/form-data" onSubmit="return handleSubmit(this)"> -<% - String titleImagePath = "wsdl/images/open_wsdl_highlighted.gif"; - String title = wsdlPerspective.getMessage("ALT_WSDL_BINDING_DETAILS"); - WSDLBindingElement wsdlBindingElement = (WSDLBindingElement)bindingNode.getTreeElement(); - Vector operationNodes = bindingNode.getChildNodes(); -%> -<%@ include file = "/forms/formheader.inc" %> -<input type="hidden" name="<%=ActionInputs.NODEID%>" value="<%=bindingNode.getNodeId()%>"> -<table> - <tr> - <td class="labels"><%=wsdlPerspective.getMessage("FORM_LABEL_BINDING_DETAILS_DESC",wsdlPerspective.getBindingTypeString(wsdlBindingElement.getBindingType()))%></td> - </tr> -</table> -<% - String documentation = wsdlBindingElement.getPropertyAsString(WSDLModelConstants.PROP_DOCUMENTATION); - if (documentation.length() > 0) - { -%> -<table> - <tr> - <td height=20 valign="bottom" class="labels"><%=documentation%></td> - </tr> - <tr> - <td height=10> </td> - </tr> -</table> -<% - } - - sectionHeaderInfo.clear(); - sectionHeaderInfo.setContainerId("Operations"); - sectionHeaderInfo.setOtherProperties(operationNodes); -%> -<jsp:include page="/wsdl/forms/operations_table.jsp" flush="true"/> -<% - if (operationNodes.size() > 0) - { -%> -<script language="javascript"> - twist("Operations","xOperations"); -</script> -<% - } - - sectionHeaderInfo.clear(); - sectionHeaderInfo.setContainerId("Endpoints"); - sectionHeaderInfo.setOtherProperties(wsdlBindingElement); -%> -<table> - <tr> - <td height=20> </td> - </tr> -</table> -<jsp:include page="/wsdl/forms/endpoint_table.jsp" flush="true"/> -<% - if (wsdlBindingElement.getEndPoints().length > 0) - { -%> -<script language="javascript"> - twistOpen("Endpoints"); -</script> -<% - } -%> -<jsp:include page="/forms/simpleCommon_table.jsp" flush="true"/> -</form> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsForm.jsp deleted file mode 100644 index eead075e0..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsForm.jsp +++ /dev/null @@ -1,104 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node wsdlNode = wsdlPerspective.getNodeManager().getSelectedNode(); - ToolManager currentToolManager = wsdlNode.getCurrentToolManager(); - WSDLDetailsTool wsdlDetailsTool = (WSDLDetailsTool)currentToolManager.getSelectedTool(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FORM_TITLE_WSDL_DETAILS")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -<jsp:include page="/scripts/tables.jsp" flush="true"/> -<jsp:include page="/scripts/panes.jsp" flush="true"/> -<script language="javascript"> - function switchWSDLDetailsView() { - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp"))%>"; - } -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> -<% - String titleImagePath = "wsdl/images/open_wsdl_highlighted.gif"; - String title = wsdlPerspective.getMessage("ALT_WSDL_DETAILS"); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td> - <img src="<%=response.encodeURL(controller.getPathWithContext(titleImagePath))%>" alt=""> - <strong><%=title%></strong> - </td> - <td width="*"> </td> - <td align="right" class="labels"> -<% - if (wsdlDetailsTool.getViewId() == WSDLDetailsTool.SOURCE_VIEW_ID) - { -%> - <a href="javascript:switchWSDLDetailsView()" title="<%=wsdlPerspective.getMessage("ALT_SWITCH_TO_FORM_VIEW")%>"><%=wsdlPerspective.getMessage("FORM_LINK_FORM")%></a> -<% - } - else - { -%> - <a href="javascript:switchWSDLDetailsView()" title="<%=wsdlPerspective.getMessage("ALT_SWITCH_TO_SOURCE_VIEW")%>"><%=wsdlPerspective.getMessage("FORM_LINK_SOURCE")%></a> -<% - } -%> - </td> - </tr> - <tr> - <td height=20 colspan=3><img height=2 width="100%" align="top" src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>"></td> - </tr> -</table> -<% - if (wsdlDetailsTool.getViewId() == WSDLDetailsTool.FORM_VIEW_ID) - { -%> - <jsp:include page="/wsdl/forms/WSDLDetailsFormView.jsp" flush="true"/> -<% - } - else - { -%> - <table width="95%" height="100%" border=0 cellpadding=0 cellpadding=0> - <tr> - <td> - <iframe src="<%=response.encodeURL(controller.getPathWithContext("/wsdl/forms/WSDLDetailsSourceView.jsp"))%>" width="95%" height="100%"></iframe> - </td> - </tr> - </table> -<% - } -%> -<jsp:useBean id="currentToolManagerHash" class="java.util.Hashtable" scope="request"> -<% - currentToolManagerHash.put(ActionInputs.CURRENT_TOOL_MANAGER,currentToolManager); -%> -</jsp:useBean> -<jsp:include page="/forms/otherActions.jsp" flush="true"/> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsFormView.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsFormView.jsp deleted file mode 100644 index 5525c532c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsFormView.jsp +++ /dev/null @@ -1,106 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<table> - <tr> - <td class="labels"><%=wsdlPerspective.getMessage("FORM_LABEL_WSDL_DETAILS_DESC")%></td> - </tr> - <tr> - <td height=20> </td> - </tr> -</table> -<% -Node wsdlNode = wsdlPerspective.getNodeManager().getSelectedNode(); -WSDLElement wsdlElement = (WSDLElement)wsdlNode.getTreeElement(); -String documentation = wsdlElement.getPropertyAsString(WSDLModelConstants.PROP_DOCUMENTATION); -if (documentation != null && documentation.length() > 0) -{ -%> -<table> - <tr> - <td height=20 valign="bottom" class="labels"><%=documentation%></td> - </tr> -</table> -<% -} -%> -<table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor"><%=controller.getMessage("FORM_LABEL_WSDL_URL")%></th> - </tr> - <tr> - <td class="tablecells"><%=wsdlElement.getWsdlUrl()%></td> - </tr> -</table> -<table> - <tr> - <td height=10> </td> - </tr> -</table> -<% -sectionHeaderInfo.clear(); -sectionHeaderInfo.setContainerId("Services"); -Vector serviceNodes = wsdlNode.getChildNodes(); -sectionHeaderInfo.setOtherProperties(serviceNodes); -%> -<jsp:include page="/wsdl/forms/services_table.jsp" flush="true"/> -<table> - <tr> - <td height=10> </td> - </tr> -</table> -<% -Vector bindingNodes = new Vector(); -for (int i=0;i<serviceNodes.size();i++) -{ - Node serviceNode = (Node)serviceNodes.elementAt(i); - Vector serviceBindingNodes = serviceNode.getChildNodes(); - for (int j=0;j<serviceBindingNodes.size();j++) - { - Node serviceBindingNode = (Node)serviceBindingNodes.elementAt(j); - bindingNodes.addElement(serviceBindingNode); - } -} -sectionHeaderInfo.clear(); -sectionHeaderInfo.setContainerId("Bindings"); -sectionHeaderInfo.setOtherProperties(bindingNodes); -%> -<jsp:include page="/wsdl/forms/bindings_table.jsp" flush="true"/> -<script language="javascript"> -<% -if (serviceNodes.size() > 0) -{ -%> - twist("Services","xServices"); -<% -} -if (bindingNodes.size() > 0) -{ -%> - twist("Bindings","xBindings"); -<% -} -%> -</script> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsSourceView.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsSourceView.jsp deleted file mode 100644 index 470a4b5a6..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsSourceView.jsp +++ /dev/null @@ -1,45 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/xml; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.wsdl.internal.impl.wsdl4j.WSDLFactoryImpl, - java.io.*, - javax.wsdl.*, - javax.wsdl.xml.*, - javax.wsdl.factory.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -NodeManager nodeManager = wsdlPerspective.getNodeManager(); -Node selectedNode = nodeManager.getSelectedNode(); -WSDLElement wsdlElement = (WSDLElement)selectedNode.getTreeElement(); -Definition definition = wsdlElement.getDefinition(); -WSDLFactory wsdlFactory = new WSDLFactoryImpl(); -WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter(); -StringWriter stringWriter = new StringWriter(); -try -{ - wsdlWriter.writeWSDL(definition, stringWriter); - %> - <%=stringWriter.toString()%> - <% -} -catch (WSDLException wsdle) -{ - %> - <?xml version="1.0"?> - <% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLImportWSDLToWorkbenchForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLImportWSDLToWorkbenchForm.jsp deleted file mode 100644 index 1ad9d5c01..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLImportWSDLToWorkbenchForm.jsp +++ /dev/null @@ -1,28 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.WSDLElement, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="formProperties" class="java.util.Hashtable" scope="request"> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - NodeManager nodeManager = wsdlPerspective.getNodeManager(); - Node selectedNode = nodeManager.getSelectedNode(); - String wsdlUrl = ((WSDLElement)selectedNode.getTreeElement()).getWsdlUrl(); - formProperties.put("formActionLink","wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp"); - formProperties.put("wsdlURL",wsdlUrl); -%> -</jsp:useBean> -<jsp:include page="/forms/ImportWSDLAndWSILToWorkbenchForm.jsp" flush="true"/> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLLaunchWebServiceWizardForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLLaunchWebServiceWizardForm.jsp deleted file mode 100644 index 893d80cea..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLLaunchWebServiceWizardForm.jsp +++ /dev/null @@ -1,20 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" %> - -<jsp:useBean id="formActionLink" class="java.lang.StringBuffer" scope="request"> -<% -formActionLink.append("wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp"); -%> -</jsp:useBean> -<jsp:include page="/forms/LaunchWebServiceWizardForm.jsp" flush="true"/> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLServiceDetailsForm.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLServiceDetailsForm.jsp deleted file mode 100644 index 4e24cc8e3..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLServiceDetailsForm.jsp +++ /dev/null @@ -1,79 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node serviceNode = wsdlPerspective.getNodeManager().getSelectedNode(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FORM_TITLE_WSDL_SERVICE_DETAILS")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -<jsp:include page="/scripts/tables.jsp" flush="true"/> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> -<% - String titleImagePath = "wsdl/images/open_wsdl_highlighted.gif"; - String title = wsdlPerspective.getMessage("ALT_WSDL_SERVICE_DETAILS"); -%> -<%@ include file = "/forms/formheader.inc" %> -<table> - <tr> - <td class="labels"><%=wsdlPerspective.getMessage("FORM_LABEL_SERVICE_DETAILS_DESC")%></td> - </tr> -</table> -<% - WSDLServiceElement wsdlServiceElement = (WSDLServiceElement)serviceNode.getTreeElement(); - String documentation = wsdlServiceElement.getPropertyAsString(WSDLModelConstants.PROP_DOCUMENTATION); - if (documentation.length() > 0) - { -%> -<table> - <tr> - <td height=20 valign="bottom" class="labels"><%=documentation%></td> - </tr> - <tr> - <td height=10> </td> - </tr> -</table> -<% - } - Vector bindingNodes = serviceNode.getChildNodes(); - sectionHeaderInfo.clear(); - sectionHeaderInfo.setContainerId("Bindings"); - sectionHeaderInfo.setOtherProperties(bindingNodes); -%> -<jsp:include page="/wsdl/forms/bindings_table.jsp" flush="true"/> -</div> -<% - if (bindingNodes.size() > 0) - { -%> -<script language="javascript"> - twist("Bindings","xBindings"); -</script> -<% - } -%> -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/bindings_table.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/bindings_table.jsp deleted file mode 100644 index a10ca074e..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/bindings_table.jsp +++ /dev/null @@ -1,72 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - javax.wsdl.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - String tableContainerId = sectionHeaderInfo.getContainerId(); - StringBuffer twistImageName = new StringBuffer("x"); - twistImageName.append(tableContainerId); -%> -<table border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" nowrap width=11><a href="javascript:twist('<%=tableContainerId%>','<%=twistImageName.toString()%>')"><img name="<%=twistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a></td> - <td height=20 valign="bottom" align="left" nowrap class="labels"><strong><%=wsdlPerspective.getMessage("FORM_LABEL_BINDINGS")%></strong></td> - </tr> -</table> - -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td valign="top" height=10><img src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>" height=2 width="100%"></td> - </tr> -</table> - -<div id="<%=tableContainerId%>" style="display:none;"> - <table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="headercolor" width="20%"><%=wsdlPerspective.getMessage("FORM_LABEL_NAME")%></th> - <th class="headercolor" width="20%"><%=wsdlPerspective.getMessage("FORM_LABEL_BINDING_TYPE")%></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_DOCUMENTATION")%></th> - </tr> -<% - Vector bindingNodes = (Vector)sectionHeaderInfo.getOtherProperties(); - for (int i=0;i<bindingNodes.size();i++) - { - Node bindingNode = (Node)bindingNodes.elementAt(i); - WSDLBindingElement wsdlBindingElement = (WSDLBindingElement)bindingNode.getTreeElement(); - Binding binding = wsdlBindingElement.getBinding(); -%> - <tr> - <td class="tablecells"><a href="<%=response.encodeURL(controller.getPathWithContext(SelectWSDLNavigatorNodeAction.getActionLink(bindingNode.getNodeId(),false)))%>"><%=binding.getQName().getLocalPart()%></td> - <td class="tablecells"><%=wsdlPerspective.getBindingTypeString(wsdlBindingElement.getBindingType())%></td> -<% - WSDLServiceElement wsdlServiceElement = (WSDLServiceElement)wsdlBindingElement.getParentElement(); - String documentation = wsdlServiceElement.getPropertyAsString(WSDLModelConstants.PROP_DOCUMENTATION); - if (documentation.length() < 1) - documentation = controller.getMessage("TABLE_BLANK_PLACEHOLDER"); -%> - <td class="tablecells"><%=documentation%></td> - </tr> -<% - } -%> - </table> -</div> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/endpoint_table.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/endpoint_table.jsp deleted file mode 100644 index 37ec6d4ff..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/endpoint_table.jsp +++ /dev/null @@ -1,139 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<script language="javascript"> - function addEndpoint(tableContainerID, id, name, value, isRemovable) - { - twistOpen(tableContainerID); - var table = getTable(tableContainerID); - var tableBody = table.getElementsByTagName("tbody").item(0); - var newRow = document.createElement("tr"); - var column0 = document.createElement("td"); - var column1 = document.createElement("td"); - - var rowCheckbox = createRowCheckbox(); - if (!isRemovable) - { - rowCheckbox.disabled = true; - } - column0.appendChild(rowCheckbox); - - var endPoint; - if (isRemovable) - { - endPoint = document.createElement("input"); - endPoint.type = "text"; - endPoint.id = id; - endPoint.name = name; - if (value != null) - endPoint.value = value; - endPoint.className = "tabletextenter"; - } - else - endPoint = document.createTextNode(value); - column1.appendChild(endPoint); - - column0.className = "checkboxcells"; - column1.className = "tablecells"; - newRow.appendChild(column0); - newRow.appendChild(column1); - tableBody.appendChild(newRow); - } - - function handleEndpointCheckAllClick(tableContainerId,checkAllCheckbox) - { - var table = getTable(tableContainerId); - for (var i=numberOfHeaderRows;i<table.rows.length;i++) - { - var rowCheckboxCell = table.rows[i].getElementsByTagName("td").item(0); - var rowCheckbox = rowCheckboxCell.childNodes[0]; - if (!rowCheckbox.disabled) - { - rowCheckbox.checked = checkAllCheckbox.checked; - if (rowCheckbox.checked) - highlightRow(table.rows[i],"rowcolor"); - else - highlightRow(table.rows[i],"tablecells"); - } - } - } -</script> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - String tableContainerID = sectionHeaderInfo.getContainerId(); - StringBuffer twistImageName = new StringBuffer("x"); - twistImageName.append(tableContainerID); - WSDLBindingElement bindingElement = (WSDLBindingElement)sectionHeaderInfo.getOtherProperties(); - String[] endpoints = bindingElement.getEndPoints(); - String addressLocation = ((WSDLServiceElement)bindingElement.getParentElement()).getAddressLocation(bindingElement.getBinding()); -%> -<table border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName.toString()%>')"><img name="<%=twistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a> - </td> - <td height=20 valign="bottom" align="left" nowrap class="labels"> - <strong><%=wsdlPerspective.getMessage("FORM_LABEL_END_POINTS")%></strong> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:addEndpoint('<%=tableContainerID%>', '<%=WSDLActionInputs.END_POINT%>', '<%=WSDLActionInputs.END_POINT%>', '<%=addressLocation%>', true)"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:removeSelectedRows('<%=tableContainerID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - </tr> -</table> - -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td valign="top" height=10><img src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>" height=2 width="100%"></td> - </tr> -</table> - -<div id="<%=tableContainerID%>" style="display:none;"> - <table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleEndpointCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_END_POINTS")%></th> - </tr> - </table> -</div> -<script language="javascript"> -<% - boolean isDefaultAdded = false; - for (int i = 0; i < endpoints.length; i++) - { - if (endpoints[i].equals(addressLocation) && !isDefaultAdded) - { -%> - addEndpoint('<%=tableContainerID%>', '<%=WSDLActionInputs.END_POINT%>', "", '<%=endpoints[i]%>', false); - -<% - isDefaultAdded = true; - } - else - { -%> - addEndpoint('<%=tableContainerID%>', '<%=WSDLActionInputs.END_POINT%>', '<%=WSDLActionInputs.END_POINT%>', '<%=endpoints[i]%>', true); -<% - } - } -%> -</script> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/operations_table.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/operations_table.jsp deleted file mode 100644 index bab19e2d3..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/operations_table.jsp +++ /dev/null @@ -1,67 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - String tableContainerId = sectionHeaderInfo.getContainerId(); - StringBuffer twistImageName = new StringBuffer("x"); - twistImageName.append(tableContainerId); -%> -<table border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" nowrap width=11><a href="javascript:twist('<%=tableContainerId%>','<%=twistImageName.toString()%>')"><img name="<%=twistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a></td> - <td height=20 valign="bottom" align="left" nowrap class="labels"><strong><%=wsdlPerspective.getMessage("FORM_LABEL_OPERATIONS")%></strong></td> - </tr> -</table> - -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td valign="top" height=10><img src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>" height=2 width="100%"></td> - </tr> -</table> - -<div id="<%=tableContainerId%>" style="display:none;"> - <table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="headercolor" width="20%"><%=wsdlPerspective.getMessage("FORM_LABEL_NAME")%></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_DOCUMENTATION")%></th> - </tr> -<% - Vector operationNodes = (Vector)sectionHeaderInfo.getOtherProperties(); - for (int i=0;i<operationNodes.size();i++) - { - Node operationNode = (Node)operationNodes.elementAt(i); - WSDLOperationElement wsdlOperationElement = (WSDLOperationElement)operationNode.getTreeElement(); -%> - <tr> - <td class="tablecells"><a href="<%=response.encodeURL(controller.getPathWithContext(SelectWSDLNavigatorNodeAction.getActionLink(operationNode.getNodeId(),false)))%>"><%=wsdlOperationElement.getOperation().getName()%></a></td> -<% - String documentation = wsdlOperationElement.getPropertyAsString(WSDLModelConstants.PROP_DOCUMENTATION); - if (documentation.length() < 1) - documentation = controller.getMessage("TABLE_BLANK_PLACEHOLDER"); -%> - <td class="tablecells"><%=documentation%></td> - </tr> -<% - } -%> - </table> -</div> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/services_table.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/services_table.jsp deleted file mode 100644 index 18c99033b..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/services_table.jsp +++ /dev/null @@ -1,67 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - java.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - String tableContainerId = sectionHeaderInfo.getContainerId(); - StringBuffer twistImageName = new StringBuffer("x"); - twistImageName.append(tableContainerId); -%> -<table border=0 cellpadding=6 cellspacing=0> - <tr> - <td height=20 valign="bottom" align="left" nowrap width=11><a href="javascript:twist('<%=tableContainerId%>','<%=twistImageName.toString()%>')"><img name="<%=twistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a></td> - <td height=20 valign="bottom" align="left" nowrap class="labels"><strong><%=wsdlPerspective.getMessage("FORM_LABEL_SERVICES")%></strong></td> - </tr> -</table> - -<table width="95%" border=0 cellpadding=0 cellspacing=0> - <tr> - <td valign="top" height=10><img src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>" height=2 width="100%"></td> - </tr> -</table> - -<div id="<%=tableContainerId%>" style="display:none;"> - <table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="headercolor" width="20%"><%=wsdlPerspective.getMessage("FORM_LABEL_NAME")%></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_DOCUMENTATION")%></th> - </tr> -<% - Vector serviceNodes = (Vector)sectionHeaderInfo.getOtherProperties(); - for (int i=0;i<serviceNodes.size();i++) - { - Node serviceNode = (Node)serviceNodes.elementAt(i); - WSDLServiceElement wsdlServiceElement = (WSDLServiceElement)serviceNode.getTreeElement(); -%> - <tr> - <td class="tablecells"><a href="<%=response.encodeURL(controller.getPathWithContext(SelectWSDLNavigatorNodeAction.getActionLink(serviceNode.getNodeId(),false)))%>"><%=wsdlServiceElement.getService().getQName().getLocalPart()%></a></td> -<% - String documentation = wsdlServiceElement.getPropertyAsString(WSDLModelConstants.PROP_DOCUMENTATION); - if (documentation.length() < 1) - documentation = controller.getMessage("TABLE_BLANK_PLACEHOLDER"); -%> - <td class="tablecells"><%=documentation%></td> - </tr> -<% - } -%> - </table> -</div> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayFixWFragmentJSP.jsp deleted file mode 100644 index de802b9b1..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayFixWFragmentJSP.jsp +++ /dev/null @@ -1,55 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -ISOAPEncArrayFragment frag = (ISOAPEncArrayFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td width=16> - <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td> - <jsp:include page="/wsdl/fragment/XSDGroupSeqFixWFragmentJSP.jsp" flush="true"/> - </td> - </tr> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRFragmentJSP.jsp deleted file mode 100644 index 608414e05..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRFragmentJSP.jsp +++ /dev/null @@ -1,67 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -ISOAPEncArrayFragment frag = (ISOAPEncArrayFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerIDBase = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageNameBase = (new StringBuffer("x")).append(tableContainerIDBase).toString(); -String[] groupIDs = frag.getGroupIDs(); -for (int i = 0; i < groupIDs.length; i++) { -%> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=i + tableContainerIDBase%>','<%=i + twistImageNameBase%>')"><img name="<%=i + twistImageNameBase%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=frag.getName()%> - </td> - </tr> - </table> - <span id="<%=i + tableContainerIDBase%>"> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% - IXSDFragment[] childFragments = frag.getGroupMemberFragments(groupIDs[i]); - for (int j = 0; j < childFragments.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(childFragments[j].getID()); -%> - <tr> - <td width=16> - <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td> - <jsp:include page="<%=childFragments[j].getReadFragment()%>" flush="true"/> - </td> - </tr> -<% - } -%> - </table> - </span> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRangeWFragmentJSP.jsp deleted file mode 100644 index 502a699a0..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRangeWFragmentJSP.jsp +++ /dev/null @@ -1,89 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDGroupSeqFragment frag = (IXSDGroupSeqFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); -%> -<a name="<%=nameAnchorID%>"/> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:createInstance('<%=tableContainerID%>', <%=xsdConfig.getMaxOccurs()%>, '<%=fragID%>', '<%=nameAnchorID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_SOAP_ENC_ARRAYS")%></th> - </tr> - <% - String[] groupIDs = frag.getGroupIDs(); - for (int i = 0; i < groupIDs.length || i < xsdConfig.getMinOccurs(); i++) { - String groupID; - if (i < groupIDs.length) - groupID = groupIDs[i]; - else - groupID = frag.createGroupSeqInstance(); - IXSDFragment[] groupMemberFragments = frag.getGroupMemberFragments(groupID); - %> - <tr> - <td class="checkboxcells" width=10> - <input type="checkbox" onClick="handleRowCheckboxClick()" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"> - </td> - <td class="tablecells"> - <input type="hidden" name="<%=frag.getID()%>" value="<%=groupID%>"> - <% - for (int j = 0; j < groupMemberFragments.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(groupMemberFragments[j].getID()); - %> - <jsp:include page="<%=groupMemberFragments[j].getWriteFragment()%>" flush="true"/> - <% - } - %> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp deleted file mode 100644 index 4877764eb..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp +++ /dev/null @@ -1,75 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDComplexFragment frag = (IXSDComplexFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <% - IXSDFragment[] childFrags = frag.getAllFragments(); - for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - IXSDFragment childFrag; - String childFragID; - if (i < childFrags.length) { - childFrag = childFrags[i]; - childFragID = childFrag.getID(); - } - else { - childFragID = frag.createComplexInstance(); - childFrag = frag.getFragment(childFragID); - } - fragID.delete(0, fragID.length()); - fragID.append(childFragID); - %> - <tr> - <td width=16> - <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td> - <input type="hidden" name="<%=frag.getID()%>" value="<%=childFragID%>"> - <jsp:include page="<%=childFrag.getWriteFragment()%>" flush="true"/> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRFragmentJSP.jsp deleted file mode 100644 index 672800300..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRFragmentJSP.jsp +++ /dev/null @@ -1,60 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDComplexFragment frag = (IXSDComplexFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerIDBase = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageNameBase = (new StringBuffer("x")).append(tableContainerIDBase).toString(); -IXSDFragment[] childFrags = frag.getAllFragments(); -for (int i = 0; i < childFrags.length; i++) { - fragID.delete(0, fragID.length()); - fragID.append(childFrags[i].getID()); -%> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=i + tableContainerIDBase%>','<%=i + twistImageNameBase%>')"><img name="<%=i + twistImageNameBase%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=frag.getName()%> - </td> - </tr> - </table> - <span id="<%=i + tableContainerIDBase%>"> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td width=16> - <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td> - <jsp:include page="<%=childFrags[i].getReadFragment()%>" flush="true"/> - </td> - </tr> - </table> - </span> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRangeWFragmentJSP.jsp deleted file mode 100644 index 6af5c1f34..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRangeWFragmentJSP.jsp +++ /dev/null @@ -1,87 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDComplexFragment frag = (IXSDComplexFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); -%> -<a name="<%=nameAnchorID%>"/> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:createInstance('<%=tableContainerID%>', <%=xsdConfig.getMaxOccurs()%>, '<%=fragID%>', '<%=nameAnchorID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_CONTENT")%></th> - </tr> - <% - IXSDFragment[] childFrags = frag.getAllFragments(); - for (int i = 0; i < childFrags.length || i < xsdConfig.getMinOccurs(); i++) { - IXSDFragment childFrag; - String childFragID; - if (i < childFrags.length) { - childFrag = childFrags[i]; - childFragID = childFrag.getID(); - } - else { - childFragID = frag.createComplexInstance(); - childFrag = frag.getFragment(childFragID); - } - fragID.delete(0, fragID.length()); - fragID.append(childFragID); - %> - <tr> - <td class="checkboxcells" width=10> - <input type="checkbox" onClick="handleRowCheckboxClick()" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"> - </td> - <td class="tablecells"> - <input type="hidden" name="<%=frag.getID()%>" value="<%=childFragID%>"> - <jsp:include page="<%=childFrag.getWriteFragment()%>" flush="true"/> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultInfoFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultInfoFragmentJSP.jsp deleted file mode 100644 index 3a8ad8295..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultInfoFragmentJSP.jsp +++ /dev/null @@ -1,201 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.emf.common.util.EList, - org.eclipse.xsd.*, - org.w3c.dom.Element, - org.w3c.dom.NodeList" %> - -<jsp:useBean id="sessionID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<%! -private static final String XMLNS_LANG = "xml:lang"; -private static final String DEFAULT_XMLNS_LANG = "en-US"; -%> - -<% -HttpSession currentSession = (HttpSession)application.getAttribute(sessionID.toString()); -Controller controller = (Controller)currentSession.getAttribute("controller"); -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDComponent xsdComponent = frag.getXSDToFragmentConfiguration().getXSDComponent(); -XSDAnnotation annotation = null; -EList appInfoList = null; -EList docList = null; -if (xsdComponent instanceof XSDTypeDefinition) - annotation = ((XSDTypeDefinition)xsdComponent).getAnnotation(); -else if (xsdComponent instanceof XSDElementDeclaration) - annotation = ((XSDElementDeclaration)xsdComponent).getAnnotation(); -if (annotation != null) { - appInfoList = annotation.getApplicationInformation(); - docList = annotation.getUserInformation(); -} -String appInfoContainerID = "::appInfo"; -String xappInfoContainerID = "x::appInfo"; -String documentationContainerID = "::documentation"; -String xdocumentationContainerID = "x::documentation"; -%> - -<script language="javascript"> - function twist(tableContainerId,twistImageName) - { - var tableContainer = document.getElementById(tableContainerId); - var twistImage = document.images[twistImageName]; - if (tableContainer.style.display == "none") - { - tableContainer.style.display = ""; - twistImage.src = "<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>"; - twistImage.alt = "<%=HTMLUtils.JSMangle(controller.getMessage("ALT_TWIST_OPENED"))%>"; - } - else - { - tableContainer.style.display = "none"; - twistImage.src = "<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>"; - twistImage.alt = "<%=HTMLUtils.JSMangle(controller.getMessage("ALT_TWIST_CLOSED"))%>"; - } - } - - function twistClose(tableContainerId) - { - if (document.getElementById(tableContainerId).style.display == "") - twist(tableContainerId,"x"+tableContainerId); - } -</script> - -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=appInfoContainerID%>','<%=xappInfoContainerID%>')"><img name="<%=xappInfoContainerID%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <strong><%=wsdlPerspective.getMessage("FORM_LABEL_XSD_APPLICATION_INFORMATION")%></strong> - </td> - </tr> -</table> -<span id="<%=appInfoContainerID%>"> -<table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_LANGUAGE")%></th> - <th class="headercolor" width="100%"><%=wsdlPerspective.getMessage("FORM_LABEL_XSD_APPLICATION_INFORMATION")%></th> - </tr> - <% - boolean openAppInfoTable = false; - if (appInfoList != null) { - for (int i = 0; i < appInfoList.size(); i++) { - Element e = (Element)appInfoList.get(i); - String appInfoLang = e.getAttribute(XMLNS_LANG); - String appInfoText = null; - NodeList nl = e.getChildNodes(); - for (int j = 0; j < nl.getLength(); j++) { - if (nl.item(j).getNodeType() == org.w3c.dom.Node.TEXT_NODE) { - appInfoText = nl.item(j).getNodeValue(); - break; - } - } - if (appInfoText != null) - { - openAppInfoTable = true; - if (appInfoText.trim().length() < 1) - appInfoText = controller.getMessage("TABLE_BLANK_PLACEHOLDER"); - %> - <tr> - <td class="tablecells"><%=((appInfoLang != null && appInfoLang.length() > 0) ? appInfoLang : DEFAULT_XMLNS_LANG)%></td> - <td class="tablecells"><%=appInfoText%></td> - </tr> - <% - } - } - } - %> -</table> -</span> -<% -if (!openAppInfoTable) { -%> -<script language="javascript"> - twistClose('<%=appInfoContainerID%>'); -</script> -<% -} -%> - -<table> - <tr> - <td height=20> </td> - </tr> -</table> - -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=documentationContainerID%>','<%=xdocumentationContainerID%>')"><img name="<%=xdocumentationContainerID%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <strong><%=wsdlPerspective.getMessage("FORM_LABEL_XSD_DOCUMENTATION")%></strong> - </td> - </tr> -</table> -<span id="<%=documentationContainerID%>"> -<table width="95%" cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_LANGUAGE")%></th> - <th class="headercolor" width="100%"><%=wsdlPerspective.getMessage("FORM_LABEL_XSD_DOCUMENTATION")%></th> - </tr> - <% - boolean openDocTable = false; - if (docList != null) { - for (int i = 0; i < docList.size(); i++) { - Element e = (Element)docList.get(i); - String docLang = e.getAttribute(XMLNS_LANG); - String docText = null; - NodeList nl = e.getChildNodes(); - for (int j = 0; j < nl.getLength(); j++) { - if (nl.item(j).getNodeType() == org.w3c.dom.Node.TEXT_NODE) { - docText = nl.item(j).getNodeValue(); - break; - } - } - if (docText != null) - { - openDocTable = true; - if (docText.trim().length() < 1) - docText = controller.getMessage("TABLE_BLANK_PLACEHOLDER"); - %> - <tr> - <td class="tablecells"><%=((docLang != null && docLang.length() > 0) ? docLang : DEFAULT_XMLNS_LANG)%></td> - <td class="tablecells"><%=docText%></td> - </tr> - <% - } - } - } - %> -</table> -</span> -<% -if (!openDocTable) { -%> -<script language="javascript"> - twistClose('<%=documentationContainerID%>'); -</script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentJSP.jsp deleted file mode 100644 index c00694f7c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentJSP.jsp +++ /dev/null @@ -1,73 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.w3c.dom.Element, - javax.xml.rpc.NamespaceConstants, - java.util.Hashtable" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -Hashtable soapEnvelopeNamespaceTable = new Hashtable(); -// TODO: Replace "SOAP-ENV" by NamespaceConstants.NSPREFIX_SOAP_ENVELOPE (="soapenv") -soapEnvelopeNamespaceTable.put(NamespaceConstants.NSURI_SOAP_ENVELOPE,"SOAP-ENV"); -soapEnvelopeNamespaceTable.put(NamespaceConstants.NSURI_SCHEMA_XSI,NamespaceConstants.NSPREFIX_SCHEMA_XSI); -soapEnvelopeNamespaceTable.put(NamespaceConstants.NSURI_SCHEMA_XSD,NamespaceConstants.NSPREFIX_SCHEMA_XSD); -Element[] instanceDocuments = frag.genInstanceDocumentsFromParameterValues(!operElement.isUseLiteral(), soapEnvelopeNamespaceTable, XMLUtils.createNewDocument(null)); -StringBuffer sb = new StringBuffer(); -for (int i = 0; i < instanceDocuments.length; i++) { - if (instanceDocuments[i] == null) - continue; - sb.append(XMLUtils.serialize(instanceDocuments[i], true)); - sb.append(HTMLUtils.LINE_SEPARATOR); -} -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><%=frag.getName()%></label> - </td> - </tr> -</table> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td> - <textarea id="<%=frag.getID()%>" name="<%=frag.getID()%>" class="textareaenter" readonly><%=sb.toString()%></textarea> -<% - /* - StringBuffer url = new StringBuffer(); - url.append(response.encodeURL(controller.getPathWithContext("/wsdl/fragment/XSDDefaultRFragmentXML.jsp?"))); - url.append(WSDLActionInputs.FRAGMENT_ID).append("=").append(fragID).append("&"); - url.append(ActionInputs.NODEID).append("=").append(nodeID).append("&"); - url.append(ActionInputs.SESSIONID).append("=").append(session.getId()); - */ -%> - <!-- - <iframe src="" width="100%" height="150px"></iframe> - --> - </td> - </tr> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentXML.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentXML.jsp deleted file mode 100644 index 6a908182d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentXML.jsp +++ /dev/null @@ -1,98 +0,0 @@ -<%@ page contentType="text/xml; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*, - org.w3c.dom.Element, - org.xml.sax.*, - org.xml.sax.helpers.*, - javax.xml.rpc.NamespaceConstants, - javax.xml.parsers.*, - java.io.*, - java.util.*" %> -<% -String fragID = request.getParameter(WSDLActionInputs.FRAGMENT_ID); -String nodeID = request.getParameter(ActionInputs.NODEID); -String sessionId = request.getParameter(ActionInputs.SESSIONID); -HttpSession currentSession = (HttpSession)application.getAttribute(sessionId); -Controller controller = (Controller)currentSession.getAttribute("controller"); -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID)); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -Hashtable soapEnvelopeNamespaceTable = new Hashtable(); -// TODO: Replace "SOAP-ENV" by NamespaceConstants.NSPREFIX_SOAP_ENVELOPE (="soapenv") -soapEnvelopeNamespaceTable.put(NamespaceConstants.NSURI_SOAP_ENVELOPE,"SOAP-ENV"); -soapEnvelopeNamespaceTable.put(NamespaceConstants.NSURI_SCHEMA_XSI,NamespaceConstants.NSPREFIX_SCHEMA_XSI); -soapEnvelopeNamespaceTable.put(NamespaceConstants.NSURI_SCHEMA_XSD,NamespaceConstants.NSPREFIX_SCHEMA_XSD); -Element[] instanceDocuments = new Element[0]; -StringBuffer sb = null; -try -{ - instanceDocuments = frag.genInstanceDocumentsFromParameterValues(!operElement.isUseLiteral(), soapEnvelopeNamespaceTable, XMLUtils.createNewDocument(null)); - if (instanceDocuments.length == 1) - { - byte[] b = XMLUtils.serialize(instanceDocuments[0], true).getBytes(HTMLUtils.UTF8_ENCODING); - ByteArrayInputStream bais = new ByteArrayInputStream(b); - SAXParserFactory saxFactory = SAXParserFactory.newInstance(); - saxFactory.setValidating(true); - SAXParser saxParser = saxFactory.newSAXParser(); - saxParser.parse(bais, - new DefaultHandler() - { - public void error(SAXParseException e) throws SAXException - { - throw e; - } - - public void fatalError(SAXParseException e) throws SAXException - { - throw e; - } - - public void warning(SAXParseException e) throws SAXException - { - throw e; - } - }); - bais.close(); - sb = new StringBuffer(new String(b)); - } -} -catch (Throwable t) -{ -} -if (sb == null) -{ -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=frag.getName()%></title> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - sb = new StringBuffer(); - response.setContentType("text/html; charset=UTF-8"); - for (int i = 0; i < instanceDocuments.length; i++) { - if (instanceDocuments[i] == null) - continue; - sb.append(HTMLUtils.charactersToHTMLEntities(XMLUtils.serialize(instanceDocuments[i], true))); - } -%> -<%=sb.toString()%> -</body> -</html> -<% -} -else -{ -%> -<%=sb.toString()%> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultWFragmentJSP.jsp deleted file mode 100644 index 10a2f7f14..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultWFragmentJSP.jsp +++ /dev/null @@ -1,55 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String param = frag.getParameterValue(frag.getID(), 0); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td> - <% - if (!frag.validateAllParameterValues()) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - %> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td> - <textarea id="<%=frag.getID()%>" name="<%=frag.getID()%>" class="textareaenter"><%=((param != null) ? param : "")%></textarea> - </td> - </tr> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationRFragmentJSP.jsp deleted file mode 100644 index d0931f294..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationRFragmentJSP.jsp +++ /dev/null @@ -1,38 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDDelegationFragment wrapperFragment = (IXSDDelegationFragment)operElement.getFragmentByID(fragID.toString()); -IXSDFragment delegationFragment = wrapperFragment.getXSDDelegationFragment(); -XSDToFragmentConfiguration xsdConfig = wrapperFragment.getXSDToFragmentConfiguration(); -fragID.delete(0, fragID.length()); -fragID.append(delegationFragment.getID()); -%> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td> - <jsp:include page="<%=delegationFragment.getReadFragment()%>" flush="true"/> - </td> - </tr> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationWFragmentJSP.jsp deleted file mode 100644 index c34607a31..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationWFragmentJSP.jsp +++ /dev/null @@ -1,38 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDDelegationFragment wrapperFragment = (IXSDDelegationFragment)operElement.getFragmentByID(fragID.toString()); -IXSDFragment delegationFragment = wrapperFragment.getXSDDelegationFragment(); -XSDToFragmentConfiguration xsdConfig = wrapperFragment.getXSDToFragmentConfiguration(); -fragID.delete(0, fragID.length()); -fragID.append(delegationFragment.getID()); -%> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td> - <jsp:include page="<%=delegationFragment.getWriteFragment()%>" flush="true"/> - </td> - </tr> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyRFragmentJSP.jsp deleted file mode 100644 index ba3ceeed5..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyRFragmentJSP.jsp +++ /dev/null @@ -1,17 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyWFragmentJSP.jsp deleted file mode 100644 index 89a494313..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyWFragmentJSP.jsp +++ /dev/null @@ -1,77 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -int minOccurs = xsdConfig.getMinOccurs(); -int maxOccurs = xsdConfig.getMaxOccurs(); -if (minOccurs == maxOccurs) { -%> -<input type="hidden" name="<%=frag.getID()%>" value="<%=maxOccurs%>"/> -<% -} else { - String[] params = frag.getParameterValues(frag.getID()); -%> - <table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td> - <label for="<%=frag.getID()%>"><%=wsdlPerspective.getMessage("FORM_LABEL_OCCURANCE")%> <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - </tr> - <tr> - <td> - <% - if (maxOccurs != FragmentConstants.UNBOUNDED) { - %> - <select id="<%=frag.getID()%>" name="<%=frag.getID()%>" class="selectlist"> - <% - for (int i = minOccurs; i <= maxOccurs; i++) { - %> - <option value="<%=i%>" <% if (params != null && i == params.length) { %>selected<% } %>><%=i%> - <% - } - %> - </select> - <% - } else { - %> - <input type="text" id="<%=frag.getID()%>" name="<%=frag.getID()%>" value="<%=((params != null) ? String.valueOf(params.length) : "")%>" class="tabletextenter"> - <% - if (!frag.validateParameterValues(frag.getID())) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - } - %> - </td> - </tr> - </table> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupAllWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupAllWFragmentJSP.jsp deleted file mode 100644 index 159029224..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupAllWFragmentJSP.jsp +++ /dev/null @@ -1,190 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDGroupAllFragment frag = (IXSDGroupAllFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -boolean enableGroup = (xsdConfig.getMinOccurs() > 0 || frag.getGroupIDs().length > 0); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String groupID = frag.getGroupAllInstance(); -String groupCheckboxID = (new StringBuffer(FragmentConstants.XSD_ALL_GROUP_ID)).append(frag.getID()).toString(); -String groupMemberRadioID = (new StringBuffer(groupCheckboxID)).append(frag.getID()).toString(); -%> -<script language="javascript"> - function initGroupAll(tableContainerID, twistImageName, fragID, groupID, groupCheckboxID, enable) { - var checkbox = document.getElementById(groupCheckboxID); - checkbox.checked = enable; - enableGroupAll(tableContainerID, twistImageName, fragID, groupID, checkbox); - } - - function enableGroupAll(tableContainerID, twistImageName, fragID, groupID, checkbox) { - var tableContainer = document.getElementById(tableContainerID); - var checkboxTable = checkbox.parentNode.parentNode.parentNode; - if (checkbox.checked) { - if (tableContainer.style.display == "none") - twist(tableContainerID, twistImageName); - checkbox.name = fragID; - checkbox.value = groupID; - } - else { - if (tableContainer.style.display == "") - twist(tableContainerID, twistImageName); - checkbox.name = ""; - checkbox.value = ""; - } - var tds = checkboxTable.getElementsByTagName("td"); - var checkboxCellIndex = checkbox.parentNode.cellIndex; - for (var i = 0; i < tds.length; i++) { - if (i == checkboxCellIndex || checkbox.checked) - tds.item(i).style.display = ""; - else - tds.item(i).style.display = "none"; - } - } - - function groupAllOrderingMoveUp(tableContainerID) { - var table = getTable(tableContainerID); - if (table.rows[numberOfHeaderRows].cells[0].getElementsByTagName("input").item(0).checked) { - alert('<%=wsdlPerspective.getMessage("MSG_ERROR_CANNOT_MOVE_FIRST_ELEMENT_UP")%>'); - return; - } - for (var i = numberOfHeaderRows + 1; i < table.rows.length; i++) { - if (table.rows[i].cells[0].getElementsByTagName("input").item(0).checked) { - swapRows(table, i-1, i); - table.rows[i-1].cells[0].getElementsByTagName("input").item(0).checked = true; - return; - } - } - alert('<%=controller.getWSDLPerspective().getMessage("MSG_ERROR_NOTHING_SELECTED")%>'); - } - - function groupAllOrderingMoveDown(tableContainerID) { - var table = getTable(tableContainerID); - if (table.rows[table.rows.length - 1].cells[0].getElementsByTagName("input").item(0).checked) { - alert('<%=wsdlPerspective.getMessage("MSG_ERROR_CANNOT_MOVE_LAST_ELEMENT_DOWN")%>'); - return; - } - for (var i = numberOfHeaderRows; i < table.rows.length - 1; i++) { - if (table.rows[i].cells[0].getElementsByTagName("input").item(0).checked) { - swapRows(table, i, i+1); - table.rows[i+1].cells[0].getElementsByTagName("input").item(0).checked = true; - return; - } - } - alert('<%=controller.getWSDLPerspective().getMessage("MSG_ERROR_NOTHING_SELECTED")%>'); - } - - <% - // rowIndex1 must be smaller than rowIndex2 in order to work - %> - function swapRows(table, rowIndex1, rowIndex2) { - var row1ChildNodes = cloneArray(table.rows[rowIndex1].childNodes); - var row2ChildNodes = cloneArray(table.rows[rowIndex2].childNodes); - table.deleteRow(rowIndex2); - table.deleteRow(rowIndex1); - var row1 = table.insertRow(rowIndex1); - var row2 = table.insertRow(rowIndex2); - appendToRow(row1, row2ChildNodes); - appendToRow(row2, row1ChildNodes); - } - - function cloneArray(oldArray) { - var arrayClone = new Array(); - for (var i = 0; i < oldArray.length; i++) { - arrayClone[i] = oldArray[i].cloneNode(true); - } - return arrayClone; - } - - function appendToRow(row, nodesArray) { - for (var i = 0; i < nodesArray.length; i++) { - row.appendChild(nodesArray[i]); - } - } -</script> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <% - if (xsdConfig.getMinOccurs() > 0) { - %> - <input type="hidden" name="<%=frag.getID()%>" value="<%=groupID%>"> - <% - } - else { - %> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <input type="checkbox" id="<%=groupCheckboxID%>" name="<%=frag.getID()%>" value="<%=groupID%>" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_ENABLE_DISABLE_GROUP")%>" onClick="javascript:enableGroupAll('<%=tableContainerID%>', '<%=twistImageName%>', '<%=frag.getID()%>', '<%=groupID%>', this)" checked><label for="<%=groupCheckboxID%>"><%=wsdlPerspective.getMessage("FORM_LABEL_ENABLE_DISABLE_GROUP")%></label> - </td> - <% - } - %> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:groupAllOrderingMoveUp('<%=tableContainerID%>')"><%=wsdlPerspective.getMessage("FORM_LABEL_GROUP_ALL_ORDERING_MOVE_UP")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:groupAllOrderingMoveDown('<%=tableContainerID%>')"><%=wsdlPerspective.getMessage("FORM_LABEL_GROUP_ALL_ORDERING_MOVE_DOWN")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="headercolor" width=10></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_ELEMENTS")%></th> - </tr> - <% - IXSDFragment[] groupMemberFragments = frag.getGroupMemberFragments(groupID); - for (int i = 0; i < groupMemberFragments.length; i++) { - fragID.delete(0, fragID.length()); - fragID.append(groupMemberFragments[i].getID()); - %> - <tr> - <td class="tablecells"> - <input type="radio" class="radio" name="<%=groupMemberRadioID%>" value="<%=fragID.toString()%>" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_SELECT_ELEMENT_IN_GROUP")%>"> - </td> - <td class="tablecells" width="100%"> - <input type="hidden" name="<%=groupID%>" value="<%=fragID.toString()%>"> - <jsp:include page="<%=groupMemberFragments[i].getWriteFragment()%>" flush="true"/> - </td> - </tr> - <% - } - %> -</table> -</span> -<% -if (!enableGroup) { -%> - <script language="javascript"> - initGroupAll('<%=tableContainerID%>', '<%=twistImageName%>', '<%=frag.getID()%>', '<%=groupID%>', '<%=groupCheckboxID%>', <%=enableGroup%>); - </script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceFixWFragmentJSP.jsp deleted file mode 100644 index 054cf0cdf..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceFixWFragmentJSP.jsp +++ /dev/null @@ -1,113 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<script language="javascript"> - function choose(select) { - for (var i = 0; i < select.options.length; i++) { - var tableContainerID = '<%=FragmentConstants.TABLE_ID%>'; - tableContainerID += select.options(i).value; - showTable(tableContainerID, select.options(i).selected); - } - } - - function showTable(tableContainerID, show) { - var tableContainer = document.getElementById(tableContainerID); - if (show) - tableContainer.style.display = ""; - else - tableContainer.style.display = "none"; - } -</script> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDGroupChoiceFragment frag = (IXSDGroupChoiceFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -%> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="headercolor" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_CHOICES")%></th> - <th class="headercolor" width="100%" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_ELEMENTS")%></th> - </tr> -<% - XSDParticle[] choices = frag.getChoices(); - String[] groupIDs = frag.getGroupIDs(); - for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - String groupID; - int choiceIndex; - if (i < groupIDs.length) { - groupID = groupIDs[i]; - choiceIndex = frag.getChoiceIndex(groupID); - } - else { - groupID = frag.createGroupChoiceInstance(0); - choiceIndex = 0; - } - IXSDFragment[] choiceFrags = frag.getGroupMemberFragments(groupID); -%> - <tr> - <td class="tablecells"> - <input type="hidden" name="<%=frag.getID()%>" value="<%=groupID%>"> - <select id="<%=groupID%>" name="<%=groupID%>" onChange="javascript:choose(this)" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_SELECT_CHOICES")%>"> -<% - for (int j = 0; j < choiceFrags.length; j++) { - XSDElementDeclaration xsdElement = (XSDElementDeclaration)choiceFrags[j].getXSDToFragmentConfiguration().getXSDComponent(); - if (j == choiceIndex) { -%> - <option value="<%=choiceFrags[j].getID()%>" selected><%=xsdElement.getQName()%> -<% - } - else { -%> - <option value="<%=choiceFrags[j].getID()%>"><%=xsdElement.getQName()%> -<% - } - } -%> - </select> - </td> - <td class="tablecells"> -<% - for (int j = 0; j < choiceFrags.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(choiceFrags[j].getID()); - String choiceFragTableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(choiceFrags[j].getID()).toString(); -%> - <span id="<%=choiceFragTableContainerID%>"> - <jsp:include page="<%=choiceFrags[j].getWriteFragment()%>" flush="true"/> - </span> - <script language="javascript"> - showTable('<%=choiceFragTableContainerID%>', <%=(j == choiceIndex)%>); - </script> -<% - } -%> - </td> - </tr> -<% - } -%> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRFragmentJSP.jsp deleted file mode 100644 index 494cc1c4d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRFragmentJSP.jsp +++ /dev/null @@ -1,79 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDGroupChoiceFragment frag = (IXSDGroupChoiceFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerIDBase = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageNameBase = (new StringBuffer("x")).append(tableContainerIDBase).toString(); -String[] groupIDs = frag.getGroupIDs(); -if (groupIDs.length == 1) { - int choiceIndex = frag.getChoiceIndex(groupIDs[0]); - IXSDFragment choiceFrag = frag.getGroupMemberFragments(groupIDs[0])[choiceIndex]; - fragID.delete(0, fragID.length()); - fragID.append(choiceFrag.getID()); -%> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td> - <jsp:include page="<%=choiceFrag.getReadFragment()%>" flush="true"/> - </td> - </tr> - </table> -<% -} -else { - for (int i = 0; i < groupIDs.length; i++) { - int choiceIndex = frag.getChoiceIndex(groupIDs[i]); - IXSDFragment choiceFrag = frag.getGroupMemberFragments(groupIDs[i])[choiceIndex]; - fragID.delete(0, fragID.length()); - fragID.append(choiceFrag.getID()); -%> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=i + tableContainerIDBase%>','<%=i + twistImageNameBase%>')"><img name="<%=i + twistImageNameBase%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=wsdlPerspective.getMessage("FORM_LABEL_GROUP_NUMBER", String.valueOf(i + 1))%> - </td> - </tr> - </table> - <span id="<%=i + tableContainerIDBase%>"> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <td width=16> - <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td> - <jsp:include page="<%=choiceFrag.getReadFragment()%>" flush="true"/> - </td> - </tr> - </table> - </span> -<% - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRangeWFragmentJSP.jsp deleted file mode 100644 index e9674b8b0..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRangeWFragmentJSP.jsp +++ /dev/null @@ -1,136 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<script language="javascript"> - function choose(select) { - for (var i = 0; i < select.options.length; i++) { - var tableContainerID = '<%=FragmentConstants.TABLE_ID%>'; - tableContainerID += select.options(i).value; - showTable(tableContainerID, select.options(i).selected); - } - } - - function showTable(tableContainerID, show) { - var tableContainer = document.getElementById(tableContainerID); - if (show) - tableContainer.style.display = ""; - else - tableContainer.style.display = "none"; - } -</script> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDGroupChoiceFragment frag = (IXSDGroupChoiceFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); -%> -<a name="<%=nameAnchorID%>"/> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:createInstance('<%=tableContainerID%>', <%=xsdConfig.getMaxOccurs()%>, '<%=fragID%>', '<%=nameAnchorID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_CHOICES")%></th> - <th class="headercolor" width="100%" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_ELEMENTS")%></th> - </tr> -<% - XSDParticle[] choices = frag.getChoices(); - String[] groupIDs = frag.getGroupIDs(); - for (int i = 0; i < groupIDs.length || i < xsdConfig.getMinOccurs(); i++) { - String groupID; - int choiceIndex; - if (i < groupIDs.length) { - groupID = groupIDs[i]; - choiceIndex = frag.getChoiceIndex(groupID); - } - else { - groupID = frag.createGroupChoiceInstance(0); - choiceIndex = 0; - } - IXSDFragment[] choiceFrags = frag.getGroupMemberFragments(groupID); -%> - <tr> - <td class="checkboxcells" width=10> - <input type="checkbox" onClick="handleRowCheckboxClick()" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"> - </td> - <td class="tablecells"> - <input type="hidden" name="<%=frag.getID()%>" value="<%=groupID%>"> - <select id="<%=groupID%>" name="<%=groupID%>" onChange="javascript:choose(this)" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_SELECT_CHOICES")%>"> -<% - for (int j = 0; j < choiceFrags.length; j++) { - XSDElementDeclaration xsdElement = (XSDElementDeclaration)choiceFrags[j].getXSDToFragmentConfiguration().getXSDComponent(); - if (j == choiceIndex) { -%> - <option value="<%=choiceFrags[j].getID()%>" selected><%=xsdElement.getQName()%> -<% - } - else { -%> - <option value="<%=choiceFrags[j].getID()%>"><%=xsdElement.getQName()%> -<% - } - } -%> - </select> - </td> - <td class="tablecells"> -<% - for (int j = 0; j < choiceFrags.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(choiceFrags[j].getID()); - String choiceFragTableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(choiceFrags[j].getID()).toString(); -%> - <span id="<%=choiceFragTableContainerID%>"> - <jsp:include page="<%=choiceFrags[j].getWriteFragment()%>" flush="true"/> - </span> - <script language="javascript"> - showTable('<%=choiceFragTableContainerID%>', <%=(j == choiceIndex)%>); - </script> -<% - } -%> - </td> - </tr> -<% - } -%> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupRFragmentJSP.jsp deleted file mode 100644 index 40d7db597..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupRFragmentJSP.jsp +++ /dev/null @@ -1,89 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDGroupFragment frag = (IXSDGroupFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerIDBase = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageNameBase = (new StringBuffer("x")).append(tableContainerIDBase).toString(); -String[] groupIDs = frag.getGroupIDs(); -if (groupIDs.length == 1) { - IXSDFragment[] groupMemberFragments = frag.getGroupMemberFragments(groupIDs[0]); -%> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% - for (int i = 0; i < groupMemberFragments.length; i++) { - fragID.delete(0, fragID.length()); - fragID.append(groupMemberFragments[i].getID()); -%> - <tr> - <td> - <jsp:include page="<%=groupMemberFragments[i].getReadFragment()%>" flush="true"/> - </td> - </tr> -<% - } -%> - </table> -<% -} -else { - for (int i = 0; i < groupIDs.length; i++) { - IXSDFragment[] groupMemberFragments = frag.getGroupMemberFragments(groupIDs[i]); -%> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=i + tableContainerIDBase%>','<%=i + twistImageNameBase%>')"><img name="<%=i + twistImageNameBase%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=wsdlPerspective.getMessage("FORM_LABEL_GROUP_NUMBER", String.valueOf(i + 1))%> - </td> - </tr> - </table> - <span id="<%=i + tableContainerIDBase%>"> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% - for (int j = 0; j < groupMemberFragments.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(groupMemberFragments[j].getID()); -%> - <tr> - <td width=16> - <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>"> - </td> - <td> - <jsp:include page="<%=groupMemberFragments[j].getReadFragment()%>" flush="true"/> - </td> - </tr> -<% - } -%> - </table> - </span> -<% - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqFixWFragmentJSP.jsp deleted file mode 100644 index 55d81c059..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqFixWFragmentJSP.jsp +++ /dev/null @@ -1,55 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDGroupSeqFragment frag = (IXSDGroupSeqFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String[] groupIDs = frag.getGroupIDs(); -for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - String groupID; - if (i < groupIDs.length) - groupID = groupIDs[i]; - else - groupID = frag.createGroupSeqInstance(); - IXSDFragment[] groupMemberFragments = frag.getGroupMemberFragments(groupID); -%> - <input type="hidden" name="<%=frag.getID()%>" value="<%=groupID%>"> - <table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% - for (int j = 0; j < groupMemberFragments.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(groupMemberFragments[j].getID()); -%> - <tr> - <td> - <jsp:include page="<%=groupMemberFragments[j].getWriteFragment()%>" flush="true"/> - </td> - </tr> -<% - } -%> - </table> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqRangeWFragmentJSP.jsp deleted file mode 100644 index 7a3954c5a..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqRangeWFragmentJSP.jsp +++ /dev/null @@ -1,85 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDGroupSeqFragment frag = (IXSDGroupSeqFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); -%> -<a name="<%=nameAnchorID%>"/> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:createInstance('<%=tableContainerID%>', <%=xsdConfig.getMaxOccurs()%>, '<%=fragID%>', '<%=nameAnchorID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_ELEMENTS")%></th> - </tr> - <% - String[] groupIDs = frag.getGroupIDs(); - for (int i = 0; i < groupIDs.length || i < xsdConfig.getMinOccurs(); i++) { - String groupID; - if (i < groupIDs.length) - groupID = groupIDs[i]; - else - groupID = frag.createGroupSeqInstance(); - IXSDFragment[] groupMemberFragments = frag.getGroupMemberFragments(groupID); - %> - <tr> - <td class="checkboxcells" width=10> - <input type="checkbox" onClick="handleRowCheckboxClick()" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"> - </td> - <td class="tablecells"> - <input type="hidden" name="<%=frag.getID()%>" value="<%=groupID%>"> - <% - for (int j = 0; j < groupMemberFragments.length; j++) { - fragID.delete(0, fragID.length()); - fragID.append(groupMemberFragments[j].getID()); - %> - <jsp:include page="<%=groupMemberFragments[j].getWriteFragment()%>" flush="true"/> - <% - } - %> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfoDialog.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfoDialog.jsp deleted file mode 100644 index d6c86ea15..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfoDialog.jsp +++ /dev/null @@ -1,52 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.actions.*, - java.net.*" %> - -<% - String sessionId = request.getParameter(ActionInputs.SESSIONID); - HttpSession currentSession = (HttpSession)application.getAttribute(sessionId); - Controller controller = (Controller)currentSession.getAttribute("controller"); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - String nodeId = request.getParameter(ActionInputs.NODEID); - String fragmentId = request.getParameter(WSDLActionInputs.FRAGMENT_ID); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title> - <%=wsdlPerspective.getMessage("TITLE_XSD_INFORMATION_DIALOG")%> - </title> -</head> -<frameset rows="33,*" border=0 bgcolor="#ECE9D8"> -<% - StringBuffer link = new StringBuffer("wsdl/fragment/XSDInfo_toolbar.jsp?"); - link.append(ActionInputs.SESSIONID).append('=').append(sessionId); - link.append('&').append(ActionInputs.NODEID).append('=').append(nodeId); - link.append('&').append(WSDLActionInputs.FRAGMENT_ID).append('=').append(fragmentId); -%> - <frame name="<%=WSDLFrameNames.XSD_INFO_TOOLBAR%>" title="<%=controller.getMessage("FRAME_TITLE_XSD_INFORMATION_TOOLBAR")%>" src="<%=response.encodeURL(controller.getPathWithContext(link.toString()))%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> -<% - link.setLength(0); - link.append("wsdl/fragment/XSDInfo_content.jsp?"); - link.append(ActionInputs.SESSIONID).append('=').append(sessionId); - link.append('&').append(ActionInputs.NODEID).append('=').append(nodeId); - link.append('&').append(WSDLActionInputs.FRAGMENT_ID).append('=').append(fragmentId); -%> - <frame name="<%=WSDLFrameNames.XSD_INFO_CONTENT%>" title="<%=controller.getMessage("FRAME_TITLE_XSD_INFORMATION_CONTENT")%>" src="<%=response.encodeURL(controller.getPathWithContext(link.toString()))%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> -</frameset> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_content.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_content.jsp deleted file mode 100644 index 81ed2ac87..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_content.jsp +++ /dev/null @@ -1,47 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> - -<jsp:useBean id="sessionID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> -<% - sessionID.append(request.getParameter(ActionInputs.SESSIONID)); - fragID.append(request.getParameter(WSDLActionInputs.FRAGMENT_ID)); - - HttpSession currentSession = (HttpSession)application.getAttribute(sessionID.toString()); - Controller controller = (Controller)currentSession.getAttribute("controller"); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - nodeID.append(request.getParameter(ActionInputs.NODEID)); - Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); - WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); - IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_XSD_INFORMATION_CONTENT")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> -<jsp:include page="<%=frag.getInformationFragment()%>" flush="true"/> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_toolbar.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_toolbar.jsp deleted file mode 100644 index 85a008f96..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_toolbar.jsp +++ /dev/null @@ -1,50 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> - -<% - String sessionId = request.getParameter(ActionInputs.SESSIONID); - HttpSession currentSession = (HttpSession)application.getAttribute(request.getParameter(ActionInputs.SESSIONID)); - Controller controller = (Controller)currentSession.getAttribute("controller"); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(request.getParameter(ActionInputs.NODEID))); - WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); - IXSDFragment frag = operElement.getFragmentByID(request.getParameter(WSDLActionInputs.FRAGMENT_ID)); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_XSD_INFORMATION_TOOLBAR")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/toolbar.css"))%>"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" onUnload="top.opener.xsdInfoDialogClosed=true" class="toolbarbodymargin"> -<div id="toolbarborder"> - <div id="toolbar"> - <table width="100%" height=25 cellpadding=0 cellspacing=0 border=0> - <tr> - <td valign="middle" align="center" width=25 height=25><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/wsdl.gif"))%>" width=16 height=16></td> - <td valign="middle" align="left" width="*" height=25 nowrap class="text"><%=frag.getName()%></td> - </tr> - </table> - </div> -</div> -<script language="javascript"> - top.opener.xsdInfoDialogClosed = false; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeFixWFragmentJSP.jsp deleted file mode 100644 index 68391d371..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeFixWFragmentJSP.jsp +++ /dev/null @@ -1,78 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.impl.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -String fragIDString = fragID.toString(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); -XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=fragIDString%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=(xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())%> - </td> - <td> - <% - if (!frag.validateParameterValues(fragIDString)) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - %> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <% - for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - %> - <tr> - <td width="60%"> - <% - String value = frag.getParameterValue(frag.getID(), i); - %> - <input type="text" id="<%=frag.getID()%>" name="<%=fragIDString%>" value="<%=((value != null) ? value : "")%>" size="50" class="tabletextenter"> - </td> - <td valign="center" align="left" nowrap> - <a href="javascript:openCalendarBrowser(<%=request.getParameter(ActionInputs.CALENDAR_TYPE)%>,'contentborder','<%=fragIDString%>',<%=i%>)"><%=controller.getMessage("FORM_LINK_BROWSE")%></a> - </td> - <td nowrap width="30%"> </td> - </tr> - <% - } - %> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeRangeWFragmentJSP.jsp deleted file mode 100644 index a482df110..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeRangeWFragmentJSP.jsp +++ /dev/null @@ -1,97 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); -XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -int calendarType = Integer.parseInt(request.getParameter(ActionInputs.CALENDAR_TYPE)); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=(xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())%> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:addSimpleAtomicDateTimeRows(<%=calendarType%>,'<%=tableContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', null, <%=xsdConfig.getMaxOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedDateTimeRows(<%=calendarType%>,'<%=tableContainerID%>',<%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td> - <% - if (!frag.validateParameterValues(frag.getID())) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - %> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th width="90%" class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_VALUES")%></th> - <th class="headercolor"><%=controller.getMessage("FORM_LABEL_ACTIONS")%></th> - </tr> -</table> -</span> -<% -String[] values = frag.getParameterValues(frag.getID()); -int i = 0; -if (values != null) { - for ( ; i < values.length; i++) { -%> - <script language="javascript"> - addSimpleAtomicDateTimeRows(<%=calendarType%>,"<%=tableContainerID%>","<%=frag.getID()%>","<%=frag.getID()%>","<%=values[i]%>",<%=xsdConfig.getMaxOccurs()%>); - </script> -<% - } -} -for ( ; i < xsdConfig.getMinOccurs(); i++) { -%> - <script language="javascript"> - addSimpleAtomicDateTimeRows(<%=calendarType%>,"<%=tableContainerID%>","<%=frag.getID()%>","<%=frag.getID()%>",null,<%=xsdConfig.getMaxOccurs()%>); - </script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumFixWFragmentJSP.jsp deleted file mode 100644 index 01092d739..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumFixWFragmentJSP.jsp +++ /dev/null @@ -1,93 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.impl.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); - WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); - XSDSimpleAtomicEnumFragment frag = (XSDSimpleAtomicEnumFragment)operElement.getFragmentByID(fragID.toString()); - XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); - XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); - XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=(xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())%> - </td> - <td> -<% - if (!frag.validateParameterValues(frag.getID())) - { -%> - <%=HTMLUtils.redAsterisk()%> -<% - } -%> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% - OptionVector optionVector = frag.getOptionVector(); - for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) - { -%> - <tr> - <td> -<% - String selectedValue = frag.getParameterValue(frag.getID(), i); -%> - <select id="<%=frag.getID()%>" name="<%=frag.getID()%>" class="selectlist"> -<% - for (int j = 0; j < optionVector.size(); j++) - { - String displayValue = optionVector.getDisplayValue(j); - String value = optionVector.getValue(j); - if (value.equals(selectedValue)) - { -%> - <option value="<%=value%>" selected><%=displayValue%> -<% - } - else - { -%> - <option value="<%=value%>"><%=displayValue%> -<% - } - } -%> - </select> - </td> - </tr> -<% - } - %> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumRangeWFragmentJSP.jsp deleted file mode 100644 index 7283b87ac..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumRangeWFragmentJSP.jsp +++ /dev/null @@ -1,149 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.impl.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.emf.common.util.EList, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); - WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); - XSDSimpleAtomicEnumFragment frag = (XSDSimpleAtomicEnumFragment)operElement.getFragmentByID(fragID.toString()); - OptionVector optionVector = frag.getOptionVector(); - XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); - XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); - XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); - String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); - String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); - String optionsContainerID = (new StringBuffer(FragmentConstants.XSD_ATOMIC_ENUM_ID)).append(frag.getID()).toString(); -%> -<span id="<%=optionsContainerID%>"> -<% - for (int j = 0; j < optionVector.size(); j++) { -%> - <input type="hidden" name="<%=optionsContainerID%>" value="<%=optionVector.getDisplayValue(j)%>"> - <input type="hidden" name="<%=optionsContainerID%>" value="<%=optionVector.getValue(j)%>"> -<% - } -%> -</span> -<script language="javascript"> - function addSimpleAtomicEnumRows(tableContainerID, optionsContainerID, id, name, value, maxOccurs) { - if (checkMaxOccursReached(tableContainerID, maxOccurs)) - return; - twistOpen(tableContainerID); - var table = getTable(tableContainerID); - var tableBody = table.getElementsByTagName("tbody").item(0); - var newRow = document.createElement("tr"); - var column0 = document.createElement("td"); - var column1 = document.createElement("td"); - - var rowCheckbox = createRowCheckbox(); - column0.appendChild(rowCheckbox); - - var select = document.createElement("select"); - column1.appendChild(select); - select.id = id; - select.name = name; - select.className = "selectlist"; - var options = getOptions(optionsContainerID); - var index = 0; - for (var k = 0; k < options.length; k += 2) { - select.options[index] = new Option(options[k].value,options[k+1].value); - if (value != null && value == options[k+1].value) - select.options[index].selected = true; - index++; - } - - column0.className = "checkboxcells"; - column1.className = "tablecells"; - newRow.appendChild(column0); - newRow.appendChild(column1); - tableBody.appendChild(newRow); - } - - function getOptions(optionsContainerID) { - var optionsContainer = document.getElementById(optionsContainerID); - var options = optionsContainer.getElementsByTagName("input"); - return options; - } -</script> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=(xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())%> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:addSimpleAtomicEnumRows('<%=tableContainerID%>', '<%=optionsContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', null, <%=xsdConfig.getMaxOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td> - <% - if (!frag.validateParameterValues(frag.getID())) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - %> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_VALUES")%></th> - </tr> -</table> -</span> -<% -String[] values = frag.getParameterValues(frag.getID()); -int i = 0; -if (values != null) { - for ( ; i < values.length; i++) { -%> - <script language="javascript"> - addSimpleAtomicEnumRows('<%=tableContainerID%>', '<%=optionsContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', '<%=values[i]%>', '<%=xsdConfig.getMaxOccurs()%>'); - </script> -<% - } -} -for ( ; i < xsdConfig.getMinOccurs(); i++) { -%> - <script language="javascript"> - addSimpleAtomicEnumRows('<%=tableContainerID%>', '<%=optionsContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', null, '<%=xsdConfig.getMaxOccurs()%>'); - </script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicFixWFragmentJSP.jsp deleted file mode 100644 index 877601de6..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicFixWFragmentJSP.jsp +++ /dev/null @@ -1,72 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.impl.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); -XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); -%> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=(xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())%> - </td> - <td> - <% - if (!frag.validateParameterValues(frag.getID())) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - %> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <% - for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - %> - <tr> - <td> - <% - String value = frag.getParameterValue(frag.getID(), i); - %> - <input type="text" id="<%=frag.getID()%>" name="<%=frag.getID()%>" value="<%=((value != null) ? value : "")%>" size="50" class="tabletextenter"> - </td> - </tr> - <% - } - %> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicInfoFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicInfoFragmentJSP.jsp deleted file mode 100644 index e2ceffa78..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicInfoFragmentJSP.jsp +++ /dev/null @@ -1,323 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.emf.common.util.EList, - org.eclipse.xsd.*, - java.util.*" %> - -<jsp:useBean id="sessionID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> -<% -HttpSession currentSession = (HttpSession)application.getAttribute(sessionID.toString()); -Controller controller = (Controller)currentSession.getAttribute("controller"); -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDToFragmentConfiguration().getXSDComponent(); - -int minLength = -1; -int maxLength = -1; -Vector patternVector = new Vector(); -String whiteSpace = null; -boolean minExclusive = true; -Object min = null; -boolean maxExclusive = true; -Object max = null; -int totalDigits = -1; -int fractionDigits = -1; - -XSDSimpleTypeDefinition currType = simpleType; -while (!XSDTypeDefinitionUtil.isRootTypeDefinition(currType)) { - // minLength - if (minLength < 0) { - XSDLengthFacet xsdLengthFacet = currType.getLengthFacet(); - XSDMinLengthFacet xsdMinLengthFacet = currType.getMinLengthFacet(); - // port to org.eclipse.xsd - if (xsdLengthFacet != null) - minLength = xsdLengthFacet.getValue(); - else if (xsdMinLengthFacet != null) - minLength = xsdMinLengthFacet.getValue(); - } - // maxLength - if (maxLength < 0) { - XSDLengthFacet xsdLengthFacet = currType.getLengthFacet(); - XSDMaxLengthFacet xsdMaxLengthFacet = currType.getMaxLengthFacet(); - // port to org.eclipse.xsd - if (xsdLengthFacet != null) - maxLength = xsdLengthFacet.getValue(); - else if (xsdMaxLengthFacet != null) - maxLength = xsdMaxLengthFacet.getValue(); - } - // patternVector - EList xsdPatternFacets = currType.getPatternFacets(); - if (xsdPatternFacets != null) { - for (int i = 0; i < xsdPatternFacets.size(); i++) { - XSDPatternFacet xsdPatternFacet = (XSDPatternFacet)xsdPatternFacets.get(i); - EList patterns = xsdPatternFacet.getValue(); - for (int j = 0; j < patterns.size(); j++) { - patternVector.add(patterns.get(j)); - } - } - } - // whiteSpace - if (whiteSpace == null) { - XSDWhiteSpaceFacet xsdWhiteSpaceFacet = currType.getWhiteSpaceFacet(); - // port to org.eclipse.xsd - if (xsdWhiteSpaceFacet != null) - whiteSpace = xsdWhiteSpaceFacet.getValue().getName(); - } - // min in/exclusive - if (min == null ) { - XSDMinExclusiveFacet xsdMinExclusiveFacet = currType.getMinExclusiveFacet(); - XSDMinInclusiveFacet xsdMinInclusiveFacet = currType.getMinInclusiveFacet(); - if (xsdMinExclusiveFacet != null) { - min = xsdMinExclusiveFacet.getValue(); - minExclusive = true; - } - else if (xsdMinInclusiveFacet != null) { - min = xsdMinInclusiveFacet.getValue(); - minExclusive = false; - } - } - // max in/exclusive - if (max == null) { - XSDMaxExclusiveFacet xsdMaxExclusiveFacet = currType.getMaxExclusiveFacet(); - XSDMaxInclusiveFacet xsdMaxInclusiveFacet = currType.getMaxInclusiveFacet(); - if (xsdMaxExclusiveFacet != null) { - max = xsdMaxExclusiveFacet.getValue(); - maxExclusive = true; - } - else if (xsdMaxInclusiveFacet != null) { - max = xsdMaxInclusiveFacet.getValue(); - maxExclusive = false; - } - } - // totalDigits - if (totalDigits < 0) { - XSDTotalDigitsFacet xsdTotalDigitsFacet = currType.getTotalDigitsFacet(); - if (xsdTotalDigitsFacet != null) - totalDigits = xsdTotalDigitsFacet.getValue(); - } - // fractionDigits - if (fractionDigits < 0) { - XSDFractionDigitsFacet xsdFractionDigitsFacet = currType.getFractionDigitsFacet(); - if (xsdFractionDigitsFacet != null) - fractionDigits = xsdFractionDigitsFacet.getValue(); - } - // walk to base type - currType = currType.getBaseTypeDefinition(); -} -%> - -<jsp:include page="/wsdl/fragment/XSDDefaultInfoFragmentJSP.jsp" flush="true"/> - -<table> - <tr> - <td height=20> </td> - </tr> -</table> -<table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_BASE_TYPE")%> - </th> - </tr> - <tr> - <td class="tablecells"> - <%=XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType).getName()%> - </td> - </tr> -</table> - -<% -String minLengthString = (minLength < 0) ? wsdlPerspective.getMessage("FORM_LABEL_UNBOUNDED") : String.valueOf(minLength); -String maxLengthString = (maxLength < 0) ? wsdlPerspective.getMessage("FORM_LABEL_UNBOUNDED") : String.valueOf(maxLength); -String[] lengthValues = {minLengthString, maxLengthString}; -if (minLength >= 0 || maxLength >= 0) { -%> - <table> - <tr> - <td height=20> </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_LENGTH")%> - </th> - </tr> - <tr> - <td class="tablecells"> - <%=wsdlPerspective.getMessage("FORM_LABEL_LENGTH_VALUE", lengthValues)%> - </td> - </tr> - </table> -<% -} -%> - -<% -if (patternVector.size() > 0) { - String patternContainerID = "::pattern"; - String xpatternContainerID = "x::pattern"; -%> - <table> - <tr> - <td height=20> </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=patternContainerID%>','<%=xpatternContainerID%>')"><img name="<%=xpatternContainerID%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <strong><%=wsdlPerspective.getMessage("FORM_LABEL_PATTERN")%></strong> - </td> - </tr> - </table> - <span id="<%=patternContainerID%>"> - <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_PATTERN")%> - </th> - </tr> - <% - for (int k = 0; k < patternVector.size(); k++) { - %> - <tr> - <td class="tablecells"> - <%=(String)patternVector.get(k)%> - </td> - </tr> - <% - } - %> - </table> - </span> -<% -} -%> - -<% -if (whiteSpace != null) { -%> - <table> - <tr> - <td height=20> </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_WHITESPACE")%> - </th> - </tr> - <tr> - <td class="tablecells"> - <%=whiteSpace%> - </td> - </tr> - </table> -<% -} -%> - -<% -String lowerBound; -if (minExclusive) - lowerBound = wsdlPerspective.getMessage("FORM_LABEL_MIN_EXCLUSIVE", (min == null) ? wsdlPerspective.getMessage("FORM_LABEL_UNBOUNDED") : min.toString()); -else - lowerBound = wsdlPerspective.getMessage("FORM_LABEL_MIN_INCLUSIVE", (min == null) ? wsdlPerspective.getMessage("FORM_LABEL_UNBOUNDED") : min.toString()); -String upperBound; -if (maxExclusive) - upperBound = wsdlPerspective.getMessage("FORM_LABEL_MAX_EXCLUSIVE", (max == null) ? wsdlPerspective.getMessage("FORM_LABEL_UNBOUNDED") : max.toString()); -else - upperBound = wsdlPerspective.getMessage("FORM_LABEL_MAX_INCLUSIVE", (max == null) ? wsdlPerspective.getMessage("FORM_LABEL_UNBOUNDED") : max.toString()); -if (min != null || max != null) { -%> - <table> - <tr> - <td height=20> </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_RANGE_OF_VALUES")%> - </th> - </tr> - <tr> - <td class="tablecells"> - <%=lowerBound + upperBound%> - </td> - </tr> - </table> -<% -} -%> - -<% -if (totalDigits >= 0) { -%> - <table> - <tr> - <td height=20> </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_TOTAL_DIGITS")%> - </th> - </tr> - <tr> - <td class="tablecells"> - <%=totalDigits%> - </td> - </tr> - </table> -<% -} -%> - -<% -if (fractionDigits >= 0) { -%> - <table> - <tr> - <td height=20> </td> - </tr> - </table> - <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder"> - <tr> - <th class="singleheadercolor" height=20 valign="bottom" align="left"> - <%=wsdlPerspective.getMessage("FORM_LABEL_FRACTION_DIGITS")%> - </th> - </tr> - <tr> - <td class="tablecells"> - <%=fractionDigits%> - </td> - </tr> - </table> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRFragmentJSP.jsp deleted file mode 100644 index 4fdd4b64d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRFragmentJSP.jsp +++ /dev/null @@ -1,60 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); -XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); -String[] labelArgs = {frag.getName(), (xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())}; -String[] params = frag.getParameterValues(frag.getID()); -%> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> - <tr> - <th id="<%=frag.getID()%>" class="labels" height=25 valign="bottom" align="left" nowrap> - <%=wsdlPerspective.getMessage("FORM_LABEL_ATOMIC_NAME_TYPE", labelArgs)%> - </th> - <td headers="<%=frag.getID()%>" class="labels" height=25 width="100%" valign="bottom" align="left" nowrap> - <%=((params != null && params.length > 0) ? HTMLUtils.charactersToHTMLEntities(params[0]) : wsdlPerspective.getMessage("FORM_LABEL_NULL"))%> - </td> - </tr> - <% - if (params != null) { - for (int i = 1; i < params.length; i++) { - %> - <tr> - <td class="labels" height=25 valign="bottom" align="left" nowrap></td> - <td headers="<%=frag.getID()%>" class="labels" height=25 width="100%" valign="bottom" align="left" nowrap> - <%=HTMLUtils.charactersToHTMLEntities(params[i])%> - </td> - </tr> - <% - } - } - %> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRangeWFragmentJSP.jsp deleted file mode 100644 index e239e78bf..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRangeWFragmentJSP.jsp +++ /dev/null @@ -1,124 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.util.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDFragment frag = operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition)frag.getXSDTypeDefinition(); -XSDTypeDefinition xsdBuiltInType = XSDTypeDefinitionUtil.resolveToXSDBuiltInTypeDefinition(simpleType); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -%> -<script language="javascript"> - function addSimpleAtomicRows(tableContainerID, id, name, value, maxOccurs) { - if (checkMaxOccursReached(tableContainerID, maxOccurs)) - return; - twistOpen(tableContainerID); - var table = getTable(tableContainerID); - var tableBody = table.getElementsByTagName("tbody").item(0); - var newRow = document.createElement("tr"); - var column0 = document.createElement("td"); - var column1 = document.createElement("td"); - - var rowCheckbox = createRowCheckbox(); - column0.appendChild(rowCheckbox); - - var input = document.createElement("input"); - column1.appendChild(input); - input.type = "text"; - input.id = id; - input.name = name; - if (value != null && value.length > 0) - input.value = value; - input.className = "tabletextenter"; - - column0.className = "checkboxcells"; - column1.className = "tablecells"; - newRow.appendChild(column0); - newRow.appendChild(column1); - tableBody.appendChild(newRow); - } -</script> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <label for="<%=frag.getID()%>"><a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a></label> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <%=(xsdBuiltInType != null ? xsdBuiltInType.getName() : simpleType.getName())%> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:addSimpleAtomicRows('<%=tableContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', null, <%=xsdConfig.getMaxOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td> - <% - if (!frag.validateParameterValues(frag.getID())) { - %> - <%=HTMLUtils.redAsterisk()%> - <% - } - %> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_VALUES")%></th> - </tr> -</table> -</span> -<% -String[] values = frag.getParameterValues(frag.getID()); -int i = 0; -if (values != null) { - for ( ; i < values.length; i++) { -%> - <script language="javascript"> - addSimpleAtomicRows('<%=tableContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', '<%=values[i]%>', '<%=xsdConfig.getMaxOccurs()%>'); - </script> -<% - } -} -for ( ; i < xsdConfig.getMinOccurs(); i++) { -%> - <script language="javascript"> - addSimpleAtomicRows('<%=tableContainerID%>', '<%=frag.getID()%>', '<%=frag.getID()%>', null, '<%=xsdConfig.getMaxOccurs()%>'); - </script> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListFixWFragmentJSP.jsp deleted file mode 100644 index 09c2300ac..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListFixWFragmentJSP.jsp +++ /dev/null @@ -1,57 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDSimpleListFragment frag = (IXSDSimpleListFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -IXSDFragment[] childFrags = frag.getAllFragments(); -%> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% -for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - IXSDFragment childFrag; - String childFragID; - if (i < childFrags.length) { - childFrag = childFrags[i]; - childFragID = childFrag.getID(); - } - else { - childFragID = frag.createListInstance(); - childFrag = frag.getFragment(childFragID); - } - fragID.delete(0, fragID.length()); - fragID.append(childFragID); -%> - <tr> - <td> - <input type="hidden" name="<%=frag.getID()%>" value="<%=childFragID%>"> - <jsp:include page="<%=childFrag.getWriteFragment()%>" flush="true"/> - </td> - </tr> -<% -} -%> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRFragmentJSP.jsp deleted file mode 100644 index 032861858..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRFragmentJSP.jsp +++ /dev/null @@ -1,45 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDSimpleListFragment frag = (IXSDSimpleListFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -IXSDFragment[] childFrags = frag.getAllFragments(); -%> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% -for (int i = 0; i < childFrags.length; i++) { - fragID.delete(0, fragID.length()); - fragID.append(childFrags[i].getID()); -%> - <tr> - <td> - <jsp:include page="<%=childFrags[i].getReadFragment()%>" flush="true"/> - </td> - </tr> -<% -} -%> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRangeWFragmentJSP.jsp deleted file mode 100644 index 6f7c2d117..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRangeWFragmentJSP.jsp +++ /dev/null @@ -1,87 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDSimpleListFragment frag = (IXSDSimpleListFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); -%> -<a name="<%=nameAnchorID%>"/> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:createInstance('<%=tableContainerID%>', <%=xsdConfig.getMaxOccurs()%>, '<%=fragID%>', '<%=nameAnchorID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor"><%=wsdlPerspective.getMessage("FORM_LABEL_LIST_ITEMS")%></th> - </tr> - <% - IXSDFragment[] childFrags = frag.getAllFragments(); - for (int i = 0; i < childFrags.length || i < xsdConfig.getMinOccurs(); i++) { - IXSDFragment childFrag; - String childFragID; - if (i < childFrags.length) { - childFrag = childFrags[i]; - childFragID = childFrag.getID(); - } - else { - childFragID = frag.createListInstance(); - childFrag = frag.getFragment(childFragID); - } - fragID.delete(0, fragID.length()); - fragID.append(childFragID); - %> - <tr> - <td class="checkboxcells" width=10> - <input type="checkbox" onClick="handleRowCheckboxClick()" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"> - </td> - <td class="tablecells"> - <input type="hidden" name="<%=frag.getID()%>" value="<%=childFragID%>"> - <jsp:include page="<%=childFrag.getWriteFragment()%>" flush="true"/> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionFixWFragmentJSP.jsp deleted file mode 100644 index 9407bde38..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionFixWFragmentJSP.jsp +++ /dev/null @@ -1,128 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDSimpleUnionFragment frag = (IXSDSimpleUnionFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -%> -<script language="javascript"> - function changeUnionMemberType(select) { - for (var i = 0; i < select.options.length; i++) { - var tableContainerID = '<%=FragmentConstants.TABLE_ID%>'; - tableContainerID += select.options(i).value; - showTable(tableContainerID, select.options(i).selected); - } - } - - function showTable(tableContainerID, show) { - var tableContainer = document.getElementById(tableContainerID); - if (show) - tableContainer.style.display = ""; - else - tableContainer.style.display = "none"; - } -</script> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="headercolor" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_UNION_TYPE")%></th> - <th class="headercolor" width="100%" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_UNION_MEMBERS")%></th> - </tr> - <% - XSDSimpleTypeDefinition[] memberTypes = frag.getMemberTypeDefinitions(); - IXSDFragment[] memberFrags = frag.getAllFragments(); - for (int i = 0; i < xsdConfig.getMaxOccurs(); i++) { - int typeSelectionIndex = 0; - String[] newMemberFragIDs = new String[memberTypes.length]; - IXSDFragment[] newMemberFrags = new IXSDFragment[memberTypes.length]; - for (int j = 0; j < memberTypes.length; j++) { - if (i < memberFrags.length && memberFrags[i].getXSDTypeDefinition().getQName().equals(memberTypes[j].getQName())) { - newMemberFragIDs[j] = memberFrags[i].getID(); - newMemberFrags[j] = memberFrags[i]; - typeSelectionIndex = j; - } - else { - newMemberFragIDs[j] = frag.createUnionInstance(j); - newMemberFrags[j] = frag.getFragment(newMemberFragIDs[j]); - } - } - %> - <tr> - <td class="tablecells"> - <select id="<%=frag.getID()%>" name="<%=frag.getID()%>" onChange="javascript:changeUnionMemberType(this)" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_SELECT_UNION_TYPE")%>"> - <% - for (int k = 0; k < memberTypes.length; k++) { - if (k == typeSelectionIndex) { - %> - <option value="<%=newMemberFragIDs[k]%>" selected><%=memberTypes[k].getQName()%> - <% - } - else { - %> - <option value="<%=newMemberFragIDs[k]%>"><%=memberTypes[k].getQName()%> - <% - } - } - %> - </select> - </td> - <td class="tablecells"> - <% - for (int l = 0; l < memberTypes.length; l++) { - fragID.delete(0, fragID.length()); - fragID.append(newMemberFragIDs[l]); - String memberTableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(newMemberFrags[l].getID()).toString(); - %> - <span id="<%=memberTableContainerID%>"> - <jsp:include page="<%=newMemberFrags[l].getWriteFragment()%>" flush="true"/> - </span> - <script language="javascript"> - showTable('<%=memberTableContainerID%>', <%=(l == typeSelectionIndex)%>); - </script> - <% - } - %> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRFragmentJSP.jsp deleted file mode 100644 index ae61fe552..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRFragmentJSP.jsp +++ /dev/null @@ -1,44 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node operNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)operNode.getTreeElement(); -IXSDSimpleUnionFragment frag = (IXSDSimpleUnionFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -IXSDFragment[] childFrags = frag.getAllFragments(); -%> -<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>"> -<% -for (int i = 0; i < childFrags.length; i++) { - fragID.delete(0, fragID.length()); - fragID.append(childFrags[i].getID()); -%> - <tr> - <td> - <jsp:include page="<%=childFrags[i].getReadFragment()%>" flush="true"/> - </td> - </tr> -<% -} -%> -</table> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRangeWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRangeWFragmentJSP.jsp deleted file mode 100644 index 0013387d5..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRangeWFragmentJSP.jsp +++ /dev/null @@ -1,141 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.xsd.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/> -<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); -WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); -IXSDSimpleUnionFragment frag = (IXSDSimpleUnionFragment)operElement.getFragmentByID(fragID.toString()); -XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); -String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); -String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); -String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); -%> -<script language="javascript"> - function changeUnionMemberType(select) { - for (var i = 0; i < select.options.length; i++) { - var tableContainerID = '<%=FragmentConstants.TABLE_ID%>'; - tableContainerID += select.options(i).value; - showTable(tableContainerID, select.options(i).selected); - } - } - - function showTable(tableContainerID, show) { - var tableContainer = document.getElementById(tableContainerID); - if (show) - tableContainer.style.display = ""; - else - tableContainer.style.display = "none"; - } -</script> -<a name="<%=nameAnchorID%>"/> -<table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td height=25 valign="bottom" align="left" nowrap width=11> - <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:createInstance('<%=tableContainerID%>', <%=xsdConfig.getMaxOccurs()%>, '<%=fragID%>', '<%=nameAnchorID%>')"><%=wsdlPerspective.getMessage("FORM_LINK_ADD")%></a> - </td> - <td class="labels" height=25 valign="bottom" align="left" nowrap> - <a href="javascript:checkMinOccursAndRemoveSelectedRows('<%=tableContainerID%>', <%=xsdConfig.getMinOccurs()%>)"><%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%></a> - </td> - <td nowrap width="90%"> </td> - </tr> -</table> -<span id="<%=tableContainerID%>"> -<table cellpadding=3 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "rangefragtable" : "innerrangefragtable")%>"> - <tr> - <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerID%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th> - <th class="headercolor" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_UNION_TYPE")%></th> - <th class="headercolor" width="100%" nowrap><%=wsdlPerspective.getMessage("FORM_LABEL_UNION_MEMBERS")%></th> - </tr> - <% - XSDSimpleTypeDefinition[] memberTypes = frag.getMemberTypeDefinitions(); - IXSDFragment[] memberFrags = frag.getAllFragments(); - for (int i = 0; i < memberFrags.length || i < xsdConfig.getMinOccurs(); i++) { - int typeSelectionIndex = 0; - String[] newMemberFragIDs = new String[memberTypes.length]; - IXSDFragment[] newMemberFrags = new IXSDFragment[memberTypes.length]; - for (int j = 0; j < memberTypes.length; j++) { - if (i < memberFrags.length && memberFrags[i].getXSDTypeDefinition().getQName().equals(memberTypes[j].getQName())) { - newMemberFragIDs[j] = memberFrags[i].getID(); - newMemberFrags[j] = memberFrags[i]; - typeSelectionIndex = j; - } - else { - newMemberFragIDs[j] = frag.createUnionInstance(j); - newMemberFrags[j] = frag.getFragment(newMemberFragIDs[j]); - } - } - %> - <tr> - <td class="checkboxcells" width=10> - <input type="checkbox" onClick="handleRowCheckboxClick()" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"> - </td> - <td class="tablecells"> - <select id="<%=frag.getID()%>" name="<%=frag.getID()%>" onChange="javascript:changeUnionMemberType(this)" title="<%=wsdlPerspective.getMessage("FORM_CONTROL_TITLE_SELECT_UNION_TYPE")%>"> - <% - for (int k = 0; k < memberTypes.length; k++) { - if (k == typeSelectionIndex) { - %> - <option value="<%=newMemberFragIDs[k]%>" selected><%=memberTypes[k].getQName()%> - <% - } - else { - %> - <option value="<%=newMemberFragIDs[k]%>"><%=memberTypes[k].getQName()%> - <% - } - } - %> - </select> - </td> - <td class="tablecells"> - <% - for (int l = 0; l < memberTypes.length; l++) { - fragID.delete(0, fragID.length()); - fragID.append(newMemberFragIDs[l]); - String memberTableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(newMemberFrags[l].getID()).toString(); - %> - <span id="<%=memberTableContainerID%>"> - <jsp:include page="<%=newMemberFrags[l].getWriteFragment()%>" flush="true"/> - </span> - <script language="javascript"> - showTable('<%=memberTableContainerID%>', <%=(l == typeSelectionIndex)%>); - </script> - <% - } - %> - </td> - </tr> - <% - } - %> -</table> -</span> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_enabled.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_enabled.gif Binary files differdeleted file mode 100644 index 0f055924f..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_enabled.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_highlighted.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_highlighted.gif Binary files differdeleted file mode 100644 index bcfc403a0..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_highlighted.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_enabled.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_enabled.gif Binary files differdeleted file mode 100644 index 9ffa818f4..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_enabled.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_highlighted.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_highlighted.gif Binary files differdeleted file mode 100644 index 5455bae67..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_highlighted.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_binding_node.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_binding_node.gif Binary files differdeleted file mode 100644 index ae386c636..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_binding_node.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_operation_node.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_operation_node.gif Binary files differdeleted file mode 100644 index c211ba23c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_operation_node.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_service_node.gif b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_service_node.gif Binary files differdeleted file mode 100644 index 15d08be6c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_service_node.gif +++ /dev/null diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/fragmenttables.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/fragmenttables.jsp deleted file mode 100644 index c4fb85fa9..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/fragmenttables.jsp +++ /dev/null @@ -1,183 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/scripts/tables.jsp" flush="true"/> -<jsp:include page="/scripts/formutils.jsp" flush="true"/> -<jsp:include page="/scripts/calendarbrowser.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> - -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> - -<script language="javascript"> - var xsdInfoDialog; - var xsdInfoDialogClosed = true; - var rowCheckboxName = "rowCheckboxName"; - var unbounded = <%=FragmentConstants.UNBOUNDED%>; - - function checkMaxOccursReached(tableContainerID, maxOccurs) { - var table = getTable(tableContainerID); - if (maxOccurs != unbounded && (table.rows.length - numberOfHeaderRows) >= maxOccurs) { - alert("<%=HTMLUtils.JSMangle(wsdlPerspective.getMessage("MSG_ERROR_MAX_OCCURS_VIOLATION"))%>"); - return true; - } - else - return false; - } - - function checkMinOccursAndRemoveSelectedRows(tableContainerID, minOccurs) { - var table = getTable(tableContainerID); - var rowsLength = table.rows.length - numberOfHeaderRows; - var checkedRows = 0; - for (var i = numberOfHeaderRows; i < table.rows.length; i++) { - var tableRow = table.rows[i]; - var rowCheckbox = tableRow.getElementsByTagName("input").item(0); - if (rowCheckbox.checked) - checkedRows++; - } - if (checkedRows == 0) - alert("<%=HTMLUtils.JSMangle(wsdlPerspective.getMessage("MSG_ERROR_NOTHING_SELECTED"))%>"); - else if ((rowsLength - checkedRows) < minOccurs) - alert("<%=HTMLUtils.JSMangle(wsdlPerspective.getMessage("MSG_ERROR_MIN_OCCURS_VIOLATION"))%>"); - else - removeSelectedRows(tableContainerID); - } - - function checkMinOccursAndRemoveSelectedDateTimeRows(calendarType,tableContainerID,minOccurs) - { - var table = getTable(tableContainerID); - var newCalendarTargetRow = calendarTargetRow; - for (var i=numberOfHeaderRows;i<table.rows.length;i++) - { - var columns = table.rows[i].getElementsByTagName("td"); - var rowCheckbox = columns.item(0).getElementsByTagName("input").item(0); - if (rowCheckbox.checked) - { - if (i-numberOfHeaderRows == calendarTargetRow) - newCalendarTargetRow = -1; - else - newCalendarTargetRow--; - } - } - if (newCalendarTargetRow == -1) - closeCalendarBrowser(); - calendarTargetRow = newCalendarTargetRow; - - checkMinOccursAndRemoveSelectedRows(tableContainerID,minOccurs); -<% - // Fix the browse... links. -%> - var table = getTable(tableContainerID); - for (var i=numberOfHeaderRows;i<table.rows.length;i++) - { - var columns = table.rows[i].getElementsByTagName("td"); - var dateTimeTextField = columns.item(1).getElementsByTagName("input").item(0); - setDateTimeBrowseLinkHref(columns.item(2).getElementsByTagName("a").item(0),calendarType,dateTimeTextField.name,i-numberOfHeaderRows); - } - } - - function createInstance(tableContainerID, maxOccurs, fragmentID, nameAnchorID) { - if (checkMaxOccursReached(tableContainerID, maxOccurs)) - return; - twistOpen(tableContainerID); - var table = getTable(tableContainerID); - var tableBody = table.getElementsByTagName("tbody").item(0); - var newRow = document.createElement("tr"); - var newColumn = document.createElement("td"); - newColumn.appendChild(createHiddenElement("<%=FragmentConstants.FRAGMENT_ID%>", fragmentID)); - newColumn.appendChild(createHiddenElement("<%=FragmentConstants.NAME_ANCHOR_ID%>", nameAnchorID)); - newRow.appendChild(newColumn); - tableBody.appendChild(newRow); - var form = document.getElementsByTagName("form"); - form[0].action = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/CreateInstanceActionJSP.jsp"))%>"; - form[0].submit(); - } - - function openXSDInfoDialog(link) { - xsdInfoDialog = window.open(link, "XSDInformationDialog", "height=500,width=500,scrollbars=no,resizable=yes"); - if (xsdInfoDialog.focus) - xsdInfoDialog.focus(); - } - - function closeXSDInfoDialog() - { - if (!xsdInfoDialogClosed) - xsdInfoDialog.close(); - } - - function synchronizeFragmentViews(viewID) { - var form = document.getElementsByTagName("form"); - if (viewID == "<%=FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE%>") - form[0].appendChild(createHiddenElement("<%=FragmentConstants.FRAGMENT_VIEW_ID%>","<%=FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE%>")); - else - form[0].appendChild(createHiddenElement("<%=FragmentConstants.FRAGMENT_VIEW_ID%>","<%=FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM%>")); - form[0].action = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp"))%>"; - form[0].submit(); - } - - function addSimpleAtomicDateTimeRows(calendarType,tableContainerID,id,name,value,maxOccurs) { - if (checkMaxOccursReached(tableContainerID, maxOccurs)) - return; - twistOpen(tableContainerID); - var table = getTable(tableContainerID); - var tableBody = table.getElementsByTagName("tbody").item(0); - var newRow = document.createElement("tr"); - var column0 = document.createElement("td"); - var column1 = document.createElement("td"); - var column2 = document.createElement("td"); - - var rowCheckbox = createRowCheckbox(); - column0.appendChild(rowCheckbox); - - var input = document.createElement("input"); - input.type = "text"; - input.id = id; - input.name = name; - if (value != null && value.length > 0) - input.value = value; - input.className = "tabletextenter"; - column1.appendChild(input); - - column2.appendChild(createDateTimeBrowseLink(calendarType,name,table.rows.length-1)); - column2.width = "90%"; - - column0.className = "checkboxcells"; - column1.className = "tablecells"; - column2.className = "tablecells"; - newRow.appendChild(column0); - newRow.appendChild(column1); - newRow.appendChild(column2); - tableBody.appendChild(newRow); - } - - function createDateTimeBrowseLink(calendarType,name,position) - { - var link = document.createElement("a"); - setDateTimeBrowseLinkHref(link,calendarType,name,position); - link.appendChild(document.createTextNode("<%=HTMLUtils.JSMangle(controller.getMessage("FORM_LINK_BROWSE"))%>")); - return link; - } - - function setDateTimeBrowseLinkHref(link,calendarType,name,position) - { - link.href = "javascript:openCalendarBrowser("+calendarType+",'contentborder','"+name+"',"+position+")"; - return link; - } -</script> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlframesets.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlframesets.jsp deleted file mode 100644 index d0c384952..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlframesets.jsp +++ /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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> - -<jsp:include page="/scripts/panes.jsp" flush="true"/> -<script language="javascript"> - function getActionsContainerFrameset() - { - return perspectiveContent.frames["<%=WSDLFrameNames.WSDL_ACTIONS_CONTAINER%>"].document.getElementsByTagName("frameset").item(0); - } - - function processFramesetSizes(framesetSizesForm) - { - toggleDoubleClickColumnTitle(); - var perspectiveContentFrameset = getPerspectiveContentFrameset(); - var actionsContainerFrameset = getActionsContainerFrameset(); - framesetSizesForm.<%=WSDLActionInputs.FRAMESET_COLS_PERSPECTIVE_CONTENT%>.value = perspectiveContentFrameset.cols; - framesetSizesForm.<%=WSDLActionInputs.FRAMESET_ROWS_ACTIONS_CONTAINER%>.value = actionsContainerFrameset.rows; - framesetSizesForm.submit(); - } -</script> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlpanes.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlpanes.jsp deleted file mode 100644 index 5b509c095..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlpanes.jsp +++ /dev/null @@ -1,28 +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 - *******************************************************************************/ -%> -<%@ page import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:include page="/scripts/panes.jsp" flush="true"/> -<script language="javascript"> - var wsdlNavigatorContainer = perspectiveContent.frames["<%=WSDLFrameNames.WSDL_NAVIGATOR_CONTAINER%>"]; - var wsdlNavigatorToolbar = wsdlNavigatorContainer.frames["<%=WSDLFrameNames.WSDL_NAVIGATOR_TOOLBAR%>"]; - var wsdlNavigatorContent = wsdlNavigatorContainer.frames["<%=WSDLFrameNames.WSDL_NAVIGATOR_CONTENT%>"]; - var wsdlActionsContainer = perspectiveContent.frames["<%=WSDLFrameNames.WSDL_ACTIONS_CONTAINER%>"]; - var wsdlPropertiesContainer = wsdlActionsContainer.frames["<%=WSDLFrameNames.WSDL_PROPERTIES_CONTAINER%>"]; - var wsdlPropertiesToolbar = wsdlPropertiesContainer.frames["<%=WSDLFrameNames.WSDL_PROPERTIES_TOOLBAR%>"]; - var wsdlPropertiesContent = wsdlPropertiesContainer.frames["<%=WSDLFrameNames.WSDL_PROPERTIES_CONTENT%>"]; - var wsdlStatusContainer = wsdlActionsContainer.frames["<%=WSDLFrameNames.WSDL_STATUS_CONTAINER%>"]; - var wsdlStatusToolbar = wsdlStatusContainer.frames["<%=WSDLFrameNames.WSDL_STATUS_TOOLBAR%>"]; - var wsdlStatusContent = wsdlStatusContainer.frames["<%=WSDLFrameNames.WSDL_STATUS_CONTENT%>"]; -</script> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/soap_envelope_xml.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/soap_envelope_xml.jsp deleted file mode 100644 index 1b6ee0dec..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/soap_envelope_xml.jsp +++ /dev/null @@ -1,33 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/xml; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -int soapEnvelopeType = Integer.parseInt(request.getParameter(WSDLActionInputs.SOAP_ENVELOPE_TYPE)); -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -SOAPMessageQueue soapMessageQueue; -switch (soapEnvelopeType) -{ - case WSDLActionInputs.SOAP_ENVELOPE_TYPE_REQUEST: - soapMessageQueue = wsdlPerspective.getSOAPRequestQueue(); - break; - case WSDLActionInputs.SOAP_ENVELOPE_TYPE_RESPONSE: - default: - soapMessageQueue = wsdlPerspective.getSOAPResponseQueue(); - break; -} -String messages = soapMessageQueue.getMessagesFromList(); -%> -<%=messages%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_actions_container.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_actions_container.jsp deleted file mode 100644 index b0c3d0688..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_actions_container.jsp +++ /dev/null @@ -1,29 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_ACTIONS_CONTAINER")%></title> -</head> -<frameset rows="<%=wsdlPerspective.getActionsContainerFramesetRows()%>" bgcolor="#ECE9D8"> - <frame name="<%=WSDLFrameNames.WSDL_PROPERTIES_CONTAINER%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_PROPERTIES_CONTAINER")%>" src="<%=response.encodeURL("wsdl_properties_container.jsp")%>" scrolling="no" frameborder=1 marginwidth=0 marginheight=0> - <frame name="<%=WSDLFrameNames.WSDL_STATUS_CONTAINER%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_CONTAINER")%>" src="<%=response.encodeURL("wsdl_status_container.jsp")%>" scrolling="no" frameborder=1 marginwidth=0 marginheight=0> -</frameset> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_container.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_container.jsp deleted file mode 100644 index 0820de627..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_container.jsp +++ /dev/null @@ -1,28 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<frameset rows="33,*" border=0 bgcolor="#ECE9D8"> - <frame name="<%=WSDLFrameNames.WSDL_NAVIGATOR_TOOLBAR%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_NAVIGATOR_TOOLBAR")%>" src="<%=response.encodeURL("wsdl_navigator_toolbar.jsp")%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> - <frame name="<%=WSDLFrameNames.WSDL_NAVIGATOR_CONTENT%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_NAVIGATOR_CONTENT")%>" src="<%=response.encodeURL("wsdl_navigator_content.jsp")%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> -</frameset> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_content.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_content.jsp deleted file mode 100644 index 7b47e4dd2..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_content.jsp +++ /dev/null @@ -1,49 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_NAVIGATOR_CONTENT")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/treeview.css"))%>"> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> - </script> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/treeview.js"))%>"> - </script> -</head> -<% - String selectedAnchorName = ""; - NodeManager nodeManager = controller.getWSDLPerspective().getNodeManager(); - int focusedNodeId = nodeManager.getFocusedNodeId(); - String focusedAnchorName = String.valueOf(focusedNodeId); - Node selectedNode = nodeManager.getSelectedNode(); - if (selectedNode != null) { - selectedAnchorName = selectedNode.getAnchorName(); - if (focusedNodeId == selectedNode.getNodeId()) - focusedAnchorName = selectedAnchorName; - } -%> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" onLoad="self.location.hash='#<%=focusedAnchorName%>';setSelectedAnchorName('<%=selectedAnchorName%>')" class="contentbodymargin"> - <div id="treecontentborder"> - <%=nodeManager.renderTreeView(response)%> - </div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_toolbar.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_toolbar.jsp deleted file mode 100644 index afc523c87..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_toolbar.jsp +++ /dev/null @@ -1,66 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_NAVIGATOR_TOOLBAR")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/toolbar.css"))%>"> -<jsp:include page="/wsdl/scripts/wsdlframesets.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/toolbar.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="toolbarbodymargin"> -<div id="toolbarborder"> - <div id="toolbar" ondblclick="processFramesetSizes(document.forms[0])"> -<jsp:useBean id="formAction" class="java.lang.StringBuffer" scope="request"> -<% - formAction.append("wsdl/actions/ResizeWSDLFramesActionJSP.jsp"); -%> -</jsp:useBean> -<jsp:useBean id="formFrameName" class="java.lang.StringBuffer" scope="request"> -<% - formFrameName.append(WSDLFrameNames.WSDL_NAVIGATOR_CONTAINER); -%> -</jsp:useBean> -<jsp:include page="/wsdl/forms/ProcessWSDLFramesetsForm.jsp" flush="true"/> - <table width="100%" height=25 cellpadding=0 cellspacing=0 border=0> - <tr> - <td valign="middle" align="center" width=25 height=25><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/navigator.gif"))%>" width=16 height=16></td> -<% - String doubleClickColumnTitle = null; - if (wsdlPerspective.getPerspectiveContentFramesetCols().startsWith("100%")) - doubleClickColumnTitle = controller.getMessage("ALT_DOUBLE_CLICK_TO_RESTORE"); - else - doubleClickColumnTitle = controller.getMessage("ALT_DOUBLE_CLICK_TO_MAXIMIZE"); -%> - <td id="doubleclickcolumn" title="<%=doubleClickColumnTitle%>" valign="middle" align="left" width="*" height=25 nowrap class="text"><%=controller.getMessage("ALT_NAVIGATOR")%></td> -<% - String altRefresh = controller.getMessage("ALT_REFRESH"); - String altClear = controller.getMessage("ALT_CLEAR"); -%> - <td valign="middle" align="center" width=25 height=25><a href="<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/RefreshWSDLActionJSP.jsp"))%>" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>"><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/refresh_enabled.gif"))%>" width=16 height=16 onMouseOver="src='<%=response.encodeURL(controller.getPathWithContext("images/refresh_highlighted.gif"))%>';mouseover(this)" onMouseOut="src='<%=response.encodeURL(controller.getPathWithContext("images/refresh_enabled.gif"))%>';mouseout(this)" onMouseDown="src='<%=response.encodeURL(controller.getPathWithContext("images/refresh_highlighted.gif"))%>';mousedown(this)" onMouseUp="src='<%=response.encodeURL(controller.getPathWithContext("images/refresh_enabled.gif"))%>';mouseup(this)" alt="<%=altRefresh%>" title="<%=altRefresh%>"></a></td> - <td valign="middle" align="center" width=25 height=25><a href="<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/ClearWSDLActionJSP.jsp"))%>" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>"><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/clear_enabled.gif"))%>" width=16 height=16 onMouseOver="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_highlighted.gif"))%>';mouseover(this)" onMouseOut="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_enabled.gif"))%>';mouseout(this)" onMouseDown="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_highlighted.gif"))%>';mousedown(this)" onMouseUp="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_enabled.gif"))%>';mouseup(this)" alt="<%=altClear%>" title="<%=altClear%>"></a></td> - </tr> - </table> - </div> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_perspective_content.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_perspective_content.jsp deleted file mode 100644 index aab86c99c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_perspective_content.jsp +++ /dev/null @@ -1,42 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<frameset cols="<%=wsdlPerspective.getPerspectiveContentFramesetCols()%>" bgcolor="#ECE9D8"> - <% - if (org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.isRTL()) - { - %> - <frame name="<%=WSDLFrameNames.WSDL_ACTIONS_CONTAINER%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_ACTIONS_CONTAINER")%>" src="<%=response.encodeURL("wsdl_actions_container.jsp")%>" marginwidth=0 marginheight=0 scrolling="no" frameborder=1> - <frame name="<%=WSDLFrameNames.WSDL_NAVIGATOR_CONTAINER%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_NAVIGATOR_CONTAINER")%>" src="<%=response.encodeURL("wsdl_navigator_container.jsp")%>" marginwidth=0 marginheight=0 scrolling="no" frameborder=1> - <% - } - else - { - %> - <frame name="<%=WSDLFrameNames.WSDL_NAVIGATOR_CONTAINER%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_NAVIGATOR_CONTAINER")%>" src="<%=response.encodeURL("wsdl_navigator_container.jsp")%>" marginwidth=0 marginheight=0 scrolling="no" frameborder=1> - <frame name="<%=WSDLFrameNames.WSDL_ACTIONS_CONTAINER%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_ACTIONS_CONTAINER")%>" src="<%=response.encodeURL("wsdl_actions_container.jsp")%>" marginwidth=0 marginheight=0 scrolling="no" frameborder=1> - <% - } - %> -</frameset> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_container.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_container.jsp deleted file mode 100644 index 558e23300..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_container.jsp +++ /dev/null @@ -1,29 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_PROPERTIES_CONTAINER")%></title> -</head> -<frameset rows="33,*" border=0 bgcolor="#ECE9D8"> - <frame name="<%=WSDLFrameNames.WSDL_PROPERTIES_TOOLBAR%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_PROPERTIES_TOOLBAR")%>" src="<%=response.encodeURL("wsdl_properties_toolbar.jsp")%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> - <frame name="<%=WSDLFrameNames.WSDL_PROPERTIES_CONTENT%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_PROPERTIES_CONTENT")%>" src="<%=response.encodeURL("wsdl_properties_content.jsp")%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> -</frameset> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_content.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_content.jsp deleted file mode 100644 index 876e36d55..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_content.jsp +++ /dev/null @@ -1,73 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_PROPERTIES_CONTENT")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> -<% - NodeManager nodeManager = wsdlPerspective.getNodeManager(); - Node selectedNode = nodeManager.getSelectedNode(); - if (selectedNode != null) - { - ToolManager toolManager; - if (selectedNode.getViewId() == ActionInputs.VIEWID_DEFAULT) - toolManager = selectedNode.getToolManager(); - else - toolManager = selectedNode.getViewToolManager(); - Tool selectedTool = toolManager.getSelectedTool(); - if (selectedTool != null && selectedTool.getToolType() != ToolTypes.ACTION) { - %> - <script language="javascript"> - location="<%=response.encodeURL(controller.getPathWithContext(selectedTool.getFormLink()))%>"; - </script> - <% - } - else { - %> -<table> - <tr> - <td> - <%=controller.getMessage("MSG_ERROR_NO_ACTION_SELECTED")%> - </td> - </tr> -</table> - <% - } - } - else { - %> -<table> - <tr> - <td> - <%=controller.getMessage("MSG_ERROR_NO_NODE_SELECTED")%> - </td> - </tr> -</table> - <% - } -%> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_toolbar.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_toolbar.jsp deleted file mode 100644 index d882c3042..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_toolbar.jsp +++ /dev/null @@ -1,81 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_PROPERTIES_TOOLBAR")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/toolbar.css"))%>"> -<jsp:include page="/wsdl/scripts/wsdlframesets.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/toolbar.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="toolbarbodymargin"> -<div id="toolbarborder"> - <div id="toolbar" ondblclick="processFramesetSizes(document.forms[0])"> -<jsp:useBean id="formAction" class="java.lang.StringBuffer" scope="request"> -<% - formAction.append("wsdl/actions/ResizeWSDLFramesActionJSP.jsp"); -%> -</jsp:useBean> -<jsp:useBean id="formFrameName" class="java.lang.StringBuffer" scope="request"> -<% - formFrameName.append(WSDLFrameNames.WSDL_PROPERTIES_CONTAINER); -%> -</jsp:useBean> -<jsp:include page="/wsdl/forms/ProcessWSDLFramesetsForm.jsp" flush="true"/> - <table width="100%" height=25 cellpadding=0 cellspacing=0 border=0> - <tr> - <td valign="middle" align="center" width=25 height=25><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/actions.gif"))%>" width=16 height=16></td> -<% - String doubleClickColumnTitle = null; - if (wsdlPerspective.getPerspectiveContentFramesetCols().endsWith("100%")) - { - if (wsdlPerspective.getActionsContainerFramesetRows().startsWith("100%")) - doubleClickColumnTitle = controller.getMessage("ALT_DOUBLE_CLICK_TO_RESTORE"); - } - if (doubleClickColumnTitle == null) - doubleClickColumnTitle = controller.getMessage("ALT_DOUBLE_CLICK_TO_MAXIMIZE"); -%> - <td id="doubleclickcolumn" title="<%=doubleClickColumnTitle%>" valign="middle" align="left" width="*" height=25 nowrap class="text"><%=controller.getMessage("ALT_ACTIONS")%></td> -<% - NodeManager nodeManager = wsdlPerspective.getNodeManager(); - Node selectedNode = nodeManager.getSelectedNode(); - if (selectedNode != null) { - ToolManager toolManager; - if (selectedNode.getViewId() == ActionInputs.VIEWID_DEFAULT) - toolManager = selectedNode.getToolManager(); - else - toolManager = selectedNode.getViewToolManager(); - for(int i=0; i<toolManager.getNumberOfTools(); i++) { - Tool tool = (Tool)toolManager.getTool(i); - %> - <td valign="middle" align="center" width=25 height=25><%=tool.renderTool(response,controller)%></td> - <% - } - } -%> - </tr> - </table> - </div> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_result_content.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_result_content.jsp deleted file mode 100644 index 74e79f642..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_result_content.jsp +++ /dev/null @@ -1,72 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - int viewID = wsdlPerspective.getStatusContentType(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_CONTENT")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -<jsp:include page="/scripts/tables.jsp" flush="true"/> -<jsp:include page="/scripts/panes.jsp" flush="true"/> -<script language="javascript"> - function switchReadOnlyFragmentsView() { - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp"))%>"; - } -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> - <table width="95%" border=0 cellpadding=3 cellspacing=0> - <tr> - <td align="right" class="labels"> -<% - if (viewID == wsdlPerspective.STATUS_CONTENT_RESULT_SOURCE) - { -%> - <a href="javascript:switchReadOnlyFragmentsView()" title="<%=wsdlPerspective.getMessage("ALT_SWITCH_TO_FORM_VIEW")%>"><%=wsdlPerspective.getMessage("FORM_LINK_FORM")%></a> -<% - } - else - { -%> - <a href="javascript:switchReadOnlyFragmentsView()" title="<%=wsdlPerspective.getMessage("ALT_SWITCH_TO_SOURCE_VIEW")%>"><%=wsdlPerspective.getMessage("FORM_LINK_SOURCE")%></a> -<% - } -%> - </td> - </tr> - </table> -<% - if (viewID == wsdlPerspective.STATUS_CONTENT_RESULT_SOURCE) - { -%> - <jsp:include page="/wsdl/forms/ReadOnlyFragmentsSoapView.jsp" flush="true"/> -<% - } - else - { -%> - <jsp:include page="/wsdl/forms/ReadOnlyFragmentsFormView.jsp" flush="true"/> -<% - } -%> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_container.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_container.jsp deleted file mode 100644 index b03acef31..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_container.jsp +++ /dev/null @@ -1,39 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - String statusContentSrc = "wsdl_status_content.jsp"; - switch (wsdlPerspective.getStatusContentType()) - { - case WSDLPerspective.STATUS_CONTENT_RESULT_FORM: - statusContentSrc = "wsdl_result_content.jsp"; - break; - case WSDLPerspective.STATUS_CONTENT_RESULT_SOURCE: - statusContentSrc = "wsdl_result_content.jsp"; - break; - } -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_CONTAINER")%></title> -</head> -<frameset rows="33,*" border=0 bgcolor="#ECE9D8"> - <frame name="<%=WSDLFrameNames.WSDL_STATUS_TOOLBAR%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_TOOLBAR")%>" src="<%=response.encodeURL("wsdl_status_toolbar.jsp")%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> - <frame name="<%=WSDLFrameNames.WSDL_STATUS_CONTENT%>" title="<%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_CONTENT")%>" src="<%=response.encodeURL(statusContentSrc)%>" noresize scrolling="no" frameborder=0 marginwidth=0 marginheight=0> -</frameset> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_content.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_content.jsp deleted file mode 100644 index 95ba86f3f..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_content.jsp +++ /dev/null @@ -1,39 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_DEFAULT); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_CONTENT")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin"> -<div id="contentborder"> - <table> - <tr> - <td> - <pre> -<%=wsdlPerspective.getMessageQueue().getMessagesFromList()%> - </pre> - </td> - </tr> - </table> -</div> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_toolbar.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_toolbar.jsp deleted file mode 100644 index c5164e52e..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_toolbar.jsp +++ /dev/null @@ -1,67 +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 - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title><%=wsdlPerspective.getMessage("FRAME_TITLE_STATUS_TOOLBAR")%></title> - <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/toolbar.css"))%>"> -<jsp:include page="/wsdl/scripts/wsdlframesets.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/toolbar.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="toolbarbodymargin"> -<div id="toolbarborder"> - <div id="toolbar" ondblclick="processFramesetSizes(document.forms[0])"> -<jsp:useBean id="formAction" class="java.lang.StringBuffer" scope="request"> -<% - formAction.append("wsdl/actions/ResizeWSDLFramesActionJSP.jsp"); -%> -</jsp:useBean> -<jsp:useBean id="formFrameName" class="java.lang.StringBuffer" scope="request"> -<% - formFrameName.append(WSDLFrameNames.WSDL_STATUS_CONTAINER); -%> -</jsp:useBean> -<jsp:include page="/wsdl/forms/ProcessWSDLFramesetsForm.jsp" flush="true"/> - <table width="100%" height=25 cellpadding=0 cellspacing=0 border=0> - <tr> - <td valign="middle" align="center" width=25 height=25><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/status.gif"))%>" width=16 height=16></td> -<% - String doubleClickColumnTitle = null; - if (wsdlPerspective.getPerspectiveContentFramesetCols().endsWith("100%")) - { - if (wsdlPerspective.getActionsContainerFramesetRows().endsWith("100%")) - doubleClickColumnTitle = controller.getMessage("ALT_DOUBLE_CLICK_TO_RESTORE"); - } - if (doubleClickColumnTitle == null) - doubleClickColumnTitle = controller.getMessage("ALT_DOUBLE_CLICK_TO_MAXIMIZE"); -%> - <td id="doubleclickcolumn" title="<%=doubleClickColumnTitle%>" valign="middle" align="left" width="*" height=25 nowrap class="text"><%=controller.getMessage("ALT_STATUS")%></td> -<% - String altClear = controller.getMessage("ALT_CLEAR"); -%> - <td valign="middle" align="center" width=25 height=25><a href="<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>" target="<%=WSDLFrameNames.WSDL_STATUS_CONTENT%>"><img class="normal" src="<%=response.encodeURL(controller.getPathWithContext("images/clear_enabled.gif"))%>" width=16 height=16 onMouseOver="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_highlighted.gif"))%>';mouseover(this)" onMouseOut="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_enabled.gif"))%>';mouseout(this)" onMouseDown="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_highlighted.gif"))%>';mousedown(this)" onMouseUp="src='<%=response.encodeURL(controller.getPathWithContext("images/clear_enabled.gif"))%>';mouseup(this)" alt="<%=altClear%>" title="<%=altClear%>"></a></td> - </tr> - </table> - </div> -</div> -</body> -</html> |