diff options
Diffstat (limited to 'bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext')
10 files changed, 0 insertions, 620 deletions
diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExecutable.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExecutable.java deleted file mode 100644 index 9660fbb82..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExecutable.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext; - -import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation; - -/** -* All Extensions with exectutable extensions should implement this -* to fit our framework -*/ -public interface WebServiceExecutable -{ - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - /** - *Returns a wizard fragment for this exention type - * - */ - public AbstractDataModelOperation getFinishCommand(); -} - - diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtension.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtension.java deleted file mode 100644 index 4332d0a74..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtension.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext; - -import org.eclipse.core.runtime.IConfigurationElement; - - -/** -* This represents an extension in the plugin registry -* It job is to act as a proxy to the iconfigelement -*/ -public interface WebServiceExtension -{ - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - /** - * If the extension has code that needs to be executed or a fragment added - * @return WebServiceExecutable this interface holds executable code and a - * fragment - */ - public Object getWebServiceExecutableExtension(); - - /** - * This is the config element that holds the extension info - * @param IConfigurationElement Extension element - */ - public void setConfigElement(IConfigurationElement configElement); - - /** - * If the extension has code that - * @return IConfigurationElement Extension element - */ - public IConfigurationElement getConfigElement(); -} - - diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionImpl.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionImpl.java deleted file mode 100644 index 7d9d92fe5..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.wst.common.environment.EnvironmentService; -import org.eclipse.wst.common.environment.ILog; - - - - - -/** -* This represents an extension in the plugin registry -* It job is to act as a proxy to the iconfigelement -*/ -public class WebServiceExtensionImpl implements WebServiceExtension -{ - - private ILog log_; - - /* - * The ConfigElement that holds extension info - */ - protected IConfigurationElement configElement_; - - /* - * The extension executable - */ - protected WebServiceExecutable webServiceExecutable_; - - - public WebServiceExtensionImpl(IConfigurationElement configElement) - { - configElement_ = configElement; - log_ = EnvironmentService.getEclipseLog(); - } - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - /** - * If the extension has code that needs to be executed or a fragment added - * @return WebServiceExecutable this interface holds executable code and a - * fragment - */ - public Object getWebServiceExecutableExtension() - { - if(webServiceExecutable_ != null) return webServiceExecutable_; - - try{ - return configElement_.createExecutableExtension("class"); - }catch (CoreException e){ - log_.log(ILog.ERROR, 5029, this, "getWebServiceExecutableExtension",e); - } - - return null; - } - - /** - * This is the config element that holds the extension info - * @param IConfigurationElement Extension element - */ - public void setConfigElement(IConfigurationElement configElement) - { - configElement_ = configElement; - } - - /** - * This is the config element that holds the extension info - * @return IConfigurationElement Extension element - */ - public IConfigurationElement getConfigElement() - { - return configElement_; - } - - /** - * The name of the extension being used - * @return String name of this extension - */ - public String getName() - { - return getConfigElement().getAttribute( "name" ); - } - - -} - - diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistry.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistry.java deleted file mode 100644 index afc1d0721..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistry.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext; - - -/** -* Returns the names of the extensions for a given extension-point -* also returns the extension objects -* -*/ -public interface WebServiceExtensionRegistry -{ - - /** - * Returns the names of all registered extensions - * @return The names of all registered extensions. - */ - public String[] getWebServiceExtensionNames (); - - /** - * Returns the extension object of the given name - *@return WebServiceExtension object - */ - public WebServiceExtension getWebServiceExtensionsByName( String name); - - /** - * Returns All extention objects in this registry - *@return WebServiceExtension objects - */ - public WebServiceExtension[] getWebServiceExtensions(); - - -} diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistryImpl.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistryImpl.java deleted file mode 100644 index 5a9456f83..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistryImpl.java +++ /dev/null @@ -1,115 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext; - -import java.util.Hashtable; -import java.util.Vector; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.jst.ws.internal.data.LabelsAndIds; - - -/** -* This is a generic registry which sets up general code in handling -* IConfigElements for an extension -*/ -public abstract class WebServiceExtensionRegistryImpl implements WebServiceExtensionRegistry -{ - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - private Hashtable nameExtensionTable_; - private Vector id_; - private Vector label_; - private LabelsAndIds labelsandids_; - - public WebServiceExtensionRegistryImpl() - { - nameExtensionTable_ = new Hashtable(); - label_ = new Vector(); - id_ = new Vector(); - loadExtensions(); - } - - /** - * Children registries will have different extension types - * @return WebserviceExtension holds a config elem - * for that extension capable of creating an executable file - */ - public abstract WebServiceExtension createWebServiceExtension(IConfigurationElement configElement); - - /** - * Children must implement how they get the IConfigurationElement[] - * @return IConfigurationElement[] an array of elements particular to that - * extension - */ - public abstract IConfigurationElement[] getConfigElements(); - - /* - * Loads WebServiceExtensions for WebServiceClientTest into this registry. - * This is done by querying the plugin registry for all extensions - * that extend webServiceClientTest - */ - private void loadExtensions () - { - IConfigurationElement[] config = getConfigElements(); - - for(int idx=0; idx<config.length; idx++) - { - IConfigurationElement elem = config[idx]; - String label = elem.getAttribute( "label" ); - String id = elem.getAttribute( "id" ); - WebServiceExtension webServiceExtension = createWebServiceExtension(elem); - nameExtensionTable_.put(label,webServiceExtension); - label_.add(label); - id_.add(id); - } - } - - /** - * Returns the names of all registered extensions - * @return The names of all registered extensions. - */ - public String[] getWebServiceExtensionNames () - { - return (String[])nameExtensionTable_.keySet().toArray( new String[0] ); - } - - /** - * Return the names and Ids - */ - public LabelsAndIds getLabelsAndIDs() - { - labelsandids_ = new LabelsAndIds(); - labelsandids_.setLabels_((String[])label_.toArray( new String[0] )); - labelsandids_.setIds_((String[])id_.toArray( new String[0] )); - return labelsandids_; - } - - /** - * Returns the extension object of the given name - * @return WebServiceExtension object - */ - public WebServiceExtension getWebServiceExtensionsByName( String name) - { - return (WebServiceExtension)nameExtensionTable_.get(name); - } - - /** - * Returns All extention objects in this registry - *@return WebServiceExtension objects - */ - public WebServiceExtension[] getWebServiceExtensions() - { - return (WebServiceExtension[])nameExtensionTable_.values().toArray( new WebServiceExtension[0] ); - } - -} diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/JavaProxyTestCommand.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/JavaProxyTestCommand.java deleted file mode 100644 index 4eae34196..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/JavaProxyTestCommand.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2002 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext.test; - -import org.eclipse.wst.command.internal.env.core.selection.BooleanSelection; - -public interface JavaProxyTestCommand extends WebServiceTestFinishCommand -{ - - /** - * This holds an info class that comes from user input or some calcilations that needs to be - * used for the finish - */ - - public void setJspFolder(String jspFolder); - - public void setRunClientTest(boolean runClientTest); - - public void setSampleProject(String sampleProject); - - public void setProxyBean(String proxyBean); - - public void setSetEndpointMethod(String setEndpointMethod); - - public void setClientProject(String clientProject); - - public void setMethods(BooleanSelection[] methods); - - -} diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WSDLTestFinishCommand.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WSDLTestFinishCommand.java deleted file mode 100644 index 1b29e53d4..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WSDLTestFinishCommand.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2002 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext.test; - -public interface WSDLTestFinishCommand extends WebServiceTestFinishCommand -{ - public void setServiceProject(String serverProject); - public void setWsdlServiceURL(String wsdlURI); - public void setExternalBrowser(boolean external); -} diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestExtension.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestExtension.java deleted file mode 100644 index 76f7d777d..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestExtension.java +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext.test; - -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.jst.ws.internal.ext.WebServiceExtensionImpl; - - - -/** -* This represents an extension in the plugin registry -* It job is to act as a proxy to the iconfigelement -* In particular it holds a client test extension element -*/ -public class WebServiceTestExtension extends WebServiceExtensionImpl -{ - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - public WebServiceTestExtension(IConfigurationElement configElement) - { - super(configElement); - } - - /** - * Will this testClient generate code - * @return boolean true if codegen needed - */ - public boolean isCodeGenNeeded() - { - return Boolean.valueOf(getConfigElement().getAttribute( "codegen" )).booleanValue(); - } - - /** - * Use the default Folder Provided by us - * @return boolean true if no special folder requires - */ - public boolean useDefaultCodeGenFolder() - { - return Boolean.valueOf(getConfigElement().getAttribute( "defaultcodegenfolder" )).booleanValue(); - } - - /** - * Use Special Folder for generated code - * @return String special folder name - */ - public String getCodeGenFolder() - { - return getConfigElement().getAttribute( "codegenfolder" ); - } - - /** - * Do we need to launch something - * @return Boolean if true launch codegen - */ - public boolean isLaunchRequired() - { - return Boolean.valueOf(getConfigElement().getAttribute( "launchRequired" )).booleanValue(); - } - - /** - * Do we need the methods for the proxy - * @return boolean true if proxy methods needed - */ - public boolean areMethodsNeeded() - { - return Boolean.valueOf(getConfigElement().getAttribute( "methodsneeded" )).booleanValue(); - } - - /** - * Does this test machine need a server - * @return boolean true if a server is required - */ - public boolean isServerNeeded() - { - return Boolean.valueOf(getConfigElement().getAttribute( "serverneeded" )).booleanValue(); - } - - /** - * Use the Default Server chosen by the wizard - * @return boolean true if the default server is wanted - */ - public boolean useDefaultServer() - { - return Boolean.valueOf(getConfigElement().getAttribute( "defaultserver" )).booleanValue(); - } - - /** - * Use the Default Server chosen by the wizard - * @return boolean true if the default server is wanted - */ - public String useServer() - { - return getConfigElement().getAttribute( "useserver" ); - } - - public boolean testWSDL() - { - String wsdl = getConfigElement().getAttribute( "testWSDL" ); - if(wsdl.equals("yes") || wsdl.equals("true")) - return true; - - return false; - } - - -} - - diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestFinishCommand.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestFinishCommand.java deleted file mode 100644 index 74193670b..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestFinishCommand.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2002 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext.test; - -import java.util.List; -import org.eclipse.wst.server.core.IServer; - -public interface WebServiceTestFinishCommand -{ - - /** - * If the command needs a server this is the chosen - * client serverID - * @param sampleServerTypeID - */ - public void setServerTypeID(String serviceServerTypeID); - - /** - * This is the IServer if required - * @param sampleExistingServer - */ - public void setExistingServer(IServer serviceExistingServer); - - /** - * This is the endpoints if monitor service is enabled - * @param endpoints - */ - public void setEndpoint(List endpoints); - -} diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestRegistry.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestRegistry.java deleted file mode 100644 index 310e3d55c..000000000 --- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestRegistry.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 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 - *******************************************************************************/ - -package org.eclipse.jst.ws.internal.ext.test; - -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExtensionRegistry; -import org.eclipse.core.runtime.Platform; -import org.eclipse.jst.ws.internal.ext.WebServiceExtension; -import org.eclipse.jst.ws.internal.ext.WebServiceExtensionRegistryImpl; - -public class WebServiceTestRegistry extends WebServiceExtensionRegistryImpl -{ - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - /* - * This is a singleton becasue it was decided that the memory foot print - * is not as expensive as the time taken retrieving the data - * - */ - - - private static WebServiceTestRegistry wstr; - - public static WebServiceTestRegistry getInstance() - { - if(wstr == null) wstr = new WebServiceTestRegistry(); - return wstr; - } - - private WebServiceTestRegistry() - { - super(); - } - - /** - * Children registries will have different extension types - * @return WebserviceExtension holds a config elem - * for that extension capable of creating an executable file - */ - public WebServiceExtension createWebServiceExtension(IConfigurationElement configElement) - { - return new WebServiceTestExtension(configElement); - } - - /** - * Children must implement how they get the IConfigurationElement[] - * @return IConfigurationElement[] an array of elements particular to that - * extension - */ - public IConfigurationElement[] getConfigElements() - { - IExtensionRegistry reg = Platform.getExtensionRegistry(); - IConfigurationElement[] config = reg.getConfigurationElementsFor( - "org.eclipse.jst.ws.consumption.ui", - "tester"); - return config; - } - - - - -} |