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:
authorkchan2007-03-22 00:01:56 +0000
committerkchan2007-03-22 00:01:56 +0000
commit2b006c4bf161881282bf471dce9e0fe3de84e8df (patch)
treed1469446ce7c2dddcd7a68c729fb87c6edef8e7e /bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws
parentfc8c047fe4be12c369cccdd0cf808654e84a1ebb (diff)
downloadwebtools.webservices-2b006c4bf161881282bf471dce9e0fe3de84e8df.tar.gz
webtools.webservices-2b006c4bf161881282bf471dce9e0fe3de84e8df.tar.xz
webtools.webservices-2b006c4bf161881282bf471dce9e0fe3de84e8df.zip
[175194] Ant task InitialSelection only allows wsdl within the workspace.
Diffstat (limited to 'bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws')
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2SelectionTransformer.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2SelectionTransformer.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2SelectionTransformer.java
index f2351b0f9..06067de1a 100644
--- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2SelectionTransformer.java
+++ b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2SelectionTransformer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2007 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
@@ -10,6 +10,7 @@
* yyyymmdd bug Email and other contact information
* -------- -------- -----------------------------------------------------------
* 20060222 128094 joan@ca.ibm.com - Joan Haggarty
+ * 20070305 175194 makandre@ca.ibm.com - Andrew Mak, Ant task InitialSelection only allows wsdl within the workspace
*******************************************************************************/
package org.eclipse.jst.ws.internal.common;
@@ -84,6 +85,10 @@ public class String2SelectionTransformer implements Transformer {
selection = new StructuredSelection(resource);
}
}
+ else if (value instanceof String && value.toString().indexOf(":") != -1) {
+ // remote file
+ selection = new StructuredSelection(value);
+ }
else
{
// string doesn't return resource - error condition

Back to the top