Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkchan2008-05-09 14:12:40 +0000
committerkchan2008-05-09 14:12:40 +0000
commitad3f505e19efd296a6afd4edd52791497b01765d (patch)
treecc6b266b5c3311960579e97e3695f96930595153 /bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil
parent2cd2b1126311913baee2d2f0ca5e469d6fee441b (diff)
downloadwebtools.webservices-ad3f505e19efd296a6afd4edd52791497b01765d.tar.gz
webtools.webservices-ad3f505e19efd296a6afd4edd52791497b01765d.tar.xz
webtools.webservices-ad3f505e19efd296a6afd4edd52791497b01765d.zip
[202945] Popup for testing with Web Services Explorer should be available on wsil files.
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil')
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILPerspective.java31
1 files changed, 29 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILPerspective.java b/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILPerspective.java
index 5ae81f8e8..14321aa74 100644
--- a/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILPerspective.java
+++ b/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILPerspective.java
@@ -1,16 +1,21 @@
/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
+ * Copyright (c) 2001, 2008 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
+ * IBM Corporation - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20080506 202945 pmoogk@ca.ibm.com - Peter Moogk, Allow WSE to be launched from a WSIL file.
*******************************************************************************/
package org.eclipse.wst.ws.internal.explorer.platform.wsil.perspective;
+import java.util.Hashtable;
+
import javax.servlet.ServletContext;
import org.eclipse.wst.ws.internal.datamodel.BasicModel;
import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs;
@@ -19,7 +24,9 @@ import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Perspective;
import org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils;
+import org.eclipse.wst.ws.internal.explorer.platform.wsil.actions.OpenWSILAction;
import org.eclipse.wst.ws.internal.explorer.platform.wsil.actions.SwitchPerspectiveFromWSILAction;
+import org.eclipse.wst.ws.internal.explorer.platform.wsil.constants.WsilActionInputs;
public class WSILPerspective extends Perspective
{
@@ -54,6 +61,26 @@ public class WSILPerspective extends Perspective
savedActionsContainerFramesetRows_ = actionsContainerFramesetRows_;
}
+ public final void preloadWSIL( String[] wsilURL )
+ {
+ if( wsilURL != null )
+ {
+ for( int index = 0; index < wsilURL.length; index++ )
+ {
+ OpenWSILAction action = new OpenWSILAction(controller_);
+ Hashtable table = action.getPropertyTable();
+ table.put(WsilActionInputs.WSIL_URL, wsilURL[index] );
+ table.put(WsilActionInputs.WSIL_INSPECTION_TYPE, String.valueOf(WsilActionInputs.WSIL_DETAILS));
+ action.run();
+ }
+
+ if( wsilURL.length >0 )
+ {
+ controller_.setCurrentPerspective(ActionInputs.PERSPECTIVE_WSIL);
+ }
+ }
+ }
+
public NodeManager getNodeManager() {
return nodeManager_;
}

Back to the top