From 2b006c4bf161881282bf471dce9e0fe3de84e8df Mon Sep 17 00:00:00 2001 From: kchan Date: Thu, 22 Mar 2007 00:01:56 +0000 Subject: [175194] Ant task InitialSelection only allows wsdl within the workspace. --- .../jst/ws/internal/common/String2SelectionTransformer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws') 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 -- cgit v1.2.3