JBoss Tools SVN: r9055 - in trunk/ws/docs/reference/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-07-03 03:03:03 -0400 (Thu, 03 Jul 2008)
New Revision: 9055
Added:
trunk/ws/docs/reference/en/images/bottomup.png
trunk/ws/docs/reference/en/images/bottomup1.png
trunk/ws/docs/reference/en/images/bottomup2.png
trunk/ws/docs/reference/en/images/bottomup3.png
trunk/ws/docs/reference/en/images/bottomup4.png
trunk/ws/docs/reference/en/images/bottomup5.png
trunk/ws/docs/reference/en/images/bottomup6.png
trunk/ws/docs/reference/en/images/client.png
trunk/ws/docs/reference/en/images/client1.png
trunk/ws/docs/reference/en/images/client2.png
trunk/ws/docs/reference/en/images/client3.png
trunk/ws/docs/reference/en/images/serverandruntime.png
trunk/ws/docs/reference/en/images/webproject1.png
trunk/ws/docs/reference/en/images/webproject2.png
trunk/ws/docs/reference/en/images/webproject3.png
Modified:
trunk/ws/docs/reference/en/modules/bottomup.xml
trunk/ws/docs/reference/en/modules/client.xml
trunk/ws/docs/reference/en/modules/webproject.xml
Log:
JBIDE-2469: modify documents
Added: trunk/ws/docs/reference/en/images/bottomup.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/bottomup1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/bottomup2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/bottomup3.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/bottomup4.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/bottomup5.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/bottomup6.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/bottomup6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/client.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/client.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/client1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/client1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/client2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/client2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/client3.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/client3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/serverandruntime.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/serverandruntime.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/webproject1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/webproject1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/webproject2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/webproject2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/webproject3.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/webproject3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/ws/docs/reference/en/modules/bottomup.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/bottomup.xml 2008-07-03 06:50:38 UTC (rev 9054)
+++ trunk/ws/docs/reference/en/modules/bottomup.xml 2008-07-03 07:03:03 UTC (rev 9055)
@@ -5,7 +5,7 @@
<para>To create a Web service from a bean using JBoss WS:</para>
<para>Setup <link linkend="preference">JBoss WS and development environment</link>.</para>
<para><link linkend="webproject">Creating a Dynamic Web project</link>.</para>
- <para><link linkend="facet">Add JBossWS facet to web project</link>.</para>
+ <para><link linkend="facet">Add JBossWS Facet to Web project</link>.</para>
<para>Create a Web Service from a java bean: </para>
<itemizedlist>
<listitem>
@@ -13,12 +13,36 @@
</listitem>
<listitem>
<para>In the Project Explorer view, select the bean that you created or imported into the source folder of your Web project.</para>
+ <figure>
+ <title>Create a new Bean Class</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
<listitem>
<para>Click <emphasis><property>File > New > Other</property></emphasis>.Select Web Services in order to display the various Web service wizards. Select the Web Service wizard. Click <property>Next</property> button.</para>
+ <figure>
+ <title>New Web Service</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
<listitem>
<para>In the first Web Service wizard page: select <property>Bottom up Java bean Web service</property> as your Web service type, and select the Java bean from which the service will be created.</para>
+ <figure>
+ <title>Set Web Service Common values</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
<itemizedlist>
<listitem>
<para>Select the stages of Web service development that you want to complete using the slider: </para>
@@ -52,6 +76,14 @@
</listitem>
<listitem>
<para>In the JBoss Web Service Code Generation Configuration page, you set values:</para>
+ <figure>
+ <title>Set Web Service values about Code Generation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
<itemizedlist>
<listitem>
<para>Generate WSDL file: select it, you will get a generated WSDL file in your project. But this wsdl's services' address location values are not real address. </para>
@@ -64,6 +96,14 @@
</listitem>
<listitem>
<para>In this page, the project is deployed to the server. you can start server and test the web service. If you want to publish the web service to a UDDI registry, you may click <property>Next</property> button to publish it. If not, you may click <property>Finish</property> button.</para>
+ <figure>
+ <title>Start a Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
</itemizedlist>
<para>After the Web Service has been created, the following may occur depending on the options you selected:</para>
@@ -73,9 +113,25 @@
</listitem>
<listitem>
<para>If have selected to generate WSDL file, you will get the file in your project's WebContent > wsdl folder.</para>
+ <figure>
+ <title>The generated WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
<listitem>
<para>If have selected to update the default web.xml, you will test the web service in browser.Open the Explorer, input the url for the web service according to web.xml plus <property>?wsdl.</property>, you will get the WSDL file from Explorer. </para>
+ <figure>
+ <title>The Updated web.xml</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bottomup5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
</itemizedlist>
</chapter>
Modified: trunk/ws/docs/reference/en/modules/client.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/client.xml 2008-07-03 06:50:38 UTC (rev 9054)
+++ trunk/ws/docs/reference/en/modules/client.xml 2008-07-03 07:03:03 UTC (rev 9055)
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<chapter id="client" revisionflag="added">
- <title>Creating a Web service Client from a WSDL file using JBoss WS</title>
- <para>To create a Web service Client from a WSDL file using JBoss WS:</para>
+ <title>Creating a Web Service Client from a WSDL Document using JBoss WS</title>
+ <para>To create a Web Service Client from a WSDL Document using JBoss WS:</para>
<para>Setup <link linkend="preference">JBoss WS and development environment</link>.</para>
<para><link linkend="webproject">Creating a Dynamic Web project</link>.</para>
- <para><link linkend="facet">Add JBossWS facet to web project</link>.</para>
- <para>Create a Web Service Client from a WSDL file: </para>
+ <para><link linkend="facet">Add JBossWS Facet to Web project</link>.</para>
+ <para>Create a Web Service Client from a WSDL document: </para>
<itemizedlist>
<listitem>
<para>Switch to the Java EE perspective <emphasis><property>Window > Open Perspective > Java EE</property></emphasis>.</para>
@@ -15,9 +15,33 @@
</listitem>
<listitem>
<para>Click <emphasis><property>File > New > Other</property></emphasis>.Select Web Services in order to display the various Web service wizards. Select the Web Service Client wizard. Click <property>Next</property> button.</para>
+ <figure>
+ <title>New Web Service Client</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/client.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
<listitem>
<para>The first and second Web Service Client wizard page are same to <link linkend="topdown">Web Service from a WSDL document</link>.</para>
+ <figure>
+ <title>Set Web Service Common values</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/client1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <figure>
+ <title>Set Web Service values about WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/client2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>The differences are:</para>
<itemizedlist>
<listitem>
@@ -34,7 +58,15 @@
</listitem>
<listitem>
<para>a client sample class.</para>
+ <figure>
+ <title>Client Sample Class</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/client3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
</itemizedlist>
- <para>JBoss WS support Java class test for Web Service. A client sample class will be generated, you may run this client as a java application to call the web service.</para>
+ <para>JBoss WS use a Java class to test Web Service. A client sample class will be generated, you may run this client as a java application to call a web service.</para>
</chapter>
Modified: trunk/ws/docs/reference/en/modules/webproject.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/webproject.xml 2008-07-03 06:50:38 UTC (rev 9054)
+++ trunk/ws/docs/reference/en/modules/webproject.xml 2008-07-03 07:03:03 UTC (rev 9055)
@@ -2,7 +2,15 @@
<chapter id="webproject" revisionflag="added">
<title>Creating a Dynamic Web project</title>
- <para>Before create a web service, you must have a Dynamic Web Project</para>
+ <para>Before create a web service, you must have a Dynamic Web Project</para>
+ <figure>
+ <title>Dynamic Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webproject1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>Create the service Web project by selecting
<emphasis><property>New > Project... > Dynamic Web project</property></emphasis>. Enter the following information: </para>
<itemizedlist>
@@ -10,8 +18,27 @@
<para>Project Name: enter a project name</para>
</listitem>
<listitem>
- <para>Target runtime: any server depending on you installed. If it is not listed, click New and browse to the location where it is installed. You may choose none of server.In this case, you must choose a JBoss WS runtime when you add a JBoss WS facet to this project.</para>
+ <para>Target runtime: any server depending on you installed. If it is not listed, click New and browse to the location where it is installed. You may choose none of server.In this case, you must choose a JBoss WS runtime when you add a JBoss WS facet to this project.</para>
+ <figure>
+ <title>Dynamic Web Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webproject2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Set Web Module values</para>
+ <figure>
+ <title>Configures Web Module Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webproject3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
</listitem>
</itemizedlist>
<para>Click <property>Finish</property> button.</para>
-</chapter>
\ No newline at end of file
+</chapter>
16 years, 6 months
JBoss Tools SVN: r9054 - in trunk/ws/docs/reference/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-07-03 02:50:38 -0400 (Thu, 03 Jul 2008)
New Revision: 9054
Modified:
trunk/ws/docs/reference/en/master.xml
trunk/ws/docs/reference/en/modules/preference.xml
trunk/ws/docs/reference/en/modules/topdown.xml
Log:
modify documents
Modified: trunk/ws/docs/reference/en/master.xml
===================================================================
--- trunk/ws/docs/reference/en/master.xml 2008-07-03 06:32:39 UTC (rev 9053)
+++ trunk/ws/docs/reference/en/master.xml 2008-07-03 06:50:38 UTC (rev 9054)
@@ -2,11 +2,12 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
-[<!ENTITY preference SYSTEM "modules/preference.xml">
-<!ENTITY facet SYSTEM "modules/facet.xml">
-<!ENTITY webproject SYSTEM "modules/webproject.xml">
+[
+<!ENTITY topdown SYSTEM "modules/topdown.xml">
+<!ENTITY preference SYSTEM "modules/preference.xml">
+<!--ENTITY facet SYSTEM "modules/facet.xml"-->
+<!--ENTITY webproject SYSTEM "modules/webproject.xml"-->
<!ENTITY bottomup SYSTEM "modules/bottomup.xml">
-<!ENTITY topdown SYSTEM "modules/topdown.xml">
<!ENTITY client SYSTEM "modules/client.xml">
]>
Modified: trunk/ws/docs/reference/en/modules/preference.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/preference.xml 2008-07-03 06:32:39 UTC (rev 9053)
+++ trunk/ws/docs/reference/en/modules/preference.xml 2008-07-03 06:50:38 UTC (rev 9054)
@@ -1,14 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<chapter id="preference" revisionflag="added">
- <title>JBoss WS and development environment</title>
- <section id="overview">
- <title>JBoss WS Overview</title>
-
- <para>JBossWS is a web service framework developed as part of the JBoss Application Server. It implements the JAX-WS specification that defines a programming model and run-time architecture for implementing web services in Java, targeted at the Java Platform, Enterprise Edition 5 (Java EE 5)</para>
-
- </section>
-
<title>JBossWS Preferences</title>
<para>In this chapter you get to know how JBossWS preferences can be modified during the development process.</para>
@@ -26,8 +18,8 @@
</mediaobject>
</figure>
- <para>Clicking on <property>Edit</property> button you will get the form where you can change the path of JBossWS runtime home folder,
- modify name and version. Press <property>Finish</property> to apply the changes.</para>
+ <para>Clicking on <emphasis><property>Add</property></emphasis> or <emphasis><property>Edit</property></emphasis> button you will get the form where you can configure a new JbossWS runtime and change the path of JBossWS runtime home folder,
+ modify name and version of a existing JBossWS runtime settings. Press <property>Finish</property> to apply the changes.</para>
<figure>
<title>Edit JBossWS Runtime</title>
Modified: trunk/ws/docs/reference/en/modules/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 06:32:39 UTC (rev 9053)
+++ trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 06:50:38 UTC (rev 9054)
@@ -8,6 +8,13 @@
<keyword>JBossWS Web Service runtime</keyword>
</keywordset>
</chapterinfo>
+ <section id="overview">
+ <title>JBoss WS Overview</title>
+
+ <para>JBossWS is a web service framework developed as part of the JBoss Application Server. It implements the JAX-WS specification that defines a programming model and run-time architecture for implementing web services in Java, targeted at the Java Platform, Enterprise Edition 5 (Java EE 5)</para>
+
+ </section>
+
<title>Creating a Web Service using JBossWS runtime</title>
<para>In this chapter we provide you with the necessary steps to create a Web Service using JBossWS runtime.</para>
16 years, 6 months
JBoss Tools SVN: r9053 - in trunk/ws/docs/reference/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-07-03 02:32:39 -0400 (Thu, 03 Jul 2008)
New Revision: 9053
Added:
trunk/ws/docs/reference/en/images/Jbossws_preference.png
trunk/ws/docs/reference/en/images/Jbossws_preference_new.png
trunk/ws/docs/reference/en/images/jbossws_facet.png
trunk/ws/docs/reference/en/images/jbossws_newruntime.png
trunk/ws/docs/reference/en/images/jbossws_ws_creation1.png
trunk/ws/docs/reference/en/images/jbossws_ws_creation1_1.png
trunk/ws/docs/reference/en/images/jbossws_ws_creation2.png
Modified:
trunk/ws/docs/reference/en/modules/preference.xml
trunk/ws/docs/reference/en/modules/topdown.xml
Log:
add documents
Added: trunk/ws/docs/reference/en/images/Jbossws_preference.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/Jbossws_preference.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/Jbossws_preference_new.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/Jbossws_preference_new.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_facet.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_facet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_newruntime.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_newruntime.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_ws_creation1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_ws_creation1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_ws_creation1_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_ws_creation1_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/reference/en/images/jbossws_ws_creation2.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/reference/en/images/jbossws_ws_creation2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/ws/docs/reference/en/modules/preference.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/preference.xml 2008-07-03 05:37:05 UTC (rev 9052)
+++ trunk/ws/docs/reference/en/modules/preference.xml 2008-07-03 06:32:39 UTC (rev 9053)
@@ -9,36 +9,32 @@
</section>
- <section id="jbosswspreference">
- <title>Set JBossWS Runtime Location</title>
- <para>Open
- <emphasis><property>Window > Preferences > Web Services > JBossWS Preferences</property></emphasis>. In this Page , you can set JBossWS Runtime.</para>
- <para>Now JBoss Tools only support JBoss EAP or JBoss AS as JBossWS Runtime.</para>
- <para>After set JBoss WS Runtime, click <property>OK</property> button to save the JBoss WS Runtime location.</para>
- <figure>
- <title></title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
+ <title>JBossWS Preferences</title>
- <section id="serverruntime">
- <title>Set default Server and Runtime</title>
- <para>Open
- <emphasis><property>Window > Preferences > Web Services > Server and Runtime</property></emphasis>. In this page, you can set default server and runtime.</para>
- <para>For ease of use, the better way is to set runtime = JBoss WS.</para>
- <para>After set server and runtime, click <property>Aplly</property> button to save the value.</para>
- <figure>
- <title></title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
+<para>In this chapter you get to know how JBossWS preferences can be modified during the development process.</para>
+
+ <para>JBossWS preferences can be set using the JBossWS preference page. Click on <emphasis><property>Window > Preferences > JBoss Tools > Web > JBossWS Preference</property>.</emphasis></para>
+
+ <para>On this page you can manage the JBossWS Runtime. Use the appropriate buttons to <property>Add</property> more runtimes or to <property>Remove</property> those that are not needed.</para>
+
+ <figure>
+ <title>JBossWS Preferences Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Jbossws_preference.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Clicking on <property>Edit</property> button you will get the form where you can change the path of JBossWS runtime home folder,
+ modify name and version. Press <property>Finish</property> to apply the changes.</para>
+
+ <figure>
+ <title>Edit JBossWS Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Jbossws_preference_new.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</chapter>
Modified: trunk/ws/docs/reference/en/modules/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 05:37:05 UTC (rev 9052)
+++ trunk/ws/docs/reference/en/modules/topdown.xml 2008-07-03 06:32:39 UTC (rev 9053)
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="create_ws_topdown" >
+ <?dbhtml filename="topdown.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Web Service</keyword>
+ <keyword>JBossWS Web Service runtime</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Creating a Web Service using JBossWS runtime</title>
+ <para>In this chapter we provide you with the necessary steps to create a Web Service using JBossWS runtime.</para>
+
+ <section id="createproject">
+ <title>Creating a Dynamic Web project</title>
+ <para>Before create a web service, you must have a Dynamic Web Project</para>
+ <para>Create the service Web project by selecting
+ <emphasis><property>New > Project... > Dynamic Web project</property></emphasis>. Enter the following information: </para>
+ <itemizedlist>
+ <listitem>
+ <para>Project Name: enter a project name</para>
+ </listitem>
+ <listitem>
+ <para>Target runtime: any server depending on you installed. If it is not listed, click New and browse to the location where it is installed. You may set <emphasis><property>Target Runtime</property></emphasis> to <emphasis><property>None</property></emphasis>,
+ in this case, you must <link linkend="addfacet">add JBoss Web Service facet to the project</link> </para>
+ </listitem>
+ </itemizedlist>
+ <para>Click <property>Finish</property> button.</para>
+ </section>
+
+ <section id="addfacet">
+ <title>Configure JBoss Web Service facet settings</title>
+ <para>If you have already create a dynamic web project, the next step is to add JBoss Web Service facet to the project </para>
+ <figure id="figure_addfacet">
+ <title>Configure JBoss Web Service Facet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_facet.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Server Supplied JBossWS Runtime: If you have already set a JBoss runtime to the project's target runtime, you may choose <emphasis><property>Server Supplied JBossWS Runtime</property></emphasis>
+ and then click <emphasis><property>Ok</property> to finish the configuration of JBoss Web Service facet. </emphasis>
+ </para>
+ <para>If the project has no <emphasis><property>Target Runtime</property></emphasis> settings, you must check the second radio button and specify a JBossWS runtime from the list.
+ You also can create a new JBossWS runtime, click <emphasis><property>New...</property></emphasis> button will bring you to another dialog for configuring new JBossWS runtime.</para>
+ <figure id="figure_addfacet">
+ <title>Configure JBossWS Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_newruntime.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>See how to <link linkend="preference">configure a new JBossWS runtime</link> </para>
+
+ </section>
+
+
+ <section id="topdownwebservice">
+ <title>Creating a Web Service from a WSDL document using JBossWS runtime</title>
+ <para>In this chapter we provide you with the necessary steps to create a Web Service from a WSDL document using JBossWS runtime.</para>
+ <para>At first, please make sure that you have already create a dynamic Web project with JBoss Web Service facet get installed. </para>
+ <para>To make it see <link linkend="webproject">create dynamic Web project</link>> and <link linkend="facet">add JBoss Web Service facet</link></para>
+
+ <para>To create Web Service using JBossWS runtime select<emphasis>
+ <property>File > New > Other > Web Services > Web Service</property> to run Web Service creation wizard.
+ </emphasis> </para>
+ <para>Let's get through the wizard step-by-step.</para>
+ <figure id="figure_create_ws_topdown">
+ <title>New Web Service Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_ws_creation1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>First, please select <property>Top down Java bean Web Service</property> from Web Service type list,
+ and select a WSDL document from workspace, click the link <emphasis><property>Server</property></emphasis> on the page will bring you to
+ another dialog. Here you can specify the server to a JBoss Server and Web Service runtime to JBossWS runtime</para>
+ <figure id="figure_create_ws_topdown_setserver">
+ <title>Select Server and Web Service runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_ws_creation1_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Click on <emphasis>
+ <property>Finish</property>
+ </emphasis> Button you will have the following wizard view.</para>
+
+ <figure id="figure_create_ws_topdown">
+ <title>New Web Service Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_ws_creation1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Click on <emphasis><property>Next</property></emphasis> button to next step</para>
+ <figure id="figure_create_ws_topdown_codegen">
+ <title>New Web Service Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jbossws_ws_creation2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On this page, the default package name comes from the namespace of the WSDL document, you also can change it to any valid package name you want.
+ JAX-WS specification should be set to 2.0 if your JBossWS runtime in JBoss Server is JBossWS native runtime.
+ You can specify a catalog file and binding files if you have. If you want the wizard generate empty implementation classes for the
+ Web Service, check the <emphasis> <property>Generate default Web Service implementation classes</property> </emphasis> check box .
+ If you want update the default Web.xml file with the Web Service servlets get configured, check <emphasis> <property>Update the default Web.xml</property> </emphasis>
+ check box. Click on <emphasis><property>Next</property> </emphasis> or <emphasis><property>Finish</property> </emphasis> button to generate code </para>
+
+ <para>In previous step, the Web Service code is generated, then you can view the implementation class and add business logic to each method.</para>
+
+ </section>
+
+ <section id="bottomupws">
+ <title>Creating a Web service from a Java bean using JBossWS runtime </title>
+ </section>
+
+</chapter>
16 years, 6 months
JBoss Tools SVN: r9052 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-07-03 01:37:05 -0400 (Thu, 03 Jul 2008)
New Revision: 9052
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ClientSampleCreationCommand.java
Log:
JBIDE-2478: correct some print errors in sample client class
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ClientSampleCreationCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ClientSampleCreationCommand.java 2008-07-03 00:50:23 UTC (rev 9051)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ClientSampleCreationCommand.java 2008-07-03 05:37:05 UTC (rev 9052)
@@ -109,7 +109,7 @@
createWebServiceClient(clientUnits, serviceUnits, sb);
sb.append(" System.out.println(\"***********************\");");
sb.append(LINE_SEPARATOR);
- sb.append(JBossWSCreationCoreMessages.Client_Sample_Run_Over);
+ sb.append(" System.out.println(\"").append(JBossWSCreationCoreMessages.Client_Sample_Run_Over).append("\");");
sb.append(LINE_SEPARATOR);
sb.append("}");
try {
@@ -168,7 +168,7 @@
private void callWebServiceOperation(TypeDeclaration typeDec,
StringBuffer sb, int i) {
sb.append(" System.out.println(\""
- + "Create Web Service Operation...\");");
+ + "Call Web Service Operation...\");");
sb.append(LINE_SEPARATOR);
MethodDeclaration methodDec[] = typeDec.getMethods();
16 years, 6 months
JBoss Tools SVN: r9051 - trunk/as/plugins/org.jboss.ide.eclipse.as.core.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-07-02 20:50:23 -0400 (Wed, 02 Jul 2008)
New Revision: 9051
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/build.properties
Log:
JBIDE-1788
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/build.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/build.properties 2008-07-02 23:46:16 UTC (rev 9050)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/build.properties 2008-07-03 00:50:23 UTC (rev 9051)
@@ -8,5 +8,6 @@
plugin.properties,\
schema/,\
getopt.jar,\
- properties/
+ properties/,\
+ dtd/
source.jbossascore.jar = jbosscore/
16 years, 6 months
JBoss Tools SVN: r9050 - in trunk/birt/plugins/org.jboss.tools.birt.core: src/org/jboss/tools/birt/core/internal/project/facet and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-07-02 19:46:16 -0400 (Wed, 02 Jul 2008)
New Revision: 9050
Added:
trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-birt-servlet.jar
Modified:
trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam-birt.jar
trunk/birt/plugins/org.jboss.tools.birt.core/src/org/jboss/tools/birt/core/internal/project/facet/BirtPostInstallListener.java
Log:
JBIDE-2220 JBoss BIRT Integration - creating a JSF control intended to embed a BIRT report in an existing page
Added: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-birt-servlet.jar
===================================================================
(Binary files differ)
Property changes on: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-birt-servlet.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam-birt.jar
===================================================================
(Binary files differ)
Modified: trunk/birt/plugins/org.jboss.tools.birt.core/src/org/jboss/tools/birt/core/internal/project/facet/BirtPostInstallListener.java
===================================================================
--- trunk/birt/plugins/org.jboss.tools.birt.core/src/org/jboss/tools/birt/core/internal/project/facet/BirtPostInstallListener.java 2008-07-02 23:42:41 UTC (rev 9049)
+++ trunk/birt/plugins/org.jboss.tools.birt.core/src/org/jboss/tools/birt/core/internal/project/facet/BirtPostInstallListener.java 2008-07-02 23:46:16 UTC (rev 9050)
@@ -8,6 +8,7 @@
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.Set;
@@ -19,12 +20,21 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.j2ee.model.IModelProvider;
+import org.eclipse.jst.j2ee.model.ModelProviderManager;
+import org.eclipse.jst.javaee.core.JavaeeFactory;
+import org.eclipse.jst.javaee.core.UrlPatternType;
+import org.eclipse.jst.javaee.web.Servlet;
+import org.eclipse.jst.javaee.web.ServletMapping;
+import org.eclipse.jst.javaee.web.WebApp;
+import org.eclipse.jst.javaee.web.WebFactory;
import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
@@ -55,38 +65,38 @@
.getId())) {
isJBossBirtProject = true;
}
- if (BirtCoreActivator.BIRT_FACET_ID.equals(projectFacet
- .getId())) {
+ if (BirtCoreActivator.BIRT_FACET_ID.equals(projectFacet.getId())) {
isBirtProject = true;
}
- if (BirtCoreActivator.SEAM_FACET_ID.equals(projectFacet
- .getId())) {
+ if (BirtCoreActivator.SEAM_FACET_ID.equals(projectFacet.getId())) {
isSeamProject = true;
}
-
+
}
if (!isBirtProject && !isJBossBirtProject && !isSeamProject)
return;
-
+
if (isBirtProject || isJBossBirtProject) {
IProjectFacetActionEvent actionEvent = (IProjectFacetActionEvent) event;
IDataModel dataModel = (IDataModel) actionEvent.getActionConfig();
try {
configFolder = dataModel
- .getStringProperty("IJ2EEFacetInstallDataModelProperties.CONFIG_FOLDER"); //$NON-NLS-1$
+ .getStringProperty("IJ2EEFacetInstallDataModelProperties.CONFIG_FOLDER"); //$NON-NLS-1$
if (configFolder == null) {
String message = BirtWTPMessages.BIRTErrors_wrong_webcontent;
Logger.log(Logger.ERROR, message);
return;
}
} catch (Exception e) {
- //e.printStackTrace();
+ // e.printStackTrace();
}
}
if (isJBossBirtProject || isBirtProject) {
- String configIniString = configFolder + "/WEB-INF/platform/configuration/config.ini";
+ String configIniString = configFolder
+ + "/WEB-INF/platform/configuration/config.ini";
IProject project = facetedProject.getProject();
- IResource configFile = project.findMember(new Path(configIniString));
+ IResource configFile = project
+ .findMember(new Path(configIniString));
if (!configFile.exists()) {
String message = "The config.ini file doesn't exist";
Logger.log(Logger.ERROR, message);
@@ -101,17 +111,20 @@
properties.load(inputStream);
String bootDelegation = "org.osgi.framework.bootdelegation";
String loader = "osgi.parentClassloader";
- properties.put(bootDelegation, "org.hibernate,org.hibernate.type,org.hibernate.metadata,org.hibernate.ejb, javax.persistence");
- properties.put(loader,"fwk");
+ properties
+ .put(
+ bootDelegation,
+ "org.hibernate,org.hibernate.type,org.hibernate.metadata,org.hibernate.ejb, javax.persistence");
+ properties.put(loader, "fwk");
// FIXME
- //String compatibility = "osgi.compatibility.bootdelegation";
- //properties.put(compatibility,"false");
+ // String compatibility = "osgi.compatibility.bootdelegation";
+ // properties.put(compatibility,"false");
IFile file = (IFile) configFile;
outputStream = new ByteArrayOutputStream();
properties.store(outputStream, null);
file.setContents(new ByteArrayInputStream(outputStream
- .toByteArray()), true, true, null);
-
+ .toByteArray()), true, true, null);
+
} catch (Exception e) {
Logger.log(Logger.ERROR, e.getLocalizedMessage());
} finally {
@@ -130,44 +143,146 @@
}
}
}
-
+
}
if (isBirtProject && !isJBossBirtProject) {
String platformFolder = configFolder + "/WEB-INF/platform/plugins";
IProject project = facetedProject.getProject();
IProgressMonitor monitor = new NullProgressMonitor();
- BirtCoreActivator.copyPlugin(project,"org.jboss.tools.birt.oda",platformFolder,monitor);
+ BirtCoreActivator.copyPlugin(project, "org.jboss.tools.birt.oda",
+ platformFolder, monitor);
}
if (isSeamProject && (isBirtProject || isJBossBirtProject)) {
IProject project = facetedProject.getProject();
String libFolder = configFolder + "/WEB-INF/lib";
IResource destResource = project.findMember(libFolder);
- if (destResource.getType() != IResource.FOLDER ) {
- IStatus status = new Status(IStatus.WARNING,BirtCoreActivator.PLUGIN_ID,"The " + libFolder + " resource is not a folder");
+ if (destResource.getType() != IResource.FOLDER) {
+ IStatus status = new Status(IStatus.WARNING,
+ BirtCoreActivator.PLUGIN_ID, "The " + libFolder
+ + " resource is not a folder");
BirtCoreActivator.getDefault().getLog().log(status);
return;
}
IFolder folder = (IFolder) destResource;
Bundle bundle = Platform.getBundle(JBossBirtCorePluginId);
- URL entry = bundle.getEntry("/resources/jboss-seam-birt.jar");
+ URL entryComponent = bundle
+ .getEntry("/resources/jboss-seam-birt.jar");
+ URL entryServlet = bundle
+ .getEntry("/resources/jboss-birt-servlet.jar");
try {
- String fileName = FileLocator.toFileURL(entry).getFile();
- File file = new File(fileName);
- List<File> filesToImport = new ArrayList<File>();
- filesToImport.add(file);
- ImportOperation importOperation = new ImportOperation(folder.getFullPath(),
- file.getParentFile(), FileSystemStructureProvider.INSTANCE,
- BirtCoreActivator.OVERWRITE_ALL_QUERY, filesToImport);
- importOperation.setCreateContainerStructure(false);
- IProgressMonitor monitor = new NullProgressMonitor();
- importOperation.run(monitor);
+ copyEntry(entryComponent, folder);
+ copyEntry(entryServlet, folder);
+ configureJBossBirtServlet(facetedProject.getProject());
} catch (Exception e) {
- IStatus status = new Status(IStatus.WARNING,BirtCoreActivator.PLUGIN_ID,"Error while copying jboss-seam-birt.jar",e);
+ IStatus status = new Status(IStatus.WARNING,
+ BirtCoreActivator.PLUGIN_ID,
+ "Error while creating JBoss BIRT artifacts", e);
BirtCoreActivator.getDefault().getLog().log(status);
} finally {
- configFolder=null;
+ configFolder = null;
}
}
}
+ private void configureJBossBirtServlet(final IProject project) {
+ IModelProvider modelProvider = ModelProviderManager
+ .getModelProvider(project);
+ Object modelObject = modelProvider.getModelObject();
+ if (!(modelObject instanceof WebApp)) {
+ // TODO log
+ return;
+ }
+ IPath modelPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
+ boolean exists = project.getProjectRelativePath().append(modelPath)
+ .toFile().exists();
+ if (!exists) {
+ modelPath = IModelProvider.FORCESAVE;
+ }
+ modelProvider.modify(new Runnable() {
+
+ public void run() {
+ IModelProvider modelProvider = ModelProviderManager
+ .getModelProvider(project);
+ Object modelObject = modelProvider.getModelObject();
+ if (!(modelObject instanceof WebApp)) {
+ // TODO log
+ return;
+ }
+ WebApp webApp = (WebApp) modelObject;
+ String servletClass = "org.jboss.tools.birt.servlet.JBossBirtServlet";
+ String servletName = "JBoss BIRT Servlet";
+ List servlets = webApp.getServlets();
+ boolean added = false;
+ for (Iterator iterator = servlets.iterator(); iterator
+ .hasNext();) {
+ Servlet servlet = (Servlet) iterator.next();
+ if (servletName.equals(servlet.getServletName())) {
+ servlet.setServletName(servletName);
+ added = true;
+ break;
+ }
+ }
+ if (!added) {
+ Servlet servlet = WebFactory.eINSTANCE.createServlet();
+ servlet.setServletName(servletName);
+ servlet.setServletClass(servletClass);
+ webApp.getServlets().add(servlet);
+ }
+
+ String name = servletName;
+ String value="/embed";
+ List servletMappings = webApp.getServletMappings();
+ added = false;
+ for (Iterator iterator = servletMappings.iterator(); iterator.hasNext();) {
+ ServletMapping servletMapping = (ServletMapping) iterator.next();
+ if (servletMapping != null
+ && name.equals(servletMapping.getServletName())) {
+ added = true;
+ // FIXME
+ }
+ }
+ if (!added) {
+ ServletMapping mapping = WebFactory.eINSTANCE
+ .createServletMapping();
+ Servlet servlet = findServletByName(webApp, name);
+ if (servlet != null) {
+ mapping.setServletName(servlet.getServletName());
+ UrlPatternType urlPattern = JavaeeFactory.eINSTANCE
+ .createUrlPatternType();
+ urlPattern.setValue(value);
+ mapping.getUrlPatterns().add(urlPattern);
+ webApp.getServletMappings().add(mapping);
+ }
+ }
+ }
+
+ }, modelPath);
+
+ }
+
+ private Servlet findServletByName(WebApp webApp, String name) {
+ Iterator it = webApp.getServlets().iterator();
+ while (it.hasNext()) {
+ Servlet servlet = (Servlet) it.next();
+ if (servlet.getServletName() != null
+ && servlet.getServletName().trim().equals(name)) {
+ return servlet;
+ }
+ }
+ return null;
+ }
+ private void copyEntry(URL entry, IFolder folder) throws Exception {
+ String fileName = FileLocator.toFileURL(entry).getFile();
+ File file = new File(fileName);
+ List<File> filesToImport = new ArrayList<File>();
+ filesToImport.add(file);
+ ImportOperation importOperation = new ImportOperation(folder
+ .getFullPath(), file.getParentFile(),
+ FileSystemStructureProvider.INSTANCE,
+ BirtCoreActivator.OVERWRITE_ALL_QUERY, filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ IProgressMonitor monitor = new NullProgressMonitor();
+ importOperation.run(monitor);
+ }
+
}
16 years, 6 months
JBoss Tools SVN: r9049 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-07-02 19:42:41 -0400 (Wed, 02 Jul 2008)
New Revision: 9049
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java
Log:
Fix compilation error
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java 2008-07-02 17:54:28 UTC (rev 9048)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java 2008-07-02 23:42:41 UTC (rev 9049)
@@ -134,7 +134,9 @@
if (null == strConsoleConfig || 0 == strConsoleConfig.length()) {
enabled = false;
}
- tfc.setRefreshEnabled(enabled);
+
+ // FIXME Commented to fix compilation error under Eclipse 3.4
+ // tfc.setRefreshEnabled(enabled);
}
protected boolean hasDuplicates() {
16 years, 6 months
JBoss Tools SVN: r9048 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-07-02 13:54:28 -0400 (Wed, 02 Jul 2008)
New Revision: 9048
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewHibernateMappingFilePage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java
Log:
add scroll area functionality for wizards
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2008-07-02 17:30:46 UTC (rev 9047)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2008-07-02 17:54:28 UTC (rev 9048)
@@ -57,6 +57,7 @@
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
@@ -133,7 +134,11 @@
* @see IDialogPage#createControl(Composite)
*/
public void createControl(Composite parent) {
- TabFolder folder = new TabFolder(parent,SWT.TOP);
+ final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
+ sc.setExpandHorizontal(true);
+ sc.setExpandVertical(true);
+ TabFolder folder = new TabFolder(sc, SWT.TOP);
+ sc.setContent(folder);
//Composite container = new Composite(parent, SWT.NULL);
@@ -168,7 +173,8 @@
initialize(selection);
dialogChanged();
- setControl(folder);
+ sc.setMinSize(folder.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+ setControl(sc);
}
private Composite createGeneral(Composite parent, ModifyListener modifyListener) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewHibernateMappingFilePage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewHibernateMappingFilePage.java 2008-07-02 17:30:46 UTC (rev 9047)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewHibernateMappingFilePage.java 2008-07-02 17:54:28 UTC (rev 9048)
@@ -38,6 +38,7 @@
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
@@ -103,7 +104,12 @@
* @see IDialogPage#createControl(Composite)
*/
public void createControl(Composite parent) {
- Composite container = new Composite(parent, SWT.NULL);
+ final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
+ sc.setExpandHorizontal(true);
+ sc.setExpandVertical(true);
+
+ Composite container = new Composite(sc, SWT.NULL);
+ sc.setContent(container);
GridLayout layout = new GridLayout();
container.setLayout(layout);
layout.numColumns = 3;
@@ -150,9 +156,11 @@
}
});
+ sc.setMinSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+
initialize();
dialogChanged();
- setControl(container);
+ setControl(sc);
}
/**
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java 2008-07-02 17:30:46 UTC (rev 9047)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TableFilterWizardPage.java 2008-07-02 17:54:28 UTC (rev 9048)
@@ -30,6 +30,7 @@
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
@@ -58,7 +59,12 @@
public void createControl(Composite parent) {
initializeDialogUnits(parent);
- Composite container = new Composite(parent, SWT.NULL);
+ final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
+ sc.setExpandHorizontal(true);
+ sc.setExpandVertical(true);
+
+ Composite container = new Composite(sc, SWT.NULL);
+ sc.setContent(container);
//container.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_CYAN));
GridLayout layout = new GridLayout();
@@ -91,8 +97,10 @@
gd.horizontalSpan=3;
tfc.setLayoutData(gd);
- setControl(container);
+ sc.setMinSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+ setControl(sc);
+
if(selectedConfiguratonName!=null) {
consoleConfigurationName.setText(selectedConfiguratonName);
}
@@ -107,6 +115,7 @@
* Ensures that contents is ok.
*/
private void dialogChanged() {
+ //updateButtons();
if (hasDuplicates()) {
updateWarningStatus(HibernateConsoleMessages.TableFilterWizardPage_table_filters_contains_duplicates);
@@ -116,6 +125,18 @@
updateWarningStatus(null);
}
+ /**
+ * Updates buttons state.
+ */
+ private void updateButtons() {
+ String strConsoleConfig = consoleConfigurationName.getText();
+ boolean enabled = true;
+ if (null == strConsoleConfig || 0 == strConsoleConfig.length()) {
+ enabled = false;
+ }
+ tfc.setRefreshEnabled(enabled);
+ }
+
protected boolean hasDuplicates() {
boolean res = false;
ITableFilter[] filters = getTableFilters();
16 years, 6 months
JBoss Tools SVN: r9047 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-07-02 13:30:46 -0400 (Wed, 02 Jul 2008)
New Revision: 9047
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationSettingsTab.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1611 - add scrollbars
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationSettingsTab.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationSettingsTab.java 2008-07-02 13:58:15 UTC (rev 9046)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationSettingsTab.java 2008-07-02 17:30:46 UTC (rev 9047)
@@ -46,6 +46,7 @@
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -96,8 +97,12 @@
public void createControl(Composite parent) {
//initializeDialogUnits(parent);
+ final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
+ sc.setExpandHorizontal(true);
+ sc.setExpandVertical(true);
- Composite container = new Composite(parent, SWT.NULL);
+ Composite container = new Composite(sc, SWT.NULL);
+ sc.setContent(container);
GridLayout layout = new GridLayout();
container.setLayout(layout);
@@ -246,8 +251,10 @@
// Hack to tell the text field to stretch!
( (GridData)controls[1].getLayoutData() ).grabExcessHorizontalSpace=true;
- dialogChanged();
- setControl(container);
+ sc.setMinSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+
+ dialogChanged();
+ setControl(sc);
}
private void fillLabel(Composite container) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java 2008-07-02 13:58:15 UTC (rev 9046)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java 2008-07-02 17:30:46 UTC (rev 9047)
@@ -65,6 +65,7 @@
import org.eclipse.jface.window.Window;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
@@ -129,10 +130,13 @@
public void createControl(Composite parent) {
selectedExporters = new HashSet();
deletedExporterIds = new HashSet();
- // ScrolledComposite scrolled = new ScrolledComposite(parent,
- // SWT.V_SCROLL | SWT.H_SCROLL);
- Composite container = new Composite( parent, SWT.NONE );
+ final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
+ sc.setExpandHorizontal(true);
+ sc.setExpandVertical(true);
+
+ Composite container = new Composite( sc, SWT.NONE );
+ sc.setContent(container);
GridData controlData = new GridData( GridData.FILL_BOTH );
container.setLayoutData( controlData );
@@ -148,8 +152,10 @@
createExporterProperties( container );
+ sc.setMinSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+
dialogChanged();
- setControl( container );
+ setControl(sc);
}
private void createExporterProperties(Composite parent) {
16 years, 6 months
JBoss Tools SVN: r9046 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-07-02 09:58:15 -0400 (Wed, 02 Jul 2008)
New Revision: 9046
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-2476
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-07-02 13:30:17 UTC (rev 9045)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-07-02 13:58:15 UTC (rev 9046)
@@ -725,6 +725,10 @@
<vpe:tag name="f:convertDateTime">
<vpe:template children="no" modify="no" />
</vpe:tag>
+
+ <vpe:tag name="f:converter">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
<vpe:tag name="f:convertNumber">
<vpe:template children="no" modify="no" />
16 years, 6 months