JBoss Tools SVN: r8320 - in branches/jbosstools-2.1.x/documentation: guides/Exadel-migration/en and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-05-26 11:05:09 -0400 (Mon, 26 May 2008)
New Revision: 8320
Modified:
branches/jbosstools-2.1.x/documentation/
branches/jbosstools-2.1.x/documentation/guides/Exadel-migration/en/master.xml
branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/master.xml
branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-324
qa reports are not added.
Merged revisions 8255,8290,8300,8309-8311 via svnmerge from
https://svn.jboss.org/repos/jbosstools/trunk/documentation
........
r8255 | ochikvina | 2008-05-21 14:27:42 +0300 (Wed, 21 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-296 - listing OSs for which JBDS currantly available
........
r8290 | afedosik | 2008-05-22 18:00:32 +0300 (Thu, 22 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-292 Docs version update according to GA release
........
r8300 | afedosik | 2008-05-23 13:03:34 +0300 (Fri, 23 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-292 JBDS Install update version
........
Property changes on: branches/jbosstools-2.1.x/documentation
___________________________________________________________________
Name: svnmerge-integrated
- /trunk/documentation:1-7998,8002-8205
+ /trunk/documentation:1-7998,8002-8205,8255-8311
Modified: branches/jbosstools-2.1.x/documentation/guides/Exadel-migration/en/master.xml
===================================================================
--- branches/jbosstools-2.1.x/documentation/guides/Exadel-migration/en/master.xml 2008-05-26 14:54:15 UTC (rev 8319)
+++ branches/jbosstools-2.1.x/documentation/guides/Exadel-migration/en/master.xml 2008-05-26 15:05:09 UTC (rev 8320)
@@ -33,7 +33,7 @@
<holder>JBoss, a division of Red Hat Inc.</holder>
</copyright>
<releaseinfo>
-Version: 1.1.0.CR1
+Version: 1.1.0.GA
</releaseinfo>
</bookinfo>
Modified: branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/master.xml
===================================================================
--- branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/master.xml 2008-05-26 14:54:15 UTC (rev 8319)
+++ branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/master.xml 2008-05-26 15:05:09 UTC (rev 8320)
@@ -34,7 +34,7 @@
<year>2008</year>
<holder>JBoss, a division of Red Hat Inc.</holder>
</copyright>
- <releaseinfo>Version: 1.1.0.CR1</releaseinfo>
+ <releaseinfo>Version: 1.1.0.GA</releaseinfo>
</bookinfo>
<toc/>
Modified: branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml
===================================================================
--- branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml 2008-05-26 14:54:15 UTC (rev 8319)
+++ branches/jbosstools-2.1.x/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml 2008-05-26 15:05:09 UTC (rev 8320)
@@ -19,7 +19,7 @@
Linux. But, many find these pre-configured tools offer significant time-savings and value, making
them more productive and speeding time to deployment.</para>
<para>This guide covers the first steps to get started working with JBoss Developer Studio. You will learn how to install and
- configure necessary software for your OS (operating system).</para>
+ configure necessary software for your OS (currently Linux, Microsoft Windows or Mac OSX).</para>
<para>Thus this guide will provide you with detailed info on how to start JDK, JBDS and JBoss Tools.</para>
</section>
@@ -191,7 +191,7 @@
</listitem>
<listitem>
<para>Run in console:</para>
- <programlisting role="JAVA"><![CDATA[java -jar jbdevstudio-linux-gtk-1.1.0.CR1.jar
+ <programlisting role="JAVA"><![CDATA[java -jar jbdevstudio-linux-gtk-1.1.0.GA.jar
]]></programlisting>
</listitem>
<listitem>
17 years, 7 months
JBoss Tools SVN: r8319 - in trunk: hibernatetools/docs/reference/en/modules and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: tromanovich
Date: 2008-05-26 10:54:15 -0400 (Mon, 26 May 2008)
New Revision: 8319
Modified:
trunk/as/docs/reference/en/modules/perspective.xml
trunk/as/docs/reference/en/modules/runtimes_servers.xml
trunk/hibernatetools/docs/reference/en/modules/ant.xml
trunk/hibernatetools/docs/reference/en/modules/codegen.xml
trunk/hibernatetools/docs/reference/en/modules/codegenarchitecture.xml
trunk/hibernatetools/docs/reference/en/modules/plugins.xml
trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml
trunk/hibernatetools/docs/reference/en/modules/setup.xml
trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml
trunk/jsf/docs/userguide/en/modules/palette.xml
trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-224 - Special text paragraphs framing
Verified and updated <note>, <important>, and <tip> boxes for all guides (titles were added, some titles were changed).
Modified: trunk/as/docs/reference/en/modules/perspective.xml
===================================================================
--- trunk/as/docs/reference/en/modules/perspective.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/as/docs/reference/en/modules/perspective.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -401,6 +401,7 @@
</figure>
<note>
+ <title>Note:</title>
<para>You are assumed to be familiar with XPath. If not, we highly suggested that
you look through an appropriate manual or tutorial on the topic.</para>
</note>
@@ -495,11 +496,11 @@
</mediaobject>
</figure>
- <note>
+ <tip>
<title>Tip:</title>
<para>Notice, when you type the fields autocomplete to help you locate exactly what
xpath you're looking for.</para>
- </note>
+ </tip>
<para>Then, on the other hand, if your desired field is the text of an element
<emphasis><description></emphasis>, your <emphasis>
Modified: trunk/as/docs/reference/en/modules/runtimes_servers.xml
===================================================================
--- trunk/as/docs/reference/en/modules/runtimes_servers.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/as/docs/reference/en/modules/runtimes_servers.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -75,7 +75,10 @@
means that scanning for auto-deployment is suspended while files are being copied to the
deployment location and resumed when the copy is completed.</para>
- <note><para>Currently we recommend you to use a fully supported JBoss 4.2 server adapter.</para></note>
+ <note>
+ <title>Note:</title>
+ <para>Currently we recommend you to use a fully supported JBoss 4.2 server adapter.</para>
+ </note>
<para>You'll also note a Deploy-Only Runtime type. This type provides no classpath
for WTP projects. It is used solely by its server type for the purpose of setting up a
Modified: trunk/hibernatetools/docs/reference/en/modules/ant.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/ant.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/hibernatetools/docs/reference/en/modules/ant.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -20,6 +20,7 @@
of eclipse.</para>
<note>
+ <title>Note:</title>
<para>There might be incompatibilities with respect to the Hibernate3.jar bundled with the
tools and your own jar. Thus to avoid any confusion it is recommended to use the
hibernate3.jar and hibernate-annotations.jar bundled with the tools when you want to use the
@@ -270,6 +271,7 @@
which a set of exporters can be run to generate various output. </para>
<note>
+ <title>Note:</title>
<para>Output can be anything, e.g. specific files, statements execution against a database,
error reporting or anything else that can be done in java code.</para>
</note>
@@ -413,7 +415,7 @@
</emphasis> and fileset is used instead. </para>
<note>
- <title>Tip:</title>
+ <title>Note:</title>
<para> Hibernate will still read any global <emphasis>
<property>hibernate.properties</property>
</emphasis> available in the classpath, but the specified properties file here will
@@ -443,13 +445,13 @@
</emphasis> is used when you want to read the metamodel from EJB3/Hibernate Annotations
based POJO's.</para>
- <note>
- <title>Tip:</title>
+ <important>
+ <title>Important:</title>
<para>To use it remember to put the jar files needed for using hibernate annotations in the
classpath of the <emphasis>
<property><taskdef></property>, </emphasis> i. e.
hibernate-annotations.jar and hibernate-commons-annotations.jar.</para>
- </note>
+ </important>
<para>The <emphasis>
<property><annotationconfiguration></property>
@@ -533,6 +535,7 @@
<note>
+ <title>Note:</title>
<para>ejb3configuration was the name used in previous versions. It still works but will emit
a warning telling you to use <literal>jpaconfiguration</literal> instead.</para>
</note>
@@ -996,6 +999,7 @@
<property>hbm.xml</property>. </emphasis></para>
<note>
+ <title>Note:</title>
<para>Not every possible mapping transformation is possible/implemented (contributions
welcome) so some hand editing might be necessary.</para>
</note>
@@ -1024,6 +1028,7 @@
</emphasis>.</para>
<note>
+ <title>Note:</title>
<para>Not all conversions are implemented (contributions welcome), so some hand editing
might be necessary.</para>
</note>
@@ -1148,7 +1153,7 @@
<property>queryresult.txt</property>. </emphasis></para>
<note>
- <title>Tip:</title>
+ <title>Note:</title>
<para> Currently the dump is simply a call to toString on each element.</para>
</note>
@@ -1174,6 +1179,7 @@
/>]]></programlisting>
<note>
+ <title>Note:</title>
<para>Previous versions of the tools used Velocity. We are now using Freemarker which
provides us much better exception and error handling.</para>
</note>
@@ -1296,7 +1302,7 @@
<property><property></property>
</emphasis> which will be available to the templates/exporter. </para>
<note>
- <title>Tip:</title>
+ <title>Note:</title>
<para> This example actually simulates what <hbm2java> actually does.</para>
</note>
Modified: trunk/hibernatetools/docs/reference/en/modules/codegen.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/codegen.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/hibernatetools/docs/reference/en/modules/codegen.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -277,6 +277,7 @@
</emphasis> file will implement <literal>IAuditable</literal>!</para>
<note>
+ <title>Note:</title>
<para>This applies to <emphasis>all</emphasis>
<literal><meta></literal>-tags. Thus it can also e.g. be used to specify that
all fields should be declare protected, instead of the default private. This is done by
@@ -530,6 +531,7 @@
</hibernate-mapping>]]></programlisting>
<note>
+ <title>Note:</title>
<para>I) To escape the & symbol we put &amp;. You can use
<![CDATA[]]> instead.</para>
<para>II) Note that we are referring to "firstName" directly and this is the parameter
Modified: trunk/hibernatetools/docs/reference/en/modules/codegenarchitecture.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/codegenarchitecture.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/hibernatetools/docs/reference/en/modules/codegenarchitecture.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -74,6 +74,7 @@
facilities of <property>Hibernate Tools</property>. </para>
<note>
+ <title>Note:</title>
<para>No matter which Hibernate Configuration type you are using <property>Hibernate
Tools</property> supports them.</para>
</note>
Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -17,6 +17,7 @@
can take advantage of while using the tools within Eclipse.</para>
<note>
+ <title>Note:</title>
<para>Please note that these tools do not try to hide any functionality of
<property>Hibernate</property>. The tools make working with <property>Hibernate</property>
easier, but you are still encouraged/required to read the <ulink
@@ -113,6 +114,7 @@
</figure>
<note>
+ <title>Note:</title>
<para>The contents in the combo boxes for the JDBC driver class and JDBC URL change
automatically, depending on the Dialect and actual driver you have chosen.</para>
</note>
@@ -153,6 +155,7 @@
</emphasis>.</para>
<note>
+ <title>Note:</title>
<para>The wizard will look at the current selection in the IDE and try and auto-detect the
settings which you then can just approve or modify to suit your needs.</para>
</note>
@@ -565,12 +568,12 @@
<property>New_Generation</property>
</emphasis> will be used.</para>
- <note>
+ <tip>
<title>Tip:</title>
<para>The "At least one exporter option must be selected" is just a
warning stating that for this launch to work you need to select an exporter on the
Exporter tab. When an exporter has been selected the warning will disappear.</para>
- </note>
+ </tip>
<para>The dialog also have the standard tabs <emphasis>
<property>Refresh</property>
@@ -1046,6 +1049,7 @@
<para>For java completion and navigation to work the file needs to reside inside an Eclipse
Java project, otherwise no completion will occur.</para>
<note>
+ <title>Note:</title>
<para>Java completion does not require a Hibernate console configuration to be used.</para>
</note>
</section>
@@ -1070,6 +1074,7 @@
</figure>
<important>
+ <title>Important:</title>
<para>Table/Column completion requires a proper configured hibernate console configuration
and this configuration should be the default for the project where the <emphasis>
<property>hbm.xml</property>
@@ -1083,6 +1088,7 @@
table/column names in the background.</para>
<note>
+ <title>Note:</title>
<para>Currently it is not recommended to use this feature on large databases since it does
not fetch the information iteratively. It will be improved in future versions.</para>
</note>
@@ -1165,6 +1171,7 @@
default naming rules are not applicable.</para>
<note>
+ <title>Note:</title>
<para> Not all the features of the <emphasis>
<property>.reveng.xml </property>
</emphasis> file are exposed or fully implemented in the editor, but the main functionality
@@ -1520,6 +1527,7 @@
<note>
+ <title>Note:</title>
<para>HQL queries are executed by default using <literal>list()</literal> thus without any
limit of the size of the output the query could return a large result set. You might run
out of memory. To avoid this you can put a value in the Max results field to reduce the
Modified: trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -44,6 +44,7 @@
specialized editor.</para>
<note>
+ <title>Note:</title>
<para>Many databases are case-sensitive with their names and thus if you cannot make some
table match and you are sure it is not excluded by a <table-filter> then check
if the case matches; most databases stores table names in uppercase.</para>
@@ -121,6 +122,7 @@
</emphasis> is still used to then decide which tables will be included/excluded.</para>
<note>
+ <title>Note:</title>
<para>If no <literal><schema-selection></literal> is specified, the reverse
engineering works as if all schemas should be processed. This is equal to:
<![CDATA[<schema-selection/>]]>. Which in turn is equal to:
@@ -694,10 +696,8 @@
</emphasis> has two purposes. One for allowing to define foreign-keys in databases that
does not support them or does not have them defined in their schema. Secondly, to allow
defining the name of the resulting properties (many-to-one and one-to-many's).</para>
-
- <para>Note:</para>
-
- <programlisting role="XML"><![CDATA[<foreign-key
+
+ <para><programlisting role="XML"><![CDATA[<foreign-key
constraint-name="foreignKeyName"
foreign-catalog="catalogName"
foreign-schema="schemaName"
@@ -710,8 +710,7 @@
<set
property="aCollectionName"
exclude="true|false"/>
- </foreign-key>]]></programlisting>
-
+ </foreign-key>]]></programlisting></para>
<table frame="topbot">
<title>Foreign-key attributes</title>
Modified: trunk/hibernatetools/docs/reference/en/modules/setup.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/setup.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/hibernatetools/docs/reference/en/modules/setup.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -42,6 +42,7 @@
-clean</property>.</emphasis> Using the updatesite does not require any additional steps.</para>
<note>
+ <title>Note:</title>
<para>If you need more basic instructions on installing plugins and general usage of eclipse
then check out <ulink url="https://eclipse-tutorial.dev.java.net/"
>https://eclipse-tutorial.dev.java.net/</ulink> and especially <ulink
Modified: trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -20,6 +20,7 @@
either when you create a jBPM project or by using the jBPM preference pages.</para>
<note>
+ <title>Note:</title>
<para>Try to avoid using spaces in the names of installation folders. It can provoke problems in
some situations with Sun-based VMs.</para>
</note>
Modified: trunk/jsf/docs/userguide/en/modules/palette.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/palette.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/jsf/docs/userguide/en/modules/palette.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -427,7 +427,7 @@
</figure>
<tip>
- <title>Tipe:</title>
+ <title>Tip:</title>
<para>if you place the cursor over any tag, a balloon hint is shown with all the
<emphasis role="italic">
<property>"tag"</property>
@@ -570,7 +570,8 @@
<property>RichFaces</property>
</emphasis> component framework. RichFaces and Ajax4jsf in JBoss Tools Palette always
exist, this palette is not dynamic and is not changed from file to file. JBoss Tools
- Palette supports only the last version of the RichFaces components. <tip>
+ Palette supports only the last version of the RichFaces components.
+ <tip>
<title>Tip:</title>
<para>If you'd like to know the last version of RichFaces component
framework see <ulink url="http://labs.jboss.com/jbossrichfaces/">JBoss
Modified: trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -18,6 +18,7 @@
for creating Struts resources that enhances the process of building high-quality web
applications.</para>
<note>
+ <title>Note:</title>
<para>Note that JBoss Tools support the Struts 1.1, 1.2.x versions.</para>
</note>
Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 2008-05-26 14:26:57 UTC (rev 8318)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 2008-05-26 14:54:15 UTC (rev 8319)
@@ -239,7 +239,8 @@
<property>Struts Form</property>
</emphasis> library, select <emphasis>
<property>text</property>
- </emphasis>, and drag it onto the box <note>
+ </emphasis>, and drag it onto the box
+ <note>
<title>Note:</title>
<para>By default there are only four groups on the JBoss Tools
Palette. If you wish to make some group visible click the <emphasis>
17 years, 7 months
JBoss Tools SVN: r8318 - branches/jbosstools-2.1.x/as/docs/reference/en.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-05-26 10:26:57 -0400 (Mon, 26 May 2008)
New Revision: 8318
Modified:
branches/jbosstools-2.1.x/as/docs/reference/en/master.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-324
Merged revisions 8290 via svnmerge from
https://svn.jboss.org/repos/jbosstools/trunk/as/docs
........
r8290 | afedosik | 2008-05-22 18:00:32 +0300 (Thu, 22 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-292 Docs version update according to GA release
........
Modified: branches/jbosstools-2.1.x/as/docs/reference/en/master.xml
===================================================================
--- branches/jbosstools-2.1.x/as/docs/reference/en/master.xml 2008-05-26 11:15:17 UTC (rev 8317)
+++ branches/jbosstools-2.1.x/as/docs/reference/en/master.xml 2008-05-26 14:26:57 UTC (rev 8318)
@@ -40,7 +40,7 @@
<holder>JBoss, a division of Red Hat Inc.</holder>
</copyright>
<releaseinfo>
- Version: 1.1.0.CR1
+ Version: 1.1.0.GA
</releaseinfo>
</bookinfo>
17 years, 7 months
JBoss Tools SVN: r8317 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-05-26 07:15:17 -0400 (Mon, 26 May 2008)
New Revision: 8317
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
Log:
JBIDE-2200:
generate implementation skeleton class for every endpoint
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2008-05-26 10:55:36 UTC (rev 8316)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2008-05-26 11:15:17 UTC (rev 8317)
@@ -3,7 +3,6 @@
import java.io.File;
import java.util.ArrayList;
import java.util.List;
-import java.util.logging.Logger;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IFile;
@@ -23,19 +22,14 @@
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTParser;
-import org.eclipse.jdt.core.dom.Annotation;
-import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
import org.eclipse.jdt.core.dom.ArrayType;
-import org.eclipse.jdt.core.dom.Assignment;
import org.eclipse.jdt.core.dom.Block;
import org.eclipse.jdt.core.dom.BooleanLiteral;
import org.eclipse.jdt.core.dom.CompilationUnit;
-import org.eclipse.jdt.core.dom.FieldAccess;
import org.eclipse.jdt.core.dom.FieldDeclaration;
import org.eclipse.jdt.core.dom.ImportDeclaration;
import org.eclipse.jdt.core.dom.Initializer;
@@ -43,7 +37,6 @@
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.MethodInvocation;
import org.eclipse.jdt.core.dom.Modifier;
-import org.eclipse.jdt.core.dom.Name;
import org.eclipse.jdt.core.dom.NormalAnnotation;
import org.eclipse.jdt.core.dom.NumberLiteral;
import org.eclipse.jdt.core.dom.PackageDeclaration;
@@ -56,16 +49,10 @@
import org.eclipse.jdt.core.dom.StringLiteral;
import org.eclipse.jdt.core.dom.Type;
import org.eclipse.jdt.core.dom.TypeDeclaration;
-import org.eclipse.jdt.core.dom.TypeLiteral;
-import org.eclipse.jdt.core.dom.VariableDeclaration;
import org.eclipse.jdt.core.dom.VariableDeclarationFragment;
import org.eclipse.jdt.core.dom.WildcardType;
-import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
-import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.osgi.util.NLS;
import org.eclipse.text.edits.MalformedTreeException;
import org.eclipse.text.edits.TextEdit;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
@@ -74,8 +61,6 @@
import org.jboss.tools.ws.creation.core.utils.JBossStatusUtils;
import org.jboss.tools.ws.creation.core.utils.JBossWSCreationUtils;
-import com.sun.org.apache.xpath.internal.Expression;
-
public class ImplementationClassCreationCommand extends
AbstractDataModelOperation {
@@ -114,7 +99,8 @@
List<String> portTypes = model.getPortTypes();
for (String portTypeName : portTypes) {
generateImplClass(portTypeName);
- String implClsName = getImplPackageName() + "." + getImplClassName(portTypeName);
+ String implClsName = getImplPackageName() + "."
+ + getImplClassName(portTypeName);
model.addServiceClasses(implClsName);
}
@@ -381,10 +367,8 @@
md.setName(ast
.newSimpleName(inMethod.getName().getFullyQualifiedName()));
- SimpleType sType = (SimpleType) inMethod.getReturnType2();
- Name sTypeName = sType.getName();
- md.setReturnType2(ast.newSimpleType(ast.newName(sTypeName
- .getFullyQualifiedName())));
+ Type sType = copyTypeFromOtherASTNode(ast, inMethod.getReturnType2());
+ md.setReturnType2(sType);
List parameters = inMethod.parameters();
@@ -402,9 +386,8 @@
Block block = ast.newBlock();
Type returnType = inMethod.getReturnType2();
ReturnStatement rs = ast.newReturnStatement();
- String typeName = ((SimpleType) returnType).getName()
- .getFullyQualifiedName();
- if (returnType.isPrimitiveType() && returnType.isSimpleType()) {
+
+ if (returnType.isPrimitiveType()) {
if (((PrimitiveType) returnType).getPrimitiveTypeCode().equals(
PrimitiveType.BOOLEAN)) {
BooleanLiteral bl = ast.newBooleanLiteral(false);
@@ -415,14 +398,21 @@
rs.setExpression(nl);
}
- } else if ("String".equals(typeName)) {
- StringLiteral sl = ast.newStringLiteral();
- sl.setLiteralValue("");
- rs.setExpression(sl);
+ } else if (returnType.isSimpleType()) {
+ String typeName = ((SimpleType) returnType).getName()
+ .getFullyQualifiedName();
+ if ("String".equals(typeName)) {
- } else if(!"void".equals(typeName)){
+ StringLiteral sl = ast.newStringLiteral();
+ sl.setLiteralValue("");
+ rs.setExpression(sl);
+ } else if(!"void".equals(typeName)){
+ rs.setExpression(ast.newNullLiteral());
+ }
+ } else {
rs.setExpression(ast.newNullLiteral());
}
+
block.statements().add(rs);
md.setBody(block);
@@ -430,7 +420,6 @@
return md;
}
-
private Type copyTypeFromOtherASTNode(AST ast, Type type) {
if (type instanceof PrimitiveType) {
return ast.newPrimitiveType(((PrimitiveType) type)
17 years, 7 months
JBoss Tools SVN: r8316 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-05-26 06:55:36 -0400 (Mon, 26 May 2008)
New Revision: 8316
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
Log:
JBIDE-2200:
generate implmentation skeleton class for every port type interface: refactor code
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2008-05-26 06:37:48 UTC (rev 8315)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2008-05-26 10:55:36 UTC (rev 8316)
@@ -3,6 +3,7 @@
import java.io.File;
import java.util.ArrayList;
import java.util.List;
+import java.util.logging.Logger;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IFile;
@@ -30,6 +31,7 @@
import org.eclipse.jdt.core.dom.Annotation;
import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
import org.eclipse.jdt.core.dom.ArrayType;
+import org.eclipse.jdt.core.dom.Assignment;
import org.eclipse.jdt.core.dom.Block;
import org.eclipse.jdt.core.dom.BooleanLiteral;
import org.eclipse.jdt.core.dom.CompilationUnit;
@@ -54,6 +56,8 @@
import org.eclipse.jdt.core.dom.StringLiteral;
import org.eclipse.jdt.core.dom.Type;
import org.eclipse.jdt.core.dom.TypeDeclaration;
+import org.eclipse.jdt.core.dom.TypeLiteral;
+import org.eclipse.jdt.core.dom.VariableDeclaration;
import org.eclipse.jdt.core.dom.VariableDeclarationFragment;
import org.eclipse.jdt.core.dom.WildcardType;
import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
@@ -70,6 +74,8 @@
import org.jboss.tools.ws.creation.core.utils.JBossStatusUtils;
import org.jboss.tools.ws.creation.core.utils.JBossWSCreationUtils;
+import com.sun.org.apache.xpath.internal.Expression;
+
public class ImplementationClassCreationCommand extends
AbstractDataModelOperation {
@@ -80,10 +86,16 @@
private static final String SUFFIX_PACKAGENAME_IMPL = "impl";
private static final String DEFAULT_CU_SUFFIX = ".java";
+ private static final String ANNOTATION_WEB_SERVICE_FULLNAME = "javax.jws.WebService";
private static final String ANNOTATION_TYPE_NAME_WEBSERVICE = "WebService";;
private static final String ANNOTATION_PROPERTY_NAME = "name";
private static final String ANNOTATION_PROPERTY_SERVICE_NAME = "serviceName";
private static final String ANNOTATION_PROPERTY_ENDPOINT_INTERFACE = "endpointInterface";
+
+ private static final String LOGGER_VARIABLE_NAME = "log";
+ private static final String LOGGER_CLASS_FULLNAME = "org.jboss.logging.Logger";
+ private static final String LOGGER_CLASS_NAME = "Logger";
+ private static final String LOGGER_METHOD_GETLOGGER = "getLogger";
private ServiceModel model;
private IWorkspaceRoot fWorkspaceRoot;
@@ -99,10 +111,6 @@
throws ExecutionException {
IStatus status = Status.OK_STATUS;
try {
- /*
- * so far, it only generate implementation for first port type, need
- * to generate impl class for all port type interfaces
- */
List<String> portTypes = model.getPortTypes();
for (String portTypeName : portTypes) {
generateImplClass(portTypeName);
@@ -199,6 +207,7 @@
}
implCu.types().add(type);
+
// try to save the Java file
TextEdit edits = implCu.rewrite(document, icu.getJavaProject()
@@ -281,13 +290,13 @@
importDec.setName(portTypeImport);
implCU.imports().add(importDec);
importDec = implAST.newImportDeclaration();
- importDec.setName(implAST.newName("org.jboss.logging.Logger"));
+ importDec.setName(implAST.newName(LOGGER_CLASS_FULLNAME));
implCU.imports().add(importDec);
// import jaxws WebService
importDec = implAST.newImportDeclaration();
// hardcode here?
- importDec.setName(implAST.newName("javax.jws.WebService"));
+ importDec.setName(implAST.newName(ANNOTATION_WEB_SERVICE_FULLNAME));
implCU.imports().add(importDec);
}
@@ -322,28 +331,24 @@
return member;
}
- protected FieldDeclaration createLoggerField(AST ast, TypeDeclaration type) {
- // for now, have no idea how to generate a field like:
- // private static Logger log = Logger.getLooger(TestEdnpointImpl.class);
- // TODO
- // ast.newWildcardType().setBound(type.);
+ protected FieldDeclaration createLoggerField(AST ast, TypeDeclaration type, String portTypeName) {
VariableDeclarationFragment vdf = ast.newVariableDeclarationFragment();
- vdf.setName(ast.newSimpleName("log"));
+ vdf.setName(ast.newSimpleName(LOGGER_VARIABLE_NAME));
Initializer clsAccesss = ast.newInitializer();
- Block clsAccessBlk = ast.newBlock();
- FieldAccess fa = ast.newFieldAccess();
- fa.setExpression(ast.newSimpleName("Test"));
- fa.setName(ast.newSimpleName("class"));
- clsAccessBlk.statements().add(ast.newExpressionStatement(fa));
- clsAccesss.setBody(clsAccessBlk);
+ FieldDeclaration fd = ast.newFieldDeclaration(vdf);
+ fd.modifiers().add(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
+ fd.modifiers().add(Modifier.ModifierKeyword.STATIC_KEYWORD);
+ fd.setType(ast.newSimpleType(ast.newSimpleName(LOGGER_CLASS_NAME)));
MethodInvocation mi = ast.newMethodInvocation();
- mi.setExpression(ast.newSimpleName("Logger"));
- mi.setName(ast.newSimpleName("getLogger"));
- mi.arguments().add(fa);
+ mi.setExpression(ast.newSimpleName(LOGGER_CLASS_NAME));
+ mi.setName(ast.newSimpleName(LOGGER_METHOD_GETLOGGER));
+ String implClsName = getImplPackageName() + "." + getImplClassName(portTypeName);
+ StringLiteral sl = ast.newStringLiteral();
+ sl.setLiteralValue(implClsName);
+ mi.arguments().add(sl);
vdf.setInitializer(mi);
+ type.bodyDeclarations().add(fd);
- type.bodyDeclarations().add(vdf);
-
/*
* SingleVariableDeclaration svd = ast.newSingleVariableDeclaration();
* svd.modifiers().add(ast.newModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD));
@@ -382,7 +387,7 @@
.getFullyQualifiedName())));
List parameters = inMethod.parameters();
- ;
+
for (Object obj : parameters) {
SingleVariableDeclaration implSvd = ast
.newSingleVariableDeclaration();
@@ -415,7 +420,7 @@
sl.setLiteralValue("");
rs.setExpression(sl);
- } else {
+ } else if(!"void".equals(typeName)){
rs.setExpression(ast.newNullLiteral());
}
block.statements().add(rs);
17 years, 7 months
JBoss Tools SVN: r8315 - trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-05-26 02:37:48 -0400 (Mon, 26 May 2008)
New Revision: 8315
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java
Log:
JBIDE-2047: modify for a little bug of NLS messages
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java 2008-05-26 06:35:55 UTC (rev 8314)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java 2008-05-26 06:37:48 UTC (rev 8315)
@@ -18,7 +18,7 @@
*/
public class JbossWSCoreMessages {
- private static final String BUNDLE_NAME = "org.jboss.tools.ws.core.JbossWSCore"; //$NON-NLS-1$
+ private static final String BUNDLE_NAME = "org.jboss.tools.ws.core.messages.JbossWSCore"; //$NON-NLS-1$
private JbossWSCoreMessages() {
// Do not instantiate
17 years, 7 months
JBoss Tools SVN: r8314 - trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-05-26 02:35:55 -0400 (Mon, 26 May 2008)
New Revision: 8314
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JbossWSUIMessages.java
Log:
JBIDE-2047: modify for a little bug
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JbossWSUIMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JbossWSUIMessages.java 2008-05-25 21:22:13 UTC (rev 8313)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JbossWSUIMessages.java 2008-05-26 06:35:55 UTC (rev 8314)
@@ -19,7 +19,7 @@
public final class JbossWSUIMessages extends NLS {
private static final String BUNDLE_NAME =
- "org.jboss.tools.ws.ui.JbossWSUI"; //$NON-NLS-1$
+ "org.jboss.tools.ws.ui.messages.JbossWSUI"; //$NON-NLS-1$
private JbossWSUIMessages() {
// Do not instantiate
17 years, 7 months
JBoss Tools SVN: r8313 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/model/ui/texteditors/xmleditor and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-05-25 17:22:13 -0400 (Sun, 25 May 2008)
New Revision: 8313
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/.classpath
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java
Log:
JBIDE-2257 Invalid preference page path: XML Occurrences and JSP Occurrences
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/.classpath
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/.classpath 2008-05-25 21:22:02 UTC (rev 8312)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/.classpath 2008-05-25 21:22:13 UTC (rev 8313)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="resources"/>
<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>
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java 2008-05-25 21:22:02 UTC (rev 8312)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java 2008-05-25 21:22:13 UTC (rev 8313)
@@ -100,7 +100,7 @@
public XMLTextEditor(final boolean useRHDSConfig) {
this.useRHDSConfig = useRHDSConfig;
- XmlEditorPlugin.getDefault().initDefaultPluginPreferences();
+ //XmlEditorPlugin.getDefault().initDefaultPluginPreferences();
/// dnd.setTextEditorDropProvider(new TextEditorDropProviderImpl());
if (useRHDSConfig) {
17 years, 7 months
JBoss Tools SVN: r8312 - in trunk/common/plugins/org.jboss.tools.common.text.xml: src/org/jboss/tools/common/text/xml and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-05-25 17:22:02 -0400 (Sun, 25 May 2008)
New Revision: 8312
Modified:
trunk/common/plugins/org.jboss.tools.common.text.xml/plugin.xml
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/XmlEditorPlugin.java
Log:
JBIDE-2257 Invalid preference page path: XML Occurrences and JSP Occurrences
Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/plugin.xml 2008-05-23 18:23:51 UTC (rev 8311)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/plugin.xml 2008-05-25 21:22:02 UTC (rev 8312)
@@ -112,7 +112,7 @@
<!-- Additional XML PREFERENCE PAGES -->
<page
name="%XML_Occurrences.name"
- category="org.eclipse.wst.sse.ui.preferences.xml"
+ category="org.eclipse.wst.xml.ui.preferences.xml.xml"
class="org.jboss.tools.jst.jsp.preferences.xpl.XMLOccurrencesPreferencePage"
id="org.eclipse.wst.sse.ui.preferences.xml.occurrences">
</page>
Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/XmlEditorPlugin.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/XmlEditorPlugin.java 2008-05-23 18:23:51 UTC (rev 8311)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/XmlEditorPlugin.java 2008-05-25 21:22:02 UTC (rev 8312)
@@ -54,6 +54,7 @@
} catch (MissingResourceException x) {
resourceBundle = null;
}
+ initDefaultPluginPreferences();
}
/**
17 years, 7 months