<% /******************************************************************************* * Copyright (c) 2001, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation * yyyymmdd bug Email and other contact information * -------- -------- ----------------------------------------------------------- * 20060427 127443 jesper@selskabet.org - Jesper S Moller *******************************************************************************/ %> <%@ 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.util.*, org.eclipse.core.resources.*, org.eclipse.core.runtime.*" %> <%=controller.getMessage("FORM_TITLE_IMPORT_TO_WORKBENCH")%> ">
" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" enctype="multipart/form-data"> <% String titleImagePath = "images/import_to_workbench_highlighted.gif"; String title = controller.getMessage("ALT_IMPORT_WSDL_TO_WORKBENCH"); %> <%@ include file = "/forms/formheader.inc" %>
<%=controller.getMessage("FORM_LABEL_IMPORT_TO_WORKBENCH_DESC")%>
<% IWorkspaceRoot iWorkspaceRoot = ResourcesPlugin.getWorkspace().getRoot(); IProject[] projects = iWorkspaceRoot.getProjects(); %>
<% String wsdlFileName="temp.wsdl"; String wsdlURL = (String)formProperties.get("wsdlURL"); if (wsdlURL != null && wsdlURL.endsWith(".wsdl")) { int lastSeparatorPos = Math.max(wsdlURL.lastIndexOf("/"),wsdlURL.lastIndexOf("\\")); if (lastSeparatorPos > 0) wsdlFileName = wsdlURL.substring(lastSeparatorPos+1,wsdlURL.length()); } %>