diff options
author | kchong | 2009-08-10 18:34:09 +0000 |
---|---|---|
committer | kchong | 2009-08-10 18:34:09 +0000 |
commit | 3d2050476a181c788eccdacb86b2ec2d716a8c39 (patch) | |
tree | 4a25382810b3f0d86e33d19acf90488c90894d5e /tests/org.eclipse.wst.wsdl.tests.ui | |
parent | aad7c8dacf1aea980b2e898b0abbfb0f975c8510 (diff) | |
download | webtools.webservices-200908101838.tar.gz webtools.webservices-200908101838.tar.xz webtools.webservices-200908101838.zip |
This commit was manufactured by cvs2svn to create tag 'v200908101838'.v200908101838
Diffstat (limited to 'tests/org.eclipse.wst.wsdl.tests.ui')
10 files changed, 0 insertions, 276 deletions
diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/.classpath b/tests/org.eclipse.wst.wsdl.tests.ui/.classpath deleted file mode 100644 index ce7393340..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/.cvsignore b/tests/org.eclipse.wst.wsdl.tests.ui/.cvsignore deleted file mode 100644 index b0508c081..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -bin -build.xml -temp.folder -wsdl.tests.ui.jar -javaCompiler.wsdl.tests.ui.jar.args diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/.project b/tests/org.eclipse.wst.wsdl.tests.ui/.project deleted file mode 100644 index 7ffb78df6..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/.project +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.wst.wsdl.tests.ui</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.wsdl.tests.ui/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index ba5e0d03c..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -#Sun Jun 03 00:47:05 EDT 2007 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 -org.eclipse.jdt.core.compiler.compliance=1.4 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning -org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning -org.eclipse.jdt.core.compiler.source=1.3 diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.wsdl.tests.ui/META-INF/MANIFEST.MF deleted file mode 100644 index 115b209fa..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/META-INF/MANIFEST.MF +++ /dev/null @@ -1,13 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: WSDL Model UI Samples -Bundle-SymbolicName: org.eclipse.wst.wsdl.tests.ui; singleton:=true -Bundle-Version: 1.0.101.qualifier -Bundle-ClassPath: wsdl.tests.ui.jar -Require-Bundle: org.eclipse.wst.wsdl, - org.eclipse.wst.wsdl.tests, - org.eclipse.core.resources, - org.eclipse.ui, - org.eclipse.core.runtime -Bundle-ActivationPolicy: lazy -Bundle-RequiredExecutionEnvironment: J2SE-1.4 diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/about.html b/tests/org.eclipse.wst.wsdl.tests.ui/about.html deleted file mode 100644 index 2199df3f0..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/about.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> -<HTML> - -<head> -<title>About</title> -<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> -</head> - -<BODY lang="EN-US"> - -<H3>About This Content</H3> - -<P>June, 2008</P> - -<H3>License</H3> - -<P>The Eclipse Foundation makes available all content in this plug-in -("Content"). Unless otherwise indicated below, the Content is provided to you -under the terms and conditions of the Eclipse Public License Version 1.0 -("EPL"). A copy of the EPL is available at -<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>. -For purposes of the EPL, "Program" will mean the Content.</P> - -<P>If you did not receive this Content directly from the Eclipse Foundation, the -Content is being redistributed by another party ("Redistributor") and different -terms and conditions may apply to your use of any object code in the Content. -Check the Redistributor’s license that was provided with the Content. If no such -license exists, contact the Redistributor. Unless otherwise indicated below, the -terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at -<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P> - -</BODY> -</HTML> diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/build.properties b/tests/org.eclipse.wst.wsdl.tests.ui/build.properties deleted file mode 100644 index eb158e04e..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# 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 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 -############################################################################### -source.wsdl.tests.ui.jar = src/ -bin.includes = plugin.xml,\ - about.html,\ - wsdl.tests.ui.jar,\ - META-INF/ diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/plugin.xml b/tests/org.eclipse.wst.wsdl.tests.ui/plugin.xml deleted file mode 100644 index 925f11f79..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/plugin.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<plugin> - - <extension point="org.eclipse.ui.popupMenus"> - <objectContribution - objectClass="org.eclipse.core.resources.IFile" - nameFilter="*.wsdl" - id="org.eclipse.wst.wsdl.tests.ui.object_contribution"> - <!-- - <action - label="Generate WSDL Sample" - class="org.eclipse.wst.wsdl.tests.ui.GenerateWSDLActionDelegate" - enablesFor="1" - id="org.eclipse.wst.wsdl.tests.ui.generate_wsdl_action"> - </action> - --> - <action - label="Convert to WSDL 2.0 Document" - class="org.eclipse.wst.wsdl.tests.ui.ConvertWSDL20ActionDelegate" - enablesFor="1" - id="org.eclipse.wst.wsdl.tests.ui.convert_wsdl_action"> - </action> - - </objectContribution> - </extension> - -</plugin> diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/ConvertWSDL20ActionDelegate.java b/tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/ConvertWSDL20ActionDelegate.java deleted file mode 100644 index b2aefd10b..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/ConvertWSDL20ActionDelegate.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.tests.ui; - -import org.eclipse.core.resources.*; -import org.eclipse.core.runtime.IPath; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.ui.IActionDelegate; -import org.eclipse.wst.wsdl.Definition; -import org.eclipse.wst.wsdl.tests.util.DefinitionLoader; -import org.eclipse.wst.wsdl.tests.util.WSDLConverter; - - - -public class ConvertWSDL20ActionDelegate implements IActionDelegate -{ - private ISelection selection = null; - - public void run(IAction action) - { - IFile ifile = null; - if (!selection.isEmpty() && selection instanceof IStructuredSelection) - { - IStructuredSelection structuredSelection = (IStructuredSelection) selection; - Object element = structuredSelection.getFirstElement(); - - if (element instanceof IFile) - { - ifile = (IFile) element; - IPath path = ifile.getLocation(); - IPath path2 = path.removeLastSegments(1); - String output = path2.toString() + "/" + getNewName(ifile); - - try - { - Definition def = DefinitionLoader.load("file:/" + path.toString()); - WSDLConverter converter = new WSDLConverter(def); - converter.generate20(output); - IContainer folder = ifile.getParent(); - folder.refreshLocal(IResource.DEPTH_ONE,null); - } - catch (Exception e) - { - e.printStackTrace(); - } - } - else - return; - } - - } - - private String getNewName(IFile ifile) - { - // Assert currentName has a file extension, e.g. foo.wsdl. - // This will return fooV20.wsdl. - String currentName = ifile.getName(); - String name = currentName.substring(0,currentName.indexOf(".")); - String extension = currentName.substring(currentName.indexOf(".")); - String newName = name + "V20" + extension; - return newName; - } - - public void selectionChanged(IAction action, ISelection selection) - { - this.selection = selection; - } - -} diff --git a/tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/GenerateWSDLActionDelegate.java b/tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/GenerateWSDLActionDelegate.java deleted file mode 100644 index 749511add..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/GenerateWSDLActionDelegate.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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.wst.wsdl.tests.ui; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.IPath; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.ui.IActionDelegate; -import org.eclipse.wst.wsdl.tests.WSDLGenerationTest; - -public class GenerateWSDLActionDelegate implements IActionDelegate -{ - private ISelection selection = null; - - public void run(IAction action) - { - IFile ifile = null; - if (!selection.isEmpty() && selection instanceof IStructuredSelection) - { - IStructuredSelection structuredSelection = (IStructuredSelection) selection; - Object element = structuredSelection.getFirstElement(); - - if (element instanceof IFile) - { - ifile = (IFile) element; - IPath path = ifile.getLocation(); - path = path.removeLastSegments(1); - String output = path.toString() + "/MySample.wsdl"; - - try - { - (new WSDLGenerationTest()).generateTemperatureService(output); - } - catch (Exception e) - { - e.printStackTrace(); - } - - } - else - return; - } - - } - - public void selectionChanged(IAction action, ISelection selection) - { - this.selection = selection; - } - -} |