Author: dennyxu
Date: 2008-04-20 21:59:17 -0400 (Sun, 20 Apr 2008)
New Revision: 7642
Added:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.classpath
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.project
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/build.properties
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.properties
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/CreationUIPlugin.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/Ff.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceRuntime.java
Log:
extend Web service runtime extension points of wtp to add Jbossws a new runtime
Added: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.classpath
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.classpath
(rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.classpath 2008-04-21 01:59:17 UTC
(rev 7642)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.project
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.project (rev
0)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/.project 2008-04-21 01:59:17 UTC (rev
7642)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.ws.creation.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>
Added: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF 2008-04-21
01:59:17 UTC (rev 7642)
@@ -0,0 +1,27 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %PLUGIN_NAME
+Bundle-SymbolicName: org.jboss.tools.ws.creation.ui;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.ws.creation.ui.CreationUIPlugin
+Bundle-Vendor: %PLUGIN_PROVIDER
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.jst.ws.consumption.ui,
+ org.eclipse.wst.ws,
+ org.eclipse.wst.common.environment,
+ org.eclipse.wst.command.env.core,
+ org.eclipse.emf.common,
+ org.eclipse.wst.common.frameworks,
+ org.eclipse.wst.command.env.ui,
+ org.eclipse.jst.ws,
+ org.eclipse.wst.command.env,
+ org.eclipse.jdt.core,
+ org.eclipse.jst.ws.axis2.creation.core,
+ org.eclipse.jst.ws.axis2.consumption.ui,
+ org.eclipse.jst.ws.axis2.consumption.core,
+ org.eclipse.jst.ws.axis2.core,
+ org.eclipse.jst.ws.ui,
+ org.jboos.tools.ws.creation.core
+Eclipse-LazyStart: true
Added: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/build.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/build.properties
(rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/build.properties 2008-04-21 01:59:17
UTC (rev 7642)
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties
Added: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.properties
(rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.properties 2008-04-21 01:59:17
UTC (rev 7642)
@@ -0,0 +1,5 @@
+
+PLUGIN_NAME=Webservice JBossWS Creation UI Plug-in
+PLUGIN_PROVIDER=JBoss
+
+LABEL_RUNTIME_JBossWS1=JBossWS
\ No newline at end of file
Added: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
(rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-04-21 01:59:17 UTC
(rev 7642)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+<extension point="org.eclipse.wst.command.env.ui.widgetRegistry">
+ <widgetFactory
+ id="BeanExampleConfig"
+
insertBeforeCommandId="org.eclipse.jst.ws.axis2.creation.core.command.Axis2BUCommand"
+
class="org.eclipse.jst.ws.internal.axis2.creation.ui.wsrt.Axis2BeanConfigWidgetFactory"/>
+ </extension>
+
+ <extension point="org.eclipse.wst.command.env.ui.widgetRegistry">
+ <widgetFactory
+ id="SkelExampleConfig"
+
insertBeforeCommandId="org.eclipse.jst.ws.axis2.creation.core.command.Axis2TDCommand"
+
class="org.eclipse.jst.ws.internal.axis2.creation.ui.wsrt.Axis2SkelConfigWidgetFactory"
/>
+ </extension>
+
+ <extension point="org.eclipse.jst.ws.consumption.ui.runtimes">
+ <runtime
+ id="org.jboss.tools.ws.creation.jbossWebServiceRT"
+ label="JBossWS"
+ serverRequired="false"/>
+ </extension>
+
+
+ <!-- define support for Axis2 Java bean bottom up and top-down support in web
projects -->
+ <extension
point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">
+ <serviceRuntime
+ id="org.jboss.tools.ws.creation.java"
+ serviceImplementationTypeId="org.eclipse.jst.ws.wsImpl.java"
+ runtimeId="org.jboss.tools.ws.creation.jbossWebServiceRT"
+ bottomUp="true"
+ topDown="true"
+ class="org.jboss.tools.ws.creation.ui.wsrt.JBossWebServiceRuntime">
+
+ <!--required-facet-version facet="jst.web" version="2.3"
allow-newer="true"/>
+ <required-facet-versiond facet="jbossws.core"
version="1.0" allow-newer="true" />
+ <required-facet-version facet="jbossws.ext" version="1.0"
allow-newer="true" / -->
+
+ </serviceRuntime>
+ </extension>
+
+ <!-- define support for Axis Java clients in Web projects -->
+ <extension point="org.eclipse.jst.ws.consumption.ui.clientRuntimes">
+ <clientRuntime
+ id="org.jboss.tools.ws..consumption.web"
+ clientImplementationTypeId="org.eclipse.jst.ws.client.type.java"
+ runtimeId="org.jboss.tools.ws.creation.jbossWebServiceRT"
+ class="org.jboss.tools.ws.creation.ui.wsrt.JBossWebServiceRuntime">
+
+ <!--required-facet-version facet="jst.web" version="2.3"
allow-newer="true" />
+ <required-facet-version facet="axis2.core" version="1.1"
allow-newer="true" />
+ <required-facet-version facet="axis2.ext" version="1.1"
allow-newer="true" / -->
+
+ </clientRuntime>
+ </extension>
+
+</plugin>
Added:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/CreationUIPlugin.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/CreationUIPlugin.java
(rev 0)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/CreationUIPlugin.java 2008-04-21
01:59:17 UTC (rev 7642)
@@ -0,0 +1,50 @@
+package org.jboss.tools.ws.creation.ui;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class CreationUIPlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jbossws.creation.ui";
+
+ // The shared instance
+ private static CreationUIPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public CreationUIPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static CreationUIPlugin getDefault() {
+ return plugin;
+ }
+
+}
Added:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/Ff.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/Ff.java
(rev 0)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/Ff.java 2008-04-21
01:59:17 UTC (rev 7642)
@@ -0,0 +1,33 @@
+package org.jboss.tools.ws.creation.ui;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+public class Ff {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+
+
+ // TODO Auto-generated method stub
+ try {
+
+ InputStream in = Runtime.getRuntime().exec("ls").getInputStream();
+ byte[] b = new byte[100000];
+ in.read(b,0,99999);
+ System.out.print(new String(b));
+
+
+
+
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ }
+
+}
Added:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
(rev 0)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java 2008-04-21
01:59:17 UTC (rev 7642)
@@ -0,0 +1,64 @@
+package org.jboss.tools.ws.creation.ui.wsrt;
+
+import java.awt.image.SampleModel;
+import java.util.Vector;
+
+import org.eclipse.wst.command.internal.env.core.ICommandFactory;
+import org.eclipse.wst.command.internal.env.core.SimpleCommandFactory;
+import org.eclipse.wst.common.environment.IEnvironment;
+import org.eclipse.wst.ws.internal.wsrt.AbstractWebService;
+import org.eclipse.wst.ws.internal.wsrt.IContext;
+import org.eclipse.wst.ws.internal.wsrt.ISelection;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceInfo;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario;
+import org.jboos.tools.ws.creation.core.commands.WSDL2JavaCommnad;
+import org.jboos.tools.ws.creation.core.data.ServiceModel;
+
+public class JBossWebService extends AbstractWebService {
+
+ public JBossWebService(WebServiceInfo info){
+ super(info);
+ }
+
+ @Override
+ public ICommandFactory assemble(IEnvironment env, IContext ctx,
+ ISelection sel, String project, String earProject) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ICommandFactory deploy(IEnvironment env, IContext ctx,
+ ISelection sel, String project, String earProject) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ICommandFactory develop(IEnvironment env, IContext ctx,
+ ISelection sel, String project, String earProject) {
+
+ Vector commands = new Vector();
+ ServiceModel model = new ServiceModel();
+ if (ctx.getScenario().getValue() == WebServiceScenario.BOTTOMUP) {
+ commands.add(new WSDL2JavaCommnad(model));
+ }
+
+ return new SimpleCommandFactory(commands);
+ }
+
+ @Override
+ public ICommandFactory install(IEnvironment env, IContext ctx,
+ ISelection sel, String project, String earProject) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ICommandFactory run(IEnvironment env, IContext ctx, ISelection sel,
+ String project, String earProject) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceRuntime.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceRuntime.java
(rev 0)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceRuntime.java 2008-04-21
01:59:17 UTC (rev 7642)
@@ -0,0 +1,22 @@
+package org.jboss.tools.ws.creation.ui.wsrt;
+
+import org.eclipse.wst.ws.internal.wsrt.AbstractWebServiceRuntime;
+import org.eclipse.wst.ws.internal.wsrt.IWebService;
+import org.eclipse.wst.ws.internal.wsrt.IWebServiceClient;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceClientInfo;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceInfo;
+
+public class JBossWebServiceRuntime extends AbstractWebServiceRuntime{
+
+ @Override
+ public IWebService getWebService(WebServiceInfo info) {
+ return null;
+ }
+
+ @Override
+ public IWebServiceClient getWebServiceClient(WebServiceClientInfo info) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}