JBoss Tools SVN: r25012 - trunk/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-09-19 20:59:09 -0400 (Sun, 19 Sep 2010)
New Revision: 25012
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
Log:
corrected extra underline in id :S
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2010-09-20 00:58:31 UTC (rev 25011)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2010-09-20 00:59:09 UTC (rev 25012)
@@ -904,7 +904,7 @@
<para>
To view the sourcecode of the usage plug-in visit <ulink url="http://anonsvn.jboss.org/repos/jbosstools/trunk/usage/">http://anonsvn.jboss.org/repos/jbosstools/trunk/usage/</ulink>.
</para>
- <section id="Collected__usage_information_guide">
+ <section id="Collected_usage_information_guide">
<title>Collected usage information guide</title>
<para>
Outlined is the information type being reported and the Goolge Analytics fieds implemented to gather this information.
15 years, 7 months
JBoss Tools SVN: r25011 - trunk/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-09-19 20:58:31 -0400 (Sun, 19 Sep 2010)
New Revision: 25011
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
Log:
updated with title correction for collected usage information guide
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2010-09-20 00:57:03 UTC (rev 25010)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2010-09-20 00:58:31 UTC (rev 25011)
@@ -899,13 +899,13 @@
The gathered data allows JBoss to see how the tools are being used and where they are being used geographically. Currently we are looking into the operating systems being used, screen resolution and how often the tooling environment is started. In the future geographic information will assist in focussing translation resources to areas where the developer environment is most used.
</para>
<para>
- The plug-in uses Google Analytics to track and report data by acting as if you were visiting the site http://jboss.org/tools/usage/. To view the type of information being collected, refer to <xref linkend="Collected_information_guide"/>.
+ The plug-in uses Google Analytics to track and report data by acting as if you were visiting the site http://jboss.org/tools/usage/. To view the type of information being collected, refer to <xref linkend="Collected_usage_information_guide"/>.
</para>
<para>
To view the sourcecode of the usage plug-in visit <ulink url="http://anonsvn.jboss.org/repos/jbosstools/trunk/usage/">http://anonsvn.jboss.org/repos/jbosstools/trunk/usage/</ulink>.
</para>
- <section id="Collected_information_guide">
- <title>Collected information guide</title>
+ <section id="Collected__usage_information_guide">
+ <title>Collected usage information guide</title>
<para>
Outlined is the information type being reported and the Goolge Analytics fieds implemented to gather this information.
</para>
15 years, 7 months
JBoss Tools SVN: r25010 - in trunk/documentation/guides/GettingStartedGuide/en-US: images/getting_started and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-09-19 20:57:03 -0400 (Sun, 19 Sep 2010)
New Revision: 25010
Removed:
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/usage_plug-in_2.png
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
Log:
updated useage plug-in information
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2010-09-18 18:55:12 UTC (rev 25009)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2010-09-20 00:57:03 UTC (rev 25010)
@@ -899,19 +899,99 @@
The gathered data allows JBoss to see how the tools are being used and where they are being used geographically. Currently we are looking into the operating systems being used, screen resolution and how often the tooling environment is started. In the future geographic information will assist in focussing translation resources to areas where the developer environment is most used.
</para>
<para>
- The plug-in uses Google Analytics to track and report data by acting as if you were visiting the site http://jboss.org/tools/usage/. To provide a guide to the type of information being collected refer to <xref linkend="Collected_information_guide"/>.
+ The plug-in uses Google Analytics to track and report data by acting as if you were visiting the site http://jboss.org/tools/usage/. To view the type of information being collected, refer to <xref linkend="Collected_information_guide"/>.
</para>
- <figure id="Collected_information_guide">
- <title>Collected information guide</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/getting_started/usage_plug-in_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
<para>
To view the sourcecode of the usage plug-in visit <ulink url="http://anonsvn.jboss.org/repos/jbosstools/trunk/usage/">http://anonsvn.jboss.org/repos/jbosstools/trunk/usage/</ulink>.
</para>
+ <section id="Collected_information_guide">
+ <title>Collected information guide</title>
+ <para>
+ Outlined is the information type being reported and the Goolge Analytics fieds implemented to gather this information.
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>Installed components</term>
+ <listitem>
+ <para>
+ The <guilabel>Keyword</guilabel> field has been modified to report the installed JBoss Tools components. Sample returned values include: JBoss AS, Drools, Teiid and ModeShape.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Visitor Type</term>
+ <listitem>
+ <para>
+ The <guilabel>Visitor Type</guilabel> field reports if the current user is new or returning.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Language</term>
+ <listitem>
+ <para>
+ The <guilabel>Language</guilabel> field reports the localized language the product is being used in. Sample returned values include: en-US, de-DE and fr-FR.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Locations</term>
+ <listitem>
+ <para>
+ The <guilabel>Locations</guilabel> field reports the geographical location where the product is being used. Sample returned values include: Munich, Wroclaw and Moscow.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Eclipse interface and version</term>
+ <listitem>
+ <para>
+ The <guilabel>Browser</guilabel> field has been modified to report the Eclipse interface and version being used. Sample returned values include: JBoss Developer Studio: 3.0.0 and JBoss Developer Studio: 3.0.1.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Operating System</term>
+ <listitem>
+ <para>
+ The <guilabel>Operating System</guilabel> field reports the Operating System the product is running on. Sample returned values include: Linux, Macintosh and Windows.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Screen colors</term>
+ <listitem>
+ <para>
+ The <guilabel>Screen colors</guilabel> field reports the color depth being used. Sample returned values include: 32-bit and 24-bit.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Screen resolution</term>
+ <listitem>
+ <para>
+ The <guilabel>Screen resolution</guilabel> field reports the resolution being used. Sample returned values include: 2048x1536 and 1920x1080.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Java version</term>
+ <listitem>
+ <para>
+ The <guilabel>Flash version</guilabel> field has been modified to report the Java version used. Sample returned values include: 1.6.0_20 and 1.5.0_9.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Connection speed</term>
+ <listitem>
+ <para>
+ The <guilabel>Connection speed</guilabel> field reports the type of internet connection being used. Sample returned values include: T1, Cable and DSL.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
</section>
<section id="Support">
Deleted: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/usage_plug-in_2.png
===================================================================
(Binary files differ)
15 years, 7 months
JBoss Tools SVN: r25009 - workspace/examples and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-09-18 14:55:12 -0400 (Sat, 18 Sep 2010)
New Revision: 25009
Added:
workspace/examples/project-examples-community-3.1.xml
Removed:
workspace/examples/project-examples-3.1.xml
Modified:
trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml
Log:
JBIDE-7095 org.jboss.tools.community.project.examples plug-in registers url in SVN - should point to http://download.jboss.org/jbosstools/examples
Modified: trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml
===================================================================
--- trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml 2010-09-18 18:48:12 UTC (rev 25008)
+++ trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml 2010-09-18 18:55:12 UTC (rev 25009)
@@ -5,7 +5,7 @@
<extension
point="org.jboss.tools.project.examples.projectExamplesXml"
name="%JBoss_Tools_Community_Examples">
- <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/examples/project-exam... </url>
+ <url>http://download.jboss.org/jbosstools/examples/project-examples-community-...</url>
<experimental>false</experimental>
</extension>
<extension
Deleted: workspace/examples/project-examples-3.1.xml
===================================================================
--- workspace/examples/project-examples-3.1.xml 2010-09-18 18:48:12 UTC (rev 25008)
+++ workspace/examples/project-examples-3.1.xml 2010-09-18 18:55:12 UTC (rev 25009)
@@ -1,842 +0,0 @@
-<projects>
- <project>
- <category>Seam</category>
- <name>registration</name>
- <included-projects>
- registration,registration-ejb,registration-ear,registration-test
- </included-projects>
- <shortDescription>Seam Registration Example - EAR (including a test project)</shortDescription>
- <description>This is a trivial example for the Seam tutorial. It requires JBoss EAP 4.3/JBoss AS 4.2.x, Seam 2.0 and TestNG plugin.
-It includes the registration,registration-ejb,registration-ear,registration-test projects.
-</description>
- <size>31657984</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">registration,registration-ejb,registration-ear</property>
- <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">registration</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
-
- <fix type="plugin">
- <property name="id">org.testng.eclipse</property>
- <property name="versions">5.8.0, 5.9.0</property>
- <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>registration2</name>
- <included-projects>
- registration,registration-ejb,registration-ear
- </included-projects>
- <shortDescription>Seam Registration Example - EAR</shortDescription>
- <description>This is a trivial example for the Seam tutorial. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
-The example creates the registration,registration-ejb,registration-ear projects.
-It includes a tutorial.
-</description>
- <size>8450048</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <welcome type="cheatsheets" url="/registration/cheatsheets/registration.xml"/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">registration,registration-ejb,registration-ear</property>
- <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">registration</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>messages</name>
- <included-projects>
- messages,messages-ejb,messages-ear
- </included-projects>
- <shortDescription>Seam Messages Example - EAR</shortDescription>
- <description>This is a simple example of the use of @DataModel for the Seam tutorial. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
-The example creates the messages,messages-ejb and messages-ear projects.
-It includes a tutorial.
-</description>
- <size>7680000</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <welcome type="cheatsheets" url="/messages/cheatsheets/messages.xml"/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">messages,messages-ejb,messages-ear</property>
- <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">messages</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>todo</name>
- <included-projects>
- todo,todo-ejb,todo-ear
- </included-projects>
- <shortDescription>Seam and jBPM: the todo list example - EAR</shortDescription>
- <description>This is a simple example for the Seam tutorial, demonstrating the
-use of jBPM-based business process management. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
-The example creates the todo,todo-ejb and todo-ear projects.
-It includes a tutorial.
-</description>
- <size>2183168</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <welcome type="cheatsheets" url="/todo/cheatsheets/todo.xml"/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">todo,todo-ejb,todo-ear</property>
- <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">todo</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>numberguess</name>
- <included-projects>
- numberguess,numberguess-ejb,numberguess-ear
- </included-projects>
- <shortDescription>Seam pageflow: the numberguess example - EAR</shortDescription>
- <description>This is a simple example for the Seam tutorial, demonstrating the use of
-jBPM-based page flow. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
-The example creates the numberguess,numberguess-ejb and numberguess-ear projects.
-It includes a tutorial.
-</description>
- <size>2203648</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <welcome type="cheatsheets" url="/numberguess/cheatsheets/numberguess.xml"/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">numberguess,numberguess-ejb,numberguess-ear</property>
- <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">numberguess</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>booking3</name>
- <included-projects>
- booking,booking-ear,booking-ejb,booking-test
- </included-projects>
- <shortDescription>Seam Booking Example - EAR (including a tutorial)</shortDescription>
- <description>This example demonstrates the use of Seam in a Java EE 5 environment.
-Transaction and persistence context management is handled by the EJB container.
-The example requires JBoss EAP 4.3/JBoss AS 4.2.x, Seam 2.0 and TestNG plugin.
-It includes the booking, booking-ear,booking-test and booking-ejb projects.
-</description>
- <size>36036608</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <welcome type="cheatsheets" url="/booking/cheatsheets/booking.xml"/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">booking,booking-ear,booking-ejb</property>
- <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">booking</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.testng.eclipse</property>
- <property name="versions">5.8.0, 5.9.0</property>
- <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>booking22</name>
- <included-projects>
- booking22,booking22-ear,booking22-ejb,booking22-test
- </included-projects>
- <shortDescription>Seam 2.2 Booking Example - EAR (including a tutorial)</shortDescription>
- <description>This example demonstrates the use of Seam in a Java EE 5 environment.
-Transaction and persistence context management is handled by the EJB container.
-This example has been tested on JBoss EAP 5.0.
-It includes the booking22, booking22-ear,booking22-test and booking22-ejb projects.
-</description>
- <size>38203392</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <welcome type="cheatsheets" url="/booking22/cheatsheets/booking.xml"/>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">booking22,booking22-ejb,booking22-ear</property>
- <property name="description">This project example requires the JBoss EAP 5.0</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.2.0</property>
- <property name="eclipse-projects">booking22</property>
- <property name="description">This project example requires Seam version 2.2.0</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.testng.eclipse</property>
- <property name="versions">5.8.0, 5.9.0</property>
- <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>photoalbum-mavenized</name>
- <included-projects>
- photoalbum-mavenized,photoalbum-mavenized-ear,photoalbum-mavenized-ejb,photoalbum-mavenized-parent
- </included-projects>
- <shortDescription>PhotoAlbum - EAR mavenized (RichFaces 3.3.1.GA, Seam 2.2.0.GA)</shortDescription>
- <description>This example demonstrates the use of RichFaces components. It includes the photoalbum-mavenized,photoalbum-mavenized-ear,photoalbum-mavenized-ejb and photoalbum-mavenized-parent projects.
-The example requires Seam 2.2,JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x and m2eclipse.
- </description>
- <size>16441344</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50, org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.51, org.jboss.ide.eclipse.as.runtime.50, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">photoalbum-mavenized,photoalbum-mavenized-ear,photoalbum-mavenized-ejb</property>
- <property name="description">This project example requires the JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.2.0</property>
- <property name="eclipse-projects">photoalbum-mavenized</property>
- <property name="description">This project example requires Seam version 2.2.0</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">0.9.9, 0.10.0</property>
- <property name="description">This project example requires m2eclipse. You can install it using the following update sites: http://m2eclipse.sonatype.org/sites/m2e and http://m2eclipse.sonatype.org/sites/m2e-extras</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
- <name>photoalbum</name>
- <included-projects>
- photoalbum,photoalbum-ear,photoalbum-ejb
- </included-projects>
- <shortDescription>PhotoAlbum - EAR (RichFaces 3.3.1.GA, Seam 2.2.0.GA)</shortDescription>
- <description>This example demonstrates the use of RichFaces components. It includes the photoalbum,photoalbum-ear and photoalbum-ejb projects.
-The example requires Seam 2.2 and JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x.
- </description>
- <size>25833472</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50, org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.51, org.jboss.ide.eclipse.as.runtime.50, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">photoalbum,photoalbum-ear,photoalbum-ejb</property>
- <property name="description">This project example requires JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.2.0</property>
- <property name="eclipse-projects">photoalbum</property>
- <property name="description">This project example requires Seam version 2.2.0</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Seam</category>
-
- <name>dvdstore22</name>
- <included-projects>
- dvdstore22,dvdstore22-ear,dvdstore22-ejb,dvdstore22-test
- </included-projects>
- <shortDescription>Seam 2.2 DVD Store Example - EAR (including a test project)</shortDescription>
- <description>This example demonstrates the use of Seam with jBPM pageflow and business process management. It includes the dvdstore22,dvdstore22-ear,dvdstore22-test and dvdstore22-ejb projects.
- </description>
- <size>35225600</size>
-
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">dvdstore22,dvdstore22-ejb,dvdstore22-ear</property>
- <property name="description">This project example requires the JBoss EAP 5.0</property>
- </fix>
-
- <fix type="seam">
- <property name="allowed-versions">2.2.0</property>
- <property name="eclipse-projects">dvdstore22</property>
- <property name="description">This project example requires Seam version 2.2.0</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.testng.eclipse</property>
- <property name="versions">5.8.0, 5.9.0</property>
- <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>RESTEasy</category>
- <name>simple</name>
- <included-projects>
- simple
- </included-projects>
-
- <shortDescription>RESTEasy Simple Example</shortDescription>
- <description>This project is a simple example showing usage of @Path, @GET, PUT, POST, and @PathParam. It uses pure streaming output and includes the 'simple' project.
-Requires m2eclipse and JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x.
- </description>
- <size>16939</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/resteasy-examp...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50, org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.51, org.jboss.ide.eclipse.as.runtime.50, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">photoalbum,photoalbum-ear,photoalbum-ejb</property>
- <property name="description">This project example requires JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x</property>
- </fix>
- <fix type="plugin">
- <property name="id">org.maven.ide.eclipse.wtp</property>
- <property name="versions">0.10.0</property>
- <property name="description">This project example requires m2eclipse. You can install it using the following update sites: http://m2eclipse.sonatype.org/sites/m2e and http://m2eclipse.sonatype.org/sites/m2e-extras</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>Portlet</category>
- <name>testjsfportlet</name>
- <shortDescription>JBoss JSF Portlet Example</shortDescription>
-
- <description>This example demonstrates the use of JBoss JSF Portlet. It runs on JBoss EPP 4.3 or JBoss Portal 2.7.x.</description>
- <size>4000000</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/portlet-exampl...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">testjsfportlet</property>
- <property name="description">This project example requires the JBoss EPP 4.3 or JBoss Portal 2.7.x</property>
- </fix>
-
- </fixes>
- </project>
-
- <project>
- <category>Portlet</category>
-
- <name>testseamportlet</name>
- <shortDescription>JBoss Seam Portlet Example</shortDescription>
- <description>This example demonstrates the use of JBoss Seam Portlet. It runs on JBoss EPP 4.3/JBoss Portal 2.7.x and Seam 2.0.</description>
- <size>10000000</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/portlet-exampl...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
- <property name="eclipse-projects">testseamportlet</property>
- <property name="description">This project example requires the JBoss EPP 4.3 or JBoss Portal 2.7.x</property>
- </fix>
- <fix type="seam">
- <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
- <property name="eclipse-projects">testseamportlet</property>
- <property name="description">This project example requires Seam version 2.0</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>helloworld</name>
- <included-projects> helloworld,helloworld_testclient </included-projects>
- <shortDescription>JBoss ESB HelloWorld Example - ESB</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This example is to prove that the ESB is is properly configured and happy.
-As well as to demonstrate the needed minimal files to make a basic ESB component execute.</description>
- <size>1101025</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">helloworld</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>helloworld_action</name>
- <included-projects>helloworld_action,helloworld_action_client </included-projects>
- <shortDescription>JBoss ESB HelloWorld Action Example - ESB</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This sample is to demonstrate the use of multiple action invocations from a single configuration. You can use
- a single Action class and make multiple method calls or use multiple Action
- classes.</description>
- <size>26261</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">helloworld_action</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>helloworld_file_action</name>
- <included-projects>helloworld_file_action,helloworld_file_action_client</included-projects>
- <shortDescription>JBoss ESB HelloWorld File Action Example - ESB</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This is a basic example of using the File gateway feature of the JBoss ESB.
- Files that are found in a particular directory with a particular extension
- are sent to a JMS queue with actions for processing. Before deploy the project, please change some properties according to the readme.txt file.</description>
- <size>16505</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">helloworld_file_action</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>webservice_consumer1</name>
- <included-projects>webservice_consumer1,webservice_consumer1_client</included-projects>
- <shortDescription>JBoss ESB Web Service consumer1 Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This example demonstrates how to consume a 181 Web Service in an ESB action.
- This ESB will make a webservice request that requires a single "toWhom" string parameter.
- The webservice will return a greeting response. The ESB simply dislays the response on the
- console.</description>
- <size>1120499</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">webservice_consumer1</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>webservice_producer</name>
- <included-projects>webservice_producer,webservice_producer_client</included-projects>
- <shortDescription>JBoss ESB Web Service producer Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This sample demonstrates how to deploy a JSR181 Webservice endpoint on
- JBossESB using the SOAPProcessor action.</description>
- <size>55269</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">webservice_producer</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>transform_CSV2XML</name>
- <included-projects>transform_CSV2XML,transform_CSV2XML_client</included-projects>
- <shortDescription>JBoss ESB Smooks CSV->XML Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This sample demonstrates how to transform a comma separated value (CSV) file to an xml.
- The tranformation is done by configuring Smooks and performing two transformation, one
- transformation from CSV to an intermediate xml format, and a second transformation from
- the intermediate xml format to the target xml.</description>
- <size>19434</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">transform_CSV2XML</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>transform_XML2POJO</name>
- <included-projects>transform_XML2POJO,transform_XML2POJO_client</included-projects>
- <shortDescription>JBoss ESB Smooks XML->POJO Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- The purpose of the simple_transformation sample is to illustrate the
-use of Smooks performing a simple transformation by converting a XML file into
-Java POJOs.</description>
- <size>40936</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">transform_XML2POJO</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>transform_XML2XML_date_manipulation</name>
- <included-projects>transform_XML2XML_date_manipulation,transform_XML2XML_date_manipulation_client</included-projects>
- <shortDescription>JBoss ESB Smooks XML->XML date-manipulation Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This is another simple sample of how to manually define and apply a Message
- Transformation within JBoss ESB.
-
- This sample is an extension of the "transformation_XML2XML_simple"
- Quickstart, demonstrating how JBoss ESB Transformations can simplify your
- XSLT transformations by combining the power of XSLT with Java. In this
- Quickstart, we use Java to perform the ugly string manipulation on the
- SampleOrder date field (see OrderDate.java) and use XSLT for what it's good at
- i.e. Templating. Again, the transformed SampleOrder.xml message is just
- printed to the Java console (message before and after).</description>
- <size>22071</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">transform_XML2XML_date_manipulation</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 5.0</category>
- <name>transform_XML2XML_simple</name>
- <included-projects>transform_XML2XML_simple,transform_XML2XML_simple_client</included-projects>
- <shortDescription>JBoss ESB Smooks XML->XML Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
- This is a very basic sample of how to manually define and apply a Message
- Transformation within JBoss ESB. It applies a very simple XSLT to a
- SampleOrder.xml message and prints the before and after XML to the console.</description>
- <size>19224</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
- <property name="eclipse-projects">transform_XML2XML_simple</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>helloworld</name>
- <included-projects> helloworld,helloworld_testclient </included-projects>
- <shortDescription>JBoss ESB HelloWorld Example - ESB</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This example is to prove that the ESB is is properly configured and happy.
-As well as to demonstrate the needed minimal files to make a basic ESB component execute.</description>
- <size>1087454</size>
-
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/hel...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">helloworld</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>helloworld_action</name>
- <included-projects>helloworld_action,helloworld_action_client </included-projects>
- <shortDescription>JBoss ESB HelloWorld Action Example - ESB</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This example is to demonstrate the use of multiple action invocations from a single configuration. You can use a single Action class and make multiple method calls or use multiple Action
- classes.</description>
- <size>24456</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/hel...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">helloworld_action</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
-
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>helloworld_file_action</name>
- <included-projects>helloworld_file_action,helloworld_file_action_client </included-projects>
- <shortDescription>JBoss ESB HelloWorld File Action Example - ESB</shortDescription>
-
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This is a basic example of using the File gateway feature of the JBoss ESB.
- Files that are found in a particular directory with a particular extension
- are sent to a JMS queue with actions for processing. Before deploy the project, please change some properties according to the readme.txt file.</description>
- <size>15140</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/hel...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">helloworld_file_action</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>webservice_consumer1</name>
- <included-projects>webservice_consumer1,webservice_consumer1_client </included-projects>
- <shortDescription>JBoss ESB Web Service consumer1 Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This example demonstrates how to consume a 181 Web Service in an ESB action.
- This ESB will make a webservice request that requires a single "toWhom" string parameter.
- The webservice will return a greeting response. The ESB simply displays the response on the console.
- </description>
- <size>1094434</size>
-
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/web...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">webservice_consumer1</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>webservice_producer</name>
- <included-projects>webservice_producer,webservice_producer_client </included-projects>
- <shortDescription>JBoss ESB Web Service producer Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This sample demonstrates how to deploy a JSR181 Webservice endpoint on
- JBossESB using the SOAPProcessor action.</description>
- <size>52601</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/web...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">webservice_producer</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
-
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>transform_CSV2XML</name>
- <included-projects>transform_CSV2XML,transform_CSV2XML_client </included-projects>
- <shortDescription>JBoss ESB Smooks CSV->XML Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This sample demonstrates how to transform a comma separated value (CSV) file to an xml.
- The tranformation is done by configuring Smooks and performing two transformation, one transformation from CSV to an intermediate xml format, and a second transformation from the intermediate xml format to the target xml.</description>
- <size>18354</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">transform_CSV2XML</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>transform_XML2POJO</name>
- <included-projects>transform_XML2POJO,transform_XML2POJO_client </included-projects>
- <shortDescription>JBoss ESB Smooks XML->POJO Example</shortDescription>
-
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- The purpose of the simple_transformation sample is to illustrate the
-use of Smooks performing a simple transformation by converting a XML file into
-Java POJOs.</description>
- <size>33104</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">transform_XML2POJO</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>transform_XML2XML_date_manipulation</name>
- <included-projects>transform_XML2XML_date_manipulation,transform_XML2XML_date_manipulation_client </included-projects>
- <shortDescription>JBoss ESB Smooks XML->XML date-manipulation Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This is another simple sample of how to manually define and apply a Message
- Transformation within JBoss ESB.
-
- This sample is an extension of the "transformation_XML2XML_simple"
- Quickstart, demonstrating how JBoss ESB Transformations can simplify your
- XSLT transformations by combining the power of XSLT with Java. In this
- Quickstart, we use Java to perform the ugly string manipulation on the
- SampleOrder date field (see OrderDate.java) and use XSLT for what it's good at
- i.e. Templating. Again, the transformed SampleOrder.xml message is just
- printed to the Java console (message before and after).</description>
-
- <size>20313</size>
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">transform_XML2XML_date_manipulation</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-
- <project>
- <category>ESB for SOA-P 4.3</category>
- <name>transform_XML2XML_simple</name>
- <included-projects>transform_XML2XML_simple,transform_XML2XML_simple_client </included-projects>
- <shortDescription>JBoss ESB Smooks XML->XML Example</shortDescription>
- <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
- This is a very basic sample of how to manually define and apply a Message
- Transformation within JBoss ESB. It applies a very simple XSLT to a
- SampleOrder.xml message and prints the before and after XML to the console.</description>
- <size>18168</size>
-
- <url>
- http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
- </url>
- <fixes>
- <fix type="wtpruntime">
- <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
- <property name="eclipse-projects">transform_XML2XML_simple</property>
- <property name="required-components">esb</property>
- <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
- </fix>
- </fixes>
- </project>
-</projects>
Copied: workspace/examples/project-examples-community-3.1.xml (from rev 24884, workspace/examples/project-examples-3.1.xml)
===================================================================
--- workspace/examples/project-examples-community-3.1.xml (rev 0)
+++ workspace/examples/project-examples-community-3.1.xml 2010-09-18 18:55:12 UTC (rev 25009)
@@ -0,0 +1,842 @@
+<projects>
+ <project>
+ <category>Seam</category>
+ <name>registration</name>
+ <included-projects>
+ registration,registration-ejb,registration-ear,registration-test
+ </included-projects>
+ <shortDescription>Seam Registration Example - EAR (including a test project)</shortDescription>
+ <description>This is a trivial example for the Seam tutorial. It requires JBoss EAP 4.3/JBoss AS 4.2.x, Seam 2.0 and TestNG plugin.
+It includes the registration,registration-ejb,registration-ear,registration-test projects.
+</description>
+ <size>31657984</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">registration,registration-ejb,registration-ear</property>
+ <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">registration</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+
+ <fix type="plugin">
+ <property name="id">org.testng.eclipse</property>
+ <property name="versions">5.8.0, 5.9.0</property>
+ <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>registration2</name>
+ <included-projects>
+ registration,registration-ejb,registration-ear
+ </included-projects>
+ <shortDescription>Seam Registration Example - EAR</shortDescription>
+ <description>This is a trivial example for the Seam tutorial. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
+The example creates the registration,registration-ejb,registration-ear projects.
+It includes a tutorial.
+</description>
+ <size>8450048</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <welcome type="cheatsheets" url="/registration/cheatsheets/registration.xml"/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">registration,registration-ejb,registration-ear</property>
+ <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">registration</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>messages</name>
+ <included-projects>
+ messages,messages-ejb,messages-ear
+ </included-projects>
+ <shortDescription>Seam Messages Example - EAR</shortDescription>
+ <description>This is a simple example of the use of @DataModel for the Seam tutorial. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
+The example creates the messages,messages-ejb and messages-ear projects.
+It includes a tutorial.
+</description>
+ <size>7680000</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <welcome type="cheatsheets" url="/messages/cheatsheets/messages.xml"/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">messages,messages-ejb,messages-ear</property>
+ <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">messages</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>todo</name>
+ <included-projects>
+ todo,todo-ejb,todo-ear
+ </included-projects>
+ <shortDescription>Seam and jBPM: the todo list example - EAR</shortDescription>
+ <description>This is a simple example for the Seam tutorial, demonstrating the
+use of jBPM-based business process management. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
+The example creates the todo,todo-ejb and todo-ear projects.
+It includes a tutorial.
+</description>
+ <size>2183168</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <welcome type="cheatsheets" url="/todo/cheatsheets/todo.xml"/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">todo,todo-ejb,todo-ear</property>
+ <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">todo</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>numberguess</name>
+ <included-projects>
+ numberguess,numberguess-ejb,numberguess-ear
+ </included-projects>
+ <shortDescription>Seam pageflow: the numberguess example - EAR</shortDescription>
+ <description>This is a simple example for the Seam tutorial, demonstrating the use of
+jBPM-based page flow. It requires JBoss EAP 4.3/JBoss AS 4.2.x and Seam 2.0.
+The example creates the numberguess,numberguess-ejb and numberguess-ear projects.
+It includes a tutorial.
+</description>
+ <size>2203648</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <welcome type="cheatsheets" url="/numberguess/cheatsheets/numberguess.xml"/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">numberguess,numberguess-ejb,numberguess-ear</property>
+ <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">numberguess</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>booking3</name>
+ <included-projects>
+ booking,booking-ear,booking-ejb,booking-test
+ </included-projects>
+ <shortDescription>Seam Booking Example - EAR (including a tutorial)</shortDescription>
+ <description>This example demonstrates the use of Seam in a Java EE 5 environment.
+Transaction and persistence context management is handled by the EJB container.
+The example requires JBoss EAP 4.3/JBoss AS 4.2.x, Seam 2.0 and TestNG plugin.
+It includes the booking, booking-ear,booking-test and booking-ejb projects.
+</description>
+ <size>36036608</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <welcome type="cheatsheets" url="/booking/cheatsheets/booking.xml"/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">booking,booking-ear,booking-ejb</property>
+ <property name="description">This project example requires the JBoss EAP 4.3 or JBoss AS 4.2.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">booking</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.testng.eclipse</property>
+ <property name="versions">5.8.0, 5.9.0</property>
+ <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>booking22</name>
+ <included-projects>
+ booking22,booking22-ear,booking22-ejb,booking22-test
+ </included-projects>
+ <shortDescription>Seam 2.2 Booking Example - EAR (including a tutorial)</shortDescription>
+ <description>This example demonstrates the use of Seam in a Java EE 5 environment.
+Transaction and persistence context management is handled by the EJB container.
+This example has been tested on JBoss EAP 5.0.
+It includes the booking22, booking22-ear,booking22-test and booking22-ejb projects.
+</description>
+ <size>38203392</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <welcome type="cheatsheets" url="/booking22/cheatsheets/booking.xml"/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">booking22,booking22-ejb,booking22-ear</property>
+ <property name="description">This project example requires the JBoss EAP 5.0</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.2.0</property>
+ <property name="eclipse-projects">booking22</property>
+ <property name="description">This project example requires Seam version 2.2.0</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.testng.eclipse</property>
+ <property name="versions">5.8.0, 5.9.0</property>
+ <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>photoalbum-mavenized</name>
+ <included-projects>
+ photoalbum-mavenized,photoalbum-mavenized-ear,photoalbum-mavenized-ejb,photoalbum-mavenized-parent
+ </included-projects>
+ <shortDescription>PhotoAlbum - EAR mavenized (RichFaces 3.3.1.GA, Seam 2.2.0.GA)</shortDescription>
+ <description>This example demonstrates the use of RichFaces components. It includes the photoalbum-mavenized,photoalbum-mavenized-ear,photoalbum-mavenized-ejb and photoalbum-mavenized-parent projects.
+The example requires Seam 2.2,JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x and m2eclipse.
+ </description>
+ <size>16441344</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50, org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.51, org.jboss.ide.eclipse.as.runtime.50, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">photoalbum-mavenized,photoalbum-mavenized-ear,photoalbum-mavenized-ejb</property>
+ <property name="description">This project example requires the JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.2.0</property>
+ <property name="eclipse-projects">photoalbum-mavenized</property>
+ <property name="description">This project example requires Seam version 2.2.0</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">0.9.9, 0.10.0</property>
+ <property name="description">This project example requires m2eclipse. You can install it using the following update sites: http://m2eclipse.sonatype.org/sites/m2e and http://m2eclipse.sonatype.org/sites/m2e-extras</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+ <name>photoalbum</name>
+ <included-projects>
+ photoalbum,photoalbum-ear,photoalbum-ejb
+ </included-projects>
+ <shortDescription>PhotoAlbum - EAR (RichFaces 3.3.1.GA, Seam 2.2.0.GA)</shortDescription>
+ <description>This example demonstrates the use of RichFaces components. It includes the photoalbum,photoalbum-ear and photoalbum-ejb projects.
+The example requires Seam 2.2 and JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x.
+ </description>
+ <size>25833472</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50, org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.51, org.jboss.ide.eclipse.as.runtime.50, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">photoalbum,photoalbum-ear,photoalbum-ejb</property>
+ <property name="description">This project example requires JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.2.0</property>
+ <property name="eclipse-projects">photoalbum</property>
+ <property name="description">This project example requires Seam version 2.2.0</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Seam</category>
+
+ <name>dvdstore22</name>
+ <included-projects>
+ dvdstore22,dvdstore22-ear,dvdstore22-ejb,dvdstore22-test
+ </included-projects>
+ <shortDescription>Seam 2.2 DVD Store Example - EAR (including a test project)</shortDescription>
+ <description>This example demonstrates the use of Seam with jBPM pageflow and business process management. It includes the dvdstore22,dvdstore22-ear,dvdstore22-test and dvdstore22-ejb projects.
+ </description>
+ <size>35225600</size>
+
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/seam-examples/...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">dvdstore22,dvdstore22-ejb,dvdstore22-ear</property>
+ <property name="description">This project example requires the JBoss EAP 5.0</property>
+ </fix>
+
+ <fix type="seam">
+ <property name="allowed-versions">2.2.0</property>
+ <property name="eclipse-projects">dvdstore22</property>
+ <property name="description">This project example requires Seam version 2.2.0</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.testng.eclipse</property>
+ <property name="versions">5.8.0, 5.9.0</property>
+ <property name="description">The TestNG plugin is required if you want to run Seam tests. You can install it using the following update site: http://beust.com/eclipse</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>RESTEasy</category>
+ <name>simple</name>
+ <included-projects>
+ simple
+ </included-projects>
+
+ <shortDescription>RESTEasy Simple Example</shortDescription>
+ <description>This project is a simple example showing usage of @Path, @GET, PUT, POST, and @PathParam. It uses pure streaming output and includes the 'simple' project.
+Requires m2eclipse and JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x.
+ </description>
+ <size>16939</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/resteasy-examp...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50, org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.51, org.jboss.ide.eclipse.as.runtime.50, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">photoalbum,photoalbum-ear,photoalbum-ejb</property>
+ <property name="description">This project example requires JBoss EAP 4.3/JBoss EAP 5.0/JBoss AS 4.2.x/JBoss AS 5.x</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">0.10.0</property>
+ <property name="description">This project example requires m2eclipse. You can install it using the following update sites: http://m2eclipse.sonatype.org/sites/m2e and http://m2eclipse.sonatype.org/sites/m2e-extras</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>Portlet</category>
+ <name>testjsfportlet</name>
+ <shortDescription>JBoss JSF Portlet Example</shortDescription>
+
+ <description>This example demonstrates the use of JBoss JSF Portlet. It runs on JBoss EPP 4.3 or JBoss Portal 2.7.x.</description>
+ <size>4000000</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/portlet-exampl...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">testjsfportlet</property>
+ <property name="description">This project example requires the JBoss EPP 4.3 or JBoss Portal 2.7.x</property>
+ </fix>
+
+ </fixes>
+ </project>
+
+ <project>
+ <category>Portlet</category>
+
+ <name>testseamportlet</name>
+ <shortDescription>JBoss Seam Portlet Example</shortDescription>
+ <description>This example demonstrates the use of JBoss Seam Portlet. It runs on JBoss EPP 4.3/JBoss Portal 2.7.x and Seam 2.0.</description>
+ <size>10000000</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/portlet-exampl...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43, org.jboss.ide.eclipse.as.runtime.42</property>
+ <property name="eclipse-projects">testseamportlet</property>
+ <property name="description">This project example requires the JBoss EPP 4.3 or JBoss Portal 2.7.x</property>
+ </fix>
+ <fix type="seam">
+ <property name="allowed-versions">2.0.0, 2.0.1, 2.0.2</property>
+ <property name="eclipse-projects">testseamportlet</property>
+ <property name="description">This project example requires Seam version 2.0</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>helloworld</name>
+ <included-projects> helloworld,helloworld_testclient </included-projects>
+ <shortDescription>JBoss ESB HelloWorld Example - ESB</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This example is to prove that the ESB is is properly configured and happy.
+As well as to demonstrate the needed minimal files to make a basic ESB component execute.</description>
+ <size>1101025</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">helloworld</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>helloworld_action</name>
+ <included-projects>helloworld_action,helloworld_action_client </included-projects>
+ <shortDescription>JBoss ESB HelloWorld Action Example - ESB</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This sample is to demonstrate the use of multiple action invocations from a single configuration. You can use
+ a single Action class and make multiple method calls or use multiple Action
+ classes.</description>
+ <size>26261</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">helloworld_action</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>helloworld_file_action</name>
+ <included-projects>helloworld_file_action,helloworld_file_action_client</included-projects>
+ <shortDescription>JBoss ESB HelloWorld File Action Example - ESB</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This is a basic example of using the File gateway feature of the JBoss ESB.
+ Files that are found in a particular directory with a particular extension
+ are sent to a JMS queue with actions for processing. Before deploy the project, please change some properties according to the readme.txt file.</description>
+ <size>16505</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">helloworld_file_action</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>webservice_consumer1</name>
+ <included-projects>webservice_consumer1,webservice_consumer1_client</included-projects>
+ <shortDescription>JBoss ESB Web Service consumer1 Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This example demonstrates how to consume a 181 Web Service in an ESB action.
+ This ESB will make a webservice request that requires a single "toWhom" string parameter.
+ The webservice will return a greeting response. The ESB simply dislays the response on the
+ console.</description>
+ <size>1120499</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">webservice_consumer1</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>webservice_producer</name>
+ <included-projects>webservice_producer,webservice_producer_client</included-projects>
+ <shortDescription>JBoss ESB Web Service producer Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This sample demonstrates how to deploy a JSR181 Webservice endpoint on
+ JBossESB using the SOAPProcessor action.</description>
+ <size>55269</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">webservice_producer</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>transform_CSV2XML</name>
+ <included-projects>transform_CSV2XML,transform_CSV2XML_client</included-projects>
+ <shortDescription>JBoss ESB Smooks CSV->XML Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This sample demonstrates how to transform a comma separated value (CSV) file to an xml.
+ The tranformation is done by configuring Smooks and performing two transformation, one
+ transformation from CSV to an intermediate xml format, and a second transformation from
+ the intermediate xml format to the target xml.</description>
+ <size>19434</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">transform_CSV2XML</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>transform_XML2POJO</name>
+ <included-projects>transform_XML2POJO,transform_XML2POJO_client</included-projects>
+ <shortDescription>JBoss ESB Smooks XML->POJO Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ The purpose of the simple_transformation sample is to illustrate the
+use of Smooks performing a simple transformation by converting a XML file into
+Java POJOs.</description>
+ <size>40936</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">transform_XML2POJO</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>transform_XML2XML_date_manipulation</name>
+ <included-projects>transform_XML2XML_date_manipulation,transform_XML2XML_date_manipulation_client</included-projects>
+ <shortDescription>JBoss ESB Smooks XML->XML date-manipulation Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This is another simple sample of how to manually define and apply a Message
+ Transformation within JBoss ESB.
+
+ This sample is an extension of the "transformation_XML2XML_simple"
+ Quickstart, demonstrating how JBoss ESB Transformations can simplify your
+ XSLT transformations by combining the power of XSLT with Java. In this
+ Quickstart, we use Java to perform the ugly string manipulation on the
+ SampleOrder date field (see OrderDate.java) and use XSLT for what it's good at
+ i.e. Templating. Again, the transformed SampleOrder.xml message is just
+ printed to the Java console (message before and after).</description>
+ <size>22071</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">transform_XML2XML_date_manipulation</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 5.0</category>
+ <name>transform_XML2XML_simple</name>
+ <included-projects>transform_XML2XML_simple,transform_XML2XML_simple_client</included-projects>
+ <shortDescription>JBoss ESB Smooks XML->XML Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.5.0 Runtime" in the workspace.
+ This is a very basic sample of how to manually define and apply a Message
+ Transformation within JBoss ESB. It applies a very simple XSLT to a
+ SampleOrder.xml message and prints the before and after XML to the console.</description>
+ <size>19224</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example-soa...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.50</property>
+ <property name="eclipse-projects">transform_XML2XML_simple</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 5.0 and the runtime name should be "jboss-soa-p.5.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>helloworld</name>
+ <included-projects> helloworld,helloworld_testclient </included-projects>
+ <shortDescription>JBoss ESB HelloWorld Example - ESB</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This example is to prove that the ESB is is properly configured and happy.
+As well as to demonstrate the needed minimal files to make a basic ESB component execute.</description>
+ <size>1087454</size>
+
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/hel...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">helloworld</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>helloworld_action</name>
+ <included-projects>helloworld_action,helloworld_action_client </included-projects>
+ <shortDescription>JBoss ESB HelloWorld Action Example - ESB</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This example is to demonstrate the use of multiple action invocations from a single configuration. You can use a single Action class and make multiple method calls or use multiple Action
+ classes.</description>
+ <size>24456</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/hel...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">helloworld_action</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>helloworld_file_action</name>
+ <included-projects>helloworld_file_action,helloworld_file_action_client </included-projects>
+ <shortDescription>JBoss ESB HelloWorld File Action Example - ESB</shortDescription>
+
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This is a basic example of using the File gateway feature of the JBoss ESB.
+ Files that are found in a particular directory with a particular extension
+ are sent to a JMS queue with actions for processing. Before deploy the project, please change some properties according to the readme.txt file.</description>
+ <size>15140</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/hel...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">helloworld_file_action</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>webservice_consumer1</name>
+ <included-projects>webservice_consumer1,webservice_consumer1_client </included-projects>
+ <shortDescription>JBoss ESB Web Service consumer1 Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This example demonstrates how to consume a 181 Web Service in an ESB action.
+ This ESB will make a webservice request that requires a single "toWhom" string parameter.
+ The webservice will return a greeting response. The ESB simply displays the response on the console.
+ </description>
+ <size>1094434</size>
+
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/web...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">webservice_consumer1</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>webservice_producer</name>
+ <included-projects>webservice_producer,webservice_producer_client </included-projects>
+ <shortDescription>JBoss ESB Web Service producer Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This sample demonstrates how to deploy a JSR181 Webservice endpoint on
+ JBossESB using the SOAPProcessor action.</description>
+ <size>52601</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/web...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">webservice_producer</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>transform_CSV2XML</name>
+ <included-projects>transform_CSV2XML,transform_CSV2XML_client </included-projects>
+ <shortDescription>JBoss ESB Smooks CSV->XML Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This sample demonstrates how to transform a comma separated value (CSV) file to an xml.
+ The tranformation is done by configuring Smooks and performing two transformation, one transformation from CSV to an intermediate xml format, and a second transformation from the intermediate xml format to the target xml.</description>
+ <size>18354</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">transform_CSV2XML</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>transform_XML2POJO</name>
+ <included-projects>transform_XML2POJO,transform_XML2POJO_client </included-projects>
+ <shortDescription>JBoss ESB Smooks XML->POJO Example</shortDescription>
+
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ The purpose of the simple_transformation sample is to illustrate the
+use of Smooks performing a simple transformation by converting a XML file into
+Java POJOs.</description>
+ <size>33104</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">transform_XML2POJO</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>transform_XML2XML_date_manipulation</name>
+ <included-projects>transform_XML2XML_date_manipulation,transform_XML2XML_date_manipulation_client </included-projects>
+ <shortDescription>JBoss ESB Smooks XML->XML date-manipulation Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This is another simple sample of how to manually define and apply a Message
+ Transformation within JBoss ESB.
+
+ This sample is an extension of the "transformation_XML2XML_simple"
+ Quickstart, demonstrating how JBoss ESB Transformations can simplify your
+ XSLT transformations by combining the power of XSLT with Java. In this
+ Quickstart, we use Java to perform the ugly string manipulation on the
+ SampleOrder date field (see OrderDate.java) and use XSLT for what it's good at
+ i.e. Templating. Again, the transformed SampleOrder.xml message is just
+ printed to the Java console (message before and after).</description>
+
+ <size>20313</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">transform_XML2XML_date_manipulation</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+
+ <project>
+ <category>ESB for SOA-P 4.3</category>
+ <name>transform_XML2XML_simple</name>
+ <included-projects>transform_XML2XML_simple,transform_XML2XML_simple_client </included-projects>
+ <shortDescription>JBoss ESB Smooks XML->XML Example</shortDescription>
+ <description>NOTE: Before import this example, please make sure that there is a runtime named "jboss-soa-p.4.3.0 Runtime" in the workspace.
+ This is a very basic sample of how to manually define and apply a Message
+ Transformation within JBoss ESB. It applies a very simple XSLT to a
+ SampleOrder.xml message and prints the before and after XML to the console.</description>
+ <size>18168</size>
+
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/Denny/esb-example/tra...
+ </url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.eap.43</property>
+ <property name="eclipse-projects">transform_XML2XML_simple</property>
+ <property name="required-components">esb</property>
+ <property name="description">This project example requires the JBoss SOA-P 4.3.0 and the runtime name should be "jboss-soa-p.4.3.0 Runtime"</property>
+ </fix>
+ </fixes>
+ </project>
+</projects>
15 years, 7 months
JBoss Tools SVN: r25008 - in trunk/examples/plugins: org.jboss.tools.project.examples and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-09-18 14:48:12 -0400 (Sat, 18 Sep 2010)
New Revision: 25008
Modified:
trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.properties
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml
Log:
JBIDE-7096 Register new URL for the 3.2 project examples file in JBT & JBDS
Modified: trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.properties
===================================================================
--- trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.properties 2010-09-18 07:01:29 UTC (rev 25007)
+++ trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.properties 2010-09-18 18:48:12 UTC (rev 25008)
@@ -1,4 +1,4 @@
BundleVendor = JBoss by Red Hat
BundleName = JBoss Tools Community Project Examples
-JBoss_Tools_Community_Examples = JBoss Tools Community Examples
+JBoss_Tools_Community_Examples = JBoss Tools 3.1 Community Examples
JBoss_Tools_Community_BPEL_Examples=JBoss Tools Community BPEL Examples
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2010-09-18 07:01:29 UTC (rev 25007)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2010-09-18 18:48:12 UTC (rev 25008)
@@ -5,4 +5,5 @@
Project_Examples_wizard = Project Examples
Project_Examples_command =Project Examples...
ProjectExamples=Project Examples file
-Project_Examples = Project Examples
\ No newline at end of file
+Project_Examples = Project Examples
+JBoss_Tools_31_Community_Examples = JBoss Tools 3.1 Community Examples
\ No newline at end of file
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2010-09-18 07:01:29 UTC (rev 25007)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2010-09-18 18:48:12 UTC (rev 25008)
@@ -68,4 +68,10 @@
<initializer class="org.jboss.tools.project.examples.preferences.ProjectExamplesPreferencesInitializer"/>
</extension>
+ <extension
+ point="org.jboss.tools.project.examples.projectExamplesXml"
+ name="%JBoss_Tools_31_Community_Examples">
+ <url>http://download.jboss.org/jbosstools/examples/project-examples-3.2.xml</url>
+ <experimental>false</experimental>
+ </extension>
</plugin>
15 years, 7 months
JBoss Tools SVN: r25007 - in trunk/smooks/plugins: org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: tfennelly
Date: 2010-09-18 03:01:29 -0400 (Sat, 18 Sep 2010)
New Revision: 25007
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.runtime/.classpath
trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/Mapping.java
trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/TemplateBuilder.java
trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/freemarker/FreeMarkerTemplateBuilder.java
trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/util/FreeMarkerUtil.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/model/AbstractSmooksGraphicalModel.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/model/TreeNodeModel.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ConnectionModelFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksGraphicalEditorPart.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/editparts/SmooksGraphUtil.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/InputDataContianerModel.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/freemarker/FreemarkerTemplateGraphicalModel.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/template/SmooksFreemarkerTemplateGraphicalEditor.java
Log:
https://jira.jboss.org/browse/JBIDE-7046
Load DOM NodeModel template
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.runtime/.classpath
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.runtime/.classpath 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.runtime/.classpath 2010-09-18 07:01:29 UTC (rev 25007)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="libs/xstream-1.2.2.jar"/>
- <classpathentry exported="true" kind="lib" path="libs/freemarker-2.3.11.jar"/>
+ <classpathentry exported="true" kind="lib" path="libs/freemarker-2.3.11.jar" sourcepath="/Users/tfennelly/.m2/repository/org/freemarker/freemarker/2.3.11/freemarker-2.3.11-sources.jar"/>
<classpathentry exported="true" kind="lib" path="libs/opencsv-1.8.jar"/>
<classpathentry exported="true" kind="lib" path="libs/jackson-core-lgpl-1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="libs/milyn-commons-1.2.1.jar"/>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/Mapping.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/Mapping.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/Mapping.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -73,4 +73,16 @@
hideNodes.add(node);
}
+ public boolean isParentNodeMapping(Mapping mapping) {
+ Node parentNode = mapping.getMappingNode().getParentNode();
+
+ while(parentNode != null) {
+ if(parentNode == getMappingNode()) {
+ return true;
+ }
+ parentNode = parentNode.getParentNode();
+ }
+
+ return false;
+ }
}
\ No newline at end of file
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/TemplateBuilder.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/TemplateBuilder.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/TemplateBuilder.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -434,6 +434,57 @@
}
}
+ /**
+ * Resolves the full model source path for the specified mapping.
+ * <p/>
+ * Takes enclosing {@link CollectionMappings} into account.
+ * @param mapping The mapping.
+ * @return The fully resolved path.
+ */
+ public String resolveMappingSrcPath(Mapping mapping) {
+ String[] srcPathTokens = mapping.getSrcPath().split("\\.");
+
+ if(srcPathTokens.length > 1) {
+ CollectionMapping parentCollection = findParentCollection(srcPathTokens[0], mapping);
+ if(parentCollection != null) {
+ StringBuilder pathBuilder = new StringBuilder();
+
+ pathBuilder.append(resolveMappingSrcPath(parentCollection));
+ for(int i = 1; i < srcPathTokens.length; i++) {
+ pathBuilder.append('.');
+ pathBuilder.append(srcPathTokens[i]);
+ }
+
+ return pathBuilder.toString();
+ }
+ }
+
+ // No parent collection, so just pass back the path...
+ return mapping.getSrcPath();
+ }
+
+ public CollectionMapping findParentCollection(String collectionName, Mapping mapping) {
+ CollectionMapping parentCollection = findCollection(collectionName);
+
+ if(parentCollection != null) {
+ if(parentCollection.isParentNodeMapping(mapping)) {
+ return parentCollection;
+ }
+ }
+
+ return null;
+ }
+
+ public CollectionMapping findCollection(String collectionName) {
+ for(Mapping mapping : mappings) {
+ if(mapping instanceof CollectionMapping && ((CollectionMapping) mapping).getCollectionItemName().equals(collectionName)) {
+ return (CollectionMapping) mapping;
+ }
+ }
+
+ return null;
+ }
+
public static void writeListStart(StringWriter writer, String srcPath, String collectionItemName) {
writer.write("<smk:list smk:srcPath='" + srcPath + "' smk:collectionItemName=\"" + collectionItemName + "\" xmlns:smk=\"" + ModelBuilder.NAMESPACE + "\">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/freemarker/FreeMarkerTemplateBuilder.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/freemarker/FreeMarkerTemplateBuilder.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/freemarker/FreeMarkerTemplateBuilder.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -12,7 +12,13 @@
import org.jboss.tools.smooks.templating.model.ModelBuilder;
import org.jboss.tools.smooks.templating.model.ModelBuilderException;
+import org.jboss.tools.smooks.templating.template.CollectionMapping;
import org.jboss.tools.smooks.templating.template.TemplateBuilder;
+import org.jboss.tools.smooks.templating.template.ValueMapping;
+import org.jboss.tools.smooks.templating.template.exception.InvalidMappingException;
+import org.jboss.tools.smooks.templating.template.util.FreeMarkerUtil;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
/**
* Abstract FreeMarker template builder.
@@ -33,4 +39,16 @@
public void setNodeModelSource(boolean nodeModelSource) {
this.nodeModelSource = nodeModelSource;
}
+
+ @Override
+ public ValueMapping addValueMapping(String srcPath, Node modelPath) throws InvalidMappingException {
+ return super.addValueMapping(FreeMarkerUtil.normalizePath(srcPath), modelPath);
+ }
+
+ @Override
+ public CollectionMapping addCollectionMapping(String srcCollectionPath, Element modelCollectionPath, String collectionItemName) throws InvalidMappingException {
+ return super.addCollectionMapping(FreeMarkerUtil.normalizePath(srcCollectionPath), modelCollectionPath, collectionItemName);
+ }
+
+
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/util/FreeMarkerUtil.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/util/FreeMarkerUtil.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.templating/src/org/jboss/tools/smooks/templating/template/util/FreeMarkerUtil.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -20,6 +20,8 @@
package org.jboss.tools.smooks.templating.template.util;
import java.util.Properties;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import org.jboss.tools.smooks.templating.template.ValueMapping;
import org.jboss.tools.smooks.templating.template.exception.TemplateBuilderException;
@@ -138,4 +140,14 @@
return srcPath;
}
}
+
+ private static Pattern varsPattern = Pattern.compile(".vars\\[\"(.*)\"\\]\\[\"(.*)\"\\]");
+ public static String normalizePath(String srcPath) {
+ Matcher matcher = varsPattern.matcher(srcPath);
+ if(matcher.matches()) {
+ return matcher.group(1) + "." + matcher.group(2).replace('/', '.');
+ } else {
+ return srcPath;
+ }
+ }
}
\ No newline at end of file
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/model/AbstractSmooksGraphicalModel.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/model/AbstractSmooksGraphicalModel.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/model/AbstractSmooksGraphicalModel.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -18,6 +18,7 @@
import java.util.List;
import org.eclipse.swt.graphics.Image;
+import org.jboss.tools.smooks.configuration.editors.xml.TagList;
import org.jboss.tools.smooks.configuration.editors.xml.TagObject;
import org.jboss.tools.smooks.configuration.editors.xml.TagPropertyObject;
import org.jboss.tools.smooks.gef.common.RootModel;
@@ -410,4 +411,97 @@
}
return messages;
}
+
+ public TreeNodeModel getModelNode(String srcPath) {
+ String[] pathTokens = srcPath.split("\\.");
+
+ if(pathTokens.length > 0) {
+ return getModeNode(pathTokens, 0);
+ }
+
+ return null;
+ }
+
+ public TreeNodeModel getModelNode(Node queryNode) {
+ List<AbstractSmooksGraphicalModel> thisNodeChildren = getChildren();
+
+ if(thisNodeChildren != null) {
+ for(AbstractSmooksGraphicalModel childNode : thisNodeChildren) {
+ if(!(childNode instanceof TreeNodeModel)) {
+ continue;
+ }
+
+ Object childData = childNode.getData();
+
+ if(queryNode.getNodeType() == Node.ELEMENT_NODE) {
+ if(childData instanceof TagObject && ((TagObject)childData).getReferenceElement() == queryNode) {
+ return (TreeNodeModel) childNode;
+ }
+ } else if(queryNode.getNodeType() == Node.ATTRIBUTE_NODE) {
+ if(childData instanceof TagPropertyObject && ((TagPropertyObject)childData).getReferenceAttibute() == queryNode) {
+ return (TreeNodeModel) childNode;
+ }
+ }
+
+ if(childData instanceof TagObject || childData instanceof TagList) {
+ TreeNodeModel matchedNode = childNode.getModelNode(queryNode);
+ if(matchedNode != null) {
+ return matchedNode;
+ }
+ }
+ }
+ }
+
+ return null;
+ }
+
+ public TreeNodeModel getModeNode(String[] pathTokens, int checkNodeIndex) {
+ String nodeName = pathTokens[checkNodeIndex];
+ boolean isAttribute = (nodeName.charAt(0) == '@');
+
+ if(isAttribute) {
+ nodeName = nodeName.substring(1);
+ }
+
+ List<AbstractSmooksGraphicalModel> thisNodeChildren = getChildren();
+ if(thisNodeChildren != null) {
+ for(AbstractSmooksGraphicalModel childNode : thisNodeChildren) {
+ if(!(childNode instanceof TreeNodeModel)) {
+ continue;
+ }
+
+ Object childData = childNode.getData();
+ boolean isMatch = false;
+
+ if(isAttribute) {
+ if(childData instanceof TagPropertyObject) {
+ TagPropertyObject tagProp = (TagPropertyObject) childData;
+ if(tagProp.getName().equals(nodeName)) {
+ isMatch = true;
+ }
+ }
+ } else {
+ if(childData instanceof TagObject) {
+ TagObject tagObj = (TagObject) childData;
+ if(tagObj.getName().equals(nodeName)) {
+ isMatch = true;
+ }
+
+ }
+ }
+
+ if(isMatch) {
+ if(checkNodeIndex == pathTokens.length - 1) {
+ // This is the node... return it...
+ return (TreeNodeModel) childNode;
+ } else {
+ // Drill into this child node and continue searching...
+ return childNode.getModeNode(pathTokens, checkNodeIndex + 1);
+ }
+ }
+ }
+ }
+
+ return null;
+ }
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/model/TreeNodeModel.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/model/TreeNodeModel.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/model/TreeNodeModel.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -9,13 +9,10 @@
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.swt.graphics.Image;
-import org.jboss.tools.smooks.configuration.editors.IXMLStructuredObject;
-import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.configuration.editors.xml.TagObject;
import org.jboss.tools.smooks.configuration.editors.xml.TagPropertyObject;
import org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel;
import org.jboss.tools.smooks.templating.template.CollectionMapping;
-import org.w3c.dom.Node;
public class TreeNodeModel extends AbstractSmooksGraphicalModel {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ConnectionModelFactoryImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ConnectionModelFactoryImpl.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ConnectionModelFactoryImpl.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -95,8 +95,7 @@
if (data != null) {
String beanid = data.toString();
Collection<EObject> beanIdRefModelList = SmooksUIUtils.getBeanIdRefModelList(rootModel);
- for (Iterator<?> iterator = beanIdRefModelList.iterator(); iterator.hasNext();) {
- EObject eObject = (EObject) iterator.next();
+ for (EObject eObject : beanIdRefModelList) {
EStructuralFeature idRefFeature = SmooksUIUtils.getBeanIDRefFeature(eObject);
if (idRefFeature == null)
continue;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksGraphicalEditorPart.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksGraphicalEditorPart.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksGraphicalEditorPart.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -791,8 +791,7 @@
createInputDataGraphModel();
SmooksResourceListType listType = ((DocumentRoot) obj).getSmooksResourceList();
List<?> arcList = listType.getAbstractResourceConfig();
- for (Iterator<?> iterator = arcList.iterator(); iterator.hasNext();) {
- Object object = (Object) iterator.next();
+ for (Object object : arcList) {
AbstractSmooksGraphicalModel gmodel = createGraphModel(object);
if (gmodel != null) {
root.addTreeNode(gmodel);
@@ -868,35 +867,22 @@
public Collection<TreeNodeConnection> createConnection(AbstractSmooksGraphicalModel model) {
ConnectionModelFactory connectionModelFactory = getConnectionModelFactory();
List<TreeNodeConnection> cs = new ArrayList<TreeNodeConnection>();
+ ISmooksModelProvider p = getSmooksModelProvider();
+
if (connectionModelFactory != null) {
if (connectionModelFactory.hasConnection(model)) {
- Collection<TreeNodeConnection> cList = connectionModelFactory.createConnection(inputDataList,
- getSmooksResourceList(), root, model);
+ Collection<TreeNodeConnection> cList = connectionModelFactory.createConnection(inputDataList, getSmooksResourceList(), root, model);
+
if (cList != null) {
cs.addAll(cList);
}
}
- // if (connectionModelFactory.hasBeanIDConnection(model)) {
- // Collection<TreeNodeConnection> c =
- // connectionModelFactory.createBeanIDReferenceConnection(
- // getSmooksResourceList(), root, model);
- // if (c != null) {
- // cs.addAll(c);
- // }
- // }
- // // for xsl template
- //
- // if (connectionModelFactory.hasXSLConnection(model)) {
- // Collection<TreeNodeConnection> c =
- // connectionModelFactory.createXSLConnection(inputDataList, root,
- // model);
- // if (c != null) {
- // cs.addAll(c);
- // }
- // }
}
- if (cs.isEmpty())
+
+ if (cs.isEmpty()) {
return null;
+ }
+
return cs;
}
@@ -960,19 +946,31 @@
}
public void createConnection(List<AbstractSmooksGraphicalModel> children, List<TreeNodeConnection> connections) {
- for (Iterator<?> iterator = children.iterator(); iterator.hasNext();) {
- AbstractSmooksGraphicalModel abstractSmooksGraphicalModel = (AbstractSmooksGraphicalModel) iterator.next();
- if (!(abstractSmooksGraphicalModel instanceof InputDataContianerModel)) {
- if (canCreateConnection(abstractSmooksGraphicalModel)) {
- Collection<TreeNodeConnection> c = createConnection(abstractSmooksGraphicalModel);
- if (c != null) {
- connections.addAll(c);
+ Object parentTask = taskType.getParent();
+
+ if(parentTask instanceof TaskType) {
+ if(((TaskType) parentTask).getId().equals(TaskTypeManager.TASK_ID_INPUT)) {
+ for (AbstractSmooksGraphicalModel abstractSmooksGraphicalModel : children) {
+ if (abstractSmooksGraphicalModel instanceof InputDataContianerModel) {
+ createConnection(abstractSmooksGraphicalModel);
+ break;
}
+ }
+ } else if(((TaskType) parentTask).getId().equals(TaskTypeManager.TASK_ID_JAVA_MAPPING)) {
+ for (AbstractSmooksGraphicalModel abstractSmooksGraphicalModel : children) {
+ if (!(abstractSmooksGraphicalModel instanceof InputDataContianerModel)) {
+ if (canCreateConnection(abstractSmooksGraphicalModel)) {
+ Collection<TreeNodeConnection> c = createConnection(abstractSmooksGraphicalModel);
+ if (c != null) {
+ connections.addAll(c);
+ }
+ }
+ List<AbstractSmooksGraphicalModel> cchildren = abstractSmooksGraphicalModel.getChildren();
+ createConnection(cchildren, connections);
+ }
}
- List<AbstractSmooksGraphicalModel> cchildren = abstractSmooksGraphicalModel.getChildren();
- createConnection(cchildren, connections);
}
- }
+ }
}
private boolean canCreateConnection(AbstractSmooksGraphicalModel model) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/editparts/SmooksGraphUtil.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/editparts/SmooksGraphUtil.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/editparts/SmooksGraphUtil.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -90,12 +90,7 @@
public static AbstractSmooksGraphicalModel findSmooksGraphModel(RootModel root, Object object) {
if (root != null && object != null) {
- List<?> children = root.getChildren();
- for (Iterator<?> iterator = children.iterator(); iterator.hasNext();) {
- AbstractSmooksGraphicalModel child = (AbstractSmooksGraphicalModel) iterator.next();
-// if (child instanceof InputDataContianerModel) {
-// continue;
-// }
+ for (AbstractSmooksGraphicalModel child : root.getChildren()) {
AbstractSmooksGraphicalModel model = findGraphicalModel(child, object);
if (model != null) {
return model;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/InputDataContianerModel.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/InputDataContianerModel.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/InputDataContianerModel.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -10,9 +10,12 @@
******************************************************************************/
package org.jboss.tools.smooks.graphical.editors.model;
+import java.util.List;
+
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel;
import org.jboss.tools.smooks.gef.tree.model.TreeContainerModel;
import org.jboss.tools.smooks.gef.tree.model.TreeNodeModel;
@@ -75,5 +78,39 @@
return false;
}
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel#getChildrenWithoutDynamic()
+ */
+ @Override
+ public List<AbstractSmooksGraphicalModel> getChildrenWithoutDynamic() {
+ // TODO Auto-generated method stub
+ return super.getChildrenWithoutDynamic();
+ }
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.gef.tree.model.TreeNodeModel#getChildren()
+ */
+ @Override
+ public List<AbstractSmooksGraphicalModel> getChildren() {
+ // TODO Auto-generated method stub
+ return super.getChildren();
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel#addChild(org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel)
+ */
+ @Override
+ public void addChild(AbstractSmooksGraphicalModel node) {
+ // TODO Auto-generated method stub
+ super.addChild(node);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel#addChild(int, org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel)
+ */
+ @Override
+ public void addChild(int index, AbstractSmooksGraphicalModel node) {
+ // TODO Auto-generated method stub
+ super.addChild(index, node);
+ }
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/freemarker/FreemarkerTemplateGraphicalModel.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/freemarker/FreemarkerTemplateGraphicalModel.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/freemarker/FreemarkerTemplateGraphicalModel.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -34,6 +34,7 @@
import org.jboss.tools.smooks.templating.model.ModelBuilderException;
import org.jboss.tools.smooks.templating.template.TemplateBuilder;
import org.jboss.tools.smooks.templating.template.exception.TemplateBuilderException;
+import org.w3c.dom.Node;
/**
* @author Dart
@@ -130,7 +131,8 @@
}
Template template = freemarker.getTemplate();
- if(template.getValue() == null) {
+ String templateData = template.getCDATA();
+ if(templateData == null) {
SmooksModelUtils.setCDATAToSmooksType(domainProvider.getEditingDomain(), template, "<noMappings/>"); //$NON-NLS-1$
}
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/template/SmooksFreemarkerTemplateGraphicalEditor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/template/SmooksFreemarkerTemplateGraphicalEditor.java 2010-09-18 05:24:05 UTC (rev 25006)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/template/SmooksFreemarkerTemplateGraphicalEditor.java 2010-09-18 07:01:29 UTC (rev 25007)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.smooks.graphical.editors.template;
+import java.util.ArrayList;
+import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -21,19 +23,22 @@
import org.jboss.tools.smooks.configuration.editors.xml.AbstractXMLObject;
import org.jboss.tools.smooks.editor.ISmooksModelProvider;
import org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel;
+import org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection;
+import org.jboss.tools.smooks.gef.tree.model.TreeNodeModel;
import org.jboss.tools.smooks.graphical.editors.ConnectionModelFactory;
import org.jboss.tools.smooks.graphical.editors.GraphicalModelFactory;
-import org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPaletteRootCreator.SmooksModelCreationFactory;
import org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart;
import org.jboss.tools.smooks.graphical.editors.TaskTypeManager;
import org.jboss.tools.smooks.graphical.editors.autolayout.IAutoLayout;
import org.jboss.tools.smooks.graphical.editors.editparts.freemarker.FreemarkerAutoLayout;
import org.jboss.tools.smooks.graphical.editors.model.IValidatableModel;
+import org.jboss.tools.smooks.graphical.editors.model.InputDataContianerModel;
import org.jboss.tools.smooks.graphical.editors.model.freemarker.FreemarkerTemplateGraphicalModel;
import org.jboss.tools.smooks.graphical.editors.model.freemarker.IFreemarkerTemplateModel;
import org.jboss.tools.smooks.graphical.editors.process.TaskType;
import org.jboss.tools.smooks.model.freemarker.Freemarker;
import org.jboss.tools.smooks.templating.model.ModelBuilder;
+import org.jboss.tools.smooks.templating.template.Mapping;
import org.jboss.tools.smooks.templating.template.TemplateBuilder;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -50,9 +55,17 @@
public SmooksFreemarkerTemplateGraphicalEditor(ISmooksModelProvider provider) {
super(provider);
- // TODO Auto-generated constructor stub
+
}
+ private boolean isConnectedDirectlyToInputTask() {
+ Object parentTask = getTaskType().getParent();
+ if(parentTask instanceof TaskType && ((TaskType) parentTask).getId().equals(TaskTypeManager.TASK_ID_INPUT)) {
+ return true;
+ }
+ return false;
+ }
+
/*
* (non-Javadoc)
*
@@ -64,7 +77,62 @@
FreemarkerTemplateEditFactory factory = new FreemarkerTemplateEditFactory();
return factory;
}
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart#createAllConnection(org.jboss.tools.smooks.gef.model.AbstractSmooksGraphicalModel)
+ */
+ @Override
+ public Collection<TreeNodeConnection> createConnection(AbstractSmooksGraphicalModel model) {
+ if(isConnectedDirectlyToInputTask()) {
+ return createInputToTemplateConnections(model);
+ } else {
+ return super.createConnection(model);
+ }
+ }
+ private Collection<TreeNodeConnection> createInputToTemplateConnections(AbstractSmooksGraphicalModel model) {
+ List<AbstractSmooksGraphicalModel> mappingModels = root.getChildren();
+
+ // Should be 2 models in the mappingModels list. First should be the passed in model (the Input),
+ // while the second should be the FreeMarker (target) model.
+ if(mappingModels.size() == 2) {
+ AbstractSmooksGraphicalModel abstractSmooksGraphicalModel = mappingModels.get(0);
+ if(abstractSmooksGraphicalModel == model && abstractSmooksGraphicalModel instanceof InputDataContianerModel) {
+ InputDataContianerModel inputModel = (InputDataContianerModel) abstractSmooksGraphicalModel;
+
+ abstractSmooksGraphicalModel = mappingModels.get(1);
+ if(abstractSmooksGraphicalModel instanceof FreemarkerTemplateGraphicalModel) {
+ FreemarkerTemplateGraphicalModel freemarkerModel = (FreemarkerTemplateGraphicalModel) abstractSmooksGraphicalModel;
+ TemplateBuilder templateBuilder = freemarkerModel.getTemplateBuilder();
+ List<Mapping> mappings = templateBuilder.getMappings();
+ List<TreeNodeConnection> connections = new ArrayList<TreeNodeConnection>();
+
+ for(Mapping mapping : mappings) {
+ TreeNodeModel connectionSource = inputModel.getModelNode(templateBuilder.resolveMappingSrcPath(mapping));
+ TreeNodeModel connectionTarget = freemarkerModel.getModelNode(mapping.getMappingNode());
+
+ if(connectionSource != null && connectionTarget != null) {
+ TreeNodeConnection connection = new TreeNodeConnection(connectionSource, connectionTarget);
+
+ connectionSource.getSourceConnections().add(connection);
+ connectionSource.fireConnectionChanged();
+ connectionTarget.getTargetConnections().add(connection);
+ connectionTarget.fireConnectionChanged();
+
+ connection.setData(mapping);
+ connections.add(connection);
+ }
+ }
+
+ return connections;
+ }
+ }
+ }
+
+ // Yes... not "nice" but
+ throw new RuntimeException("");
+ }
+
@Override
public void validateEnd(List<Diagnostic> diagnosticResult) {
cleanValidationMarker();
@@ -224,11 +292,7 @@
*/
@Override
protected List<AbstractSmooksGraphicalModel> createInputDataGraphModel() {
- TaskType task = getTaskType();
- Freemarker taskConfig = (Freemarker) task.getTaskResources().get(0);
- String templateDataProvider = SmooksModelUtils.getParamValue(taskConfig.getParam(), SmooksModelUtils.TEMPLATE_DATA_PROVIDER_PARAM_NAME);
-
- if(templateDataProvider != null && templateDataProvider.trim().equals(TaskTypeManager.TASK_ID_INPUT)) {
+ if(isConnectedDirectlyToInputTask()) {
return super.createInputDataGraphModel();
} else {
return Collections.EMPTY_LIST;
15 years, 7 months
JBoss Tools SVN: r25006 - trunk/build/target-platform.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-09-18 01:24:05 -0400 (Sat, 18 Sep 2010)
New Revision: 25006
Modified:
trunk/build/target-platform/target2ant.xsl
Log:
update XLST to transform target platform into p2.mirror script; next step is to generate an update site from the available features here
Modified: trunk/build/target-platform/target2ant.xsl
===================================================================
--- trunk/build/target-platform/target2ant.xsl 2010-09-17 21:24:49 UTC (rev 25005)
+++ trunk/build/target-platform/target2ant.xsl 2010-09-18 05:24:05 UTC (rev 25006)
@@ -6,7 +6,8 @@
<xsl:decimal-format decimal-separator="."
grouping-separator="," />
- <xsl:param name="verbose" select="'false'" />
+ <xsl:param name="verbose" select="'${verbose}'" />
+ <xsl:param name="followStrict" select="'${followStrict}'" />
<xsl:param name="destination" select="'file:${repo.dir}'" />
<xsl:variable name="platformFilter"
@@ -14,20 +15,40 @@
<xsl:template match="target">
<project name="Download target platform" default="download.target.platform">
- <!-- use followStrict="true" to prevent downloading all requirements not
- included in the target platform or followStrict="false" to fetch everything -->
+ <target name="help">
+ <echo>
+ Use followStrict="true" to prevent downloading all
+ requirements not included in the target platform
+ or
+ followStrict="false" to fetch everything
+
+ To run this script:
+
+ ./eclipse -vm /opt/jdk1.6.0/bin/java -nosplash
+ -data \
+ /tmp/workspace -consolelog -application \
+ org.eclipse.ant.core.antRunner -f out.xml \
+ -Ddebug=true \
+ -DfollowStrict=false \
+ -Drepo.dir=/tmp/REPO/
+</echo>
+ </target>
<target name="init" unless="repo.dir">
<fail>Must set -Drepo.dir=/path/to/download/artifacts/</fail>
</target>
<target name="download.target.platform" depends="init"
description="Download from target platform definition" if="repo.dir">
+ <property name="verbose" value="false" />
+ <property name="followStrict" value="false" />
<echo level="info">Download features/plugins into ${repo.dir}</echo>
<p2.mirror destination="{$destination}" verbose="{$verbose}">
- <slicingOptions includeFeatures="true" followStrict="false" />
+ <slicingOptions includeFeatures="true" followStrict="{$followStrict}" />
<source>
<xsl:apply-templates select="//repository" />
</source>
<xsl:apply-templates select="//unit" />
+ <xsl:apply-templates select="//feature" />
+ <xsl:apply-templates select="//plugin" />
</p2.mirror>
</target>
</project>
@@ -42,6 +63,14 @@
<iu id="{@id}" version="{@version}" />
</xsl:template>
+ <xsl:template match="//plugin">
+ <iu id="{@id}" version="" />
+ </xsl:template>
+
+ <xsl:template match="//feature">
+ <iu id="{(a)id}.feature.group" version="" />
+ </xsl:template>
+
<!-- ignore anything else -->
<xsl:template match="environment|targetJRE|launcherArgs|includeBundles" />
15 years, 7 months
JBoss Tools SVN: r25005 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: META-INF and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjohnstn
Date: 2010-09-17 17:24:49 -0400 (Fri, 17 Sep 2010)
New Revision: 25005
Added:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnection.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnection.java
Removed:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/META-INF/MANIFEST.MF
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnection.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties
Log:
2010-09-17 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java: Renamed.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java: New name.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnection.java: New file.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnection.java: New file.
* META-INF/MANIFEST.MF: Add dependency on equinox security for editing cloud connection and
restoring saved password.
* src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties: Add messages.
* src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java (fillLocalPullDown): Add edit
cloud connection action.
(fillContextMenu): Ditto.
(makeActions): Add new edit cloud connection action.
(.run): New edit cloud action.
* src/org/jboss/tools/deltacloud/ui/views/ImageView.java (changeEvent): Add check for rename
cloud event.
* src/org/jboss/tools/deltacloud/ui/views/InstanceView.java (changeEvent): Ditto.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnection.java (addPages): Use
new renamed CloudConnectionPage class.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties: Add new messages.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-09-17 21:24:49 UTC (rev 25005)
@@ -1,3 +1,24 @@
+2010-09-17 Jeff Johnston <jjohnstn(a)redhat.com>
+
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java: Renamed.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java: New name.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnection.java: New file.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnection.java: New file.
+ * META-INF/MANIFEST.MF: Add dependency on equinox security for editing cloud connection and
+ restoring saved password.
+ * src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties: Add messages.
+ * src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java (fillLocalPullDown): Add edit
+ cloud connection action.
+ (fillContextMenu): Ditto.
+ (makeActions): Add new edit cloud connection action.
+ (.run): New edit cloud action.
+ * src/org/jboss/tools/deltacloud/ui/views/ImageView.java (changeEvent): Add check for rename
+ cloud event.
+ * src/org/jboss/tools/deltacloud/ui/views/InstanceView.java (changeEvent): Ditto.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnection.java (addPages): Use
+ new renamed CloudConnectionPage class.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties: Add new messages.
+
2010-09-16 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java (createControl): Remove
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/META-INF/MANIFEST.MF 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/META-INF/MANIFEST.MF 2010-09-17 21:24:49 UTC (rev 25005)
@@ -7,6 +7,7 @@
Bundle-Vendor: Red Hat Inc.
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
+ org.eclipse.equinox.security;bundle-version="1.0.100",
org.eclipse.core.runtime,
org.eclipse.ui.views;bundle-version="3.4.1",
org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.0",
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2010-09-17 21:24:49 UTC (rev 25005)
@@ -31,6 +31,7 @@
CloudSelector.label=Select Cloud:
RemoveCloud.label=Disconnect Cloud
+EditCloud.label=Edit Connection
Refresh.label=Refresh Cloud
CreateInstance.label=Launch Instance
DeleteInstance.label=Delete Instance
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -43,6 +43,7 @@
import org.jboss.tools.deltacloud.core.DeltaCloudManager;
import org.jboss.tools.deltacloud.core.ICloudManagerListener;
import org.jboss.tools.deltacloud.ui.SWTImagesFactory;
+import org.jboss.tools.internal.deltacloud.ui.wizards.EditCloudConnection;
import org.jboss.tools.internal.deltacloud.ui.wizards.NewInstance;
@@ -55,6 +56,7 @@
public static final String ID = "org.jboss.tools.deltacloud.ui.views.DeltaCloudView";
private static final String REMOVE_CLOUD = "RemoveCloud.label"; //$NON-NLS-1$
+ private static final String EDIT_CLOUD = "EditCloud.label"; //$NON-NLS-1$
private static final String REFRESH = "Refresh.label"; //$NON-NLS-1$
private static final String CREATE_INSTANCE = "CreateInstance.label"; //$NON-NLS-1$
private static final String CONFIRM_CLOUD_DELETE_TITLE = "ConfirmCloudDelete.title"; //$NON-NLS-1$
@@ -68,6 +70,7 @@
private Action collapseall;
private Action doubleClickAction;
private Action createInstance;
+ private Action editCloud;
private CloudViewElement selectedElement;
@@ -146,6 +149,7 @@
private void fillLocalPullDown(IMenuManager manager) {
manager.removeAll();
+ manager.add(editCloud);
manager.add(removeCloud);
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
CloudViewElement element = (CloudViewElement)selection.getFirstElement();
@@ -162,6 +166,7 @@
} else if (selectedElement instanceof CVInstanceElement){
//TODO: add meaningful actions here
}
+ manager.add(editCloud);
manager.add(removeCloud);
// Other plug-ins can contribute there actions here
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
@@ -227,6 +232,27 @@
createInstance.setToolTipText(CVMessages.getString(CREATE_INSTANCE));
createInstance.setImageDescriptor(SWTImagesFactory.DESC_INSTANCE);
+ editCloud = new Action() {
+ public void run() {
+ IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
+ CloudViewElement element = (CloudViewElement)selection.getFirstElement();
+ while (element != null && !(element instanceof CVCloudElement)) {
+ element = (CloudViewElement)element.getParent();
+ }
+ if (element != null) {
+ CVCloudElement cloudElement = (CVCloudElement)element;
+ DeltaCloud cloud = (DeltaCloud)cloudElement.getElement();
+ IWizard wizard = new EditCloudConnection(cloud);
+ Shell shell = viewer.getControl().getShell();
+ WizardDialog dialog = new WizardDialog(shell, wizard);
+ dialog.create();
+ dialog.open();
+ }
+ }
+ };
+ editCloud.setText(CVMessages.getString(EDIT_CLOUD));
+ editCloud.setToolTipText(CVMessages.getString(EDIT_CLOUD));
+
refreshAction = new Action() {
public void run() {
ISelection selection = viewer.getSelection();
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -358,9 +358,11 @@
public void changeEvent(int type) {
String currName = null;
+ int currIndex = 0;
clouds = DeltaCloudManager.getDefault().getClouds();
if (currCloud != null) {
currName = currCloud.getName();
+ currIndex = cloudSelector.getSelectionIndex();
}
String[] cloudNames = new String[clouds.length];
int index = 0;
@@ -369,6 +371,9 @@
if (cloudNames[i].equals(currName))
index = i;
}
+ if (type == ICloudManagerListener.RENAME_EVENT) {
+ index = currIndex; // no change in cloud displayed
+ }
cloudSelector.removeModifyListener(cloudModifyListener);
cloudSelector.setItems(cloudNames);
if (cloudNames.length > 0) {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -606,8 +606,10 @@
public void changeEvent(int type) {
String currName = null;
+ int currIndex = 0;
if (currCloud != null) {
currName = currCloud.getName();
+ currIndex = cloudSelector.getSelectionIndex();
}
clouds = DeltaCloudManager.getDefault().getClouds();
String[] cloudNames = new String[clouds.length];
@@ -617,6 +619,9 @@
if (cloudNames[i].equals(currName))
index = i;
}
+ if (type == ICloudManagerListener.RENAME_EVENT) {
+ index = currIndex; // no change in cloud displayed
+ }
cloudSelector.removeModifyListener(cloudModifyListener);
cloudSelector.setItems(cloudNames);
if (cloudNames.length > 0) {
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnection.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnection.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnection.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -0,0 +1,7 @@
+package org.jboss.tools.internal.deltacloud.ui.wizards;
+
+public interface CloudConnection {
+
+ public boolean performTest();
+
+}
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -0,0 +1,491 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat Inc..
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat Incorporated - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.internal.deltacloud.ui.wizards;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.FormAttachment;
+import org.eclipse.swt.layout.FormData;
+import org.eclipse.swt.layout.FormLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.deltacloud.core.DeltaCloudManager;
+import org.jboss.tools.deltacloud.ui.Activator;
+import org.jboss.tools.deltacloud.ui.SWTImagesFactory;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+public class CloudConnectionPage extends WizardPage {
+
+ private static final String DESCRIPTION = "NewCloudConnection.desc"; //$NON-NLS-1$
+ private static final String TITLE = "NewCloudConnection.title"; //$NON-NLS-1$
+ private static final String URL_LABEL = "Url.label"; //$NON-NLS-1$
+ private static final String NAME_LABEL = "Name.label"; //$NON-NLS-1$
+ private static final String USERNAME_LABEL = "UserName.label"; //$NON-NLS-1$
+ private static final String TYPE_LABEL = "Type.label"; //$NON-NLS-1$
+ private static final String PASSWORD_LABEL = "Password.label"; //$NON-NLS-1$
+ private static final String TESTBUTTON_LABEL = "TestButton.label"; //$NON-NLS-1$
+ private static final String UNKNOWN_TYPE_LABEL = "UnknownType.label"; //$NON-NLS-1$
+ private static final String EC2_USER_INFO = "EC2UserNameLink.text"; //$NON-NLS-1$
+ private static final String EC2_PASSWORD_INFO = "EC2PasswordLink.text"; //$NON-NLS-1$
+ private static final String NAME_ALREADY_IN_USE = "ErrorNameInUse.text"; //$NON-NLS-1$
+ private static final String INVALID_URL = "ErrorInvalidURL.text"; //$NON-NLS-1$
+ private static final String NONCLOUD_URL = "ErrorNonCloudURL.text"; //$NON-NLS-1$
+
+ private static final String TEST_SUCCESSFUL = "NewCloudConnectionTest.success"; //$NON-NLS-1$
+ private static final String TEST_FAILURE = "NewCloudConnectionTest.failure"; //$NON-NLS-1$
+
+ private CloudConnection wizard;
+
+ private Button testButton;
+
+ private Text nameText;
+ private Text urlText;
+ private Label typeText;
+ private Text usernameText;
+ private Text passwordText;
+
+ private String name;
+ private String url;
+ private String username;
+ private String password;
+ private String cloudType;
+
+ private String defaultName = "";
+ private String defaultURL = "";
+ private String defaultUsername = "";
+ private String defaultPassword = "";
+
+ private boolean urlValid;
+
+ private class CheckURLThread extends Thread {
+
+ @Override
+ public void run() {
+ try {
+ checkURL();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ private Listener linkListener = new Listener() {
+
+ public void handleEvent(Event event) {
+ try {
+ URL url = new URL(event.text);
+ PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(url);
+ } catch (Exception e) {
+ Activator.log(e);
+ }
+ }
+
+ };
+
+ private SelectionListener buttonListener = new SelectionAdapter() {
+
+ public void widgetSelected(SelectionEvent event) {
+ boolean successful = false;
+ if (getURLValid()) {
+ successful = wizard.performTest();
+ }
+ if (successful) {
+ setMessage(WizardMessages.getString(TEST_SUCCESSFUL));
+ } else {
+ setErrorMessage(WizardMessages.getString(TEST_FAILURE));
+ }
+ }
+
+ };
+
+ public CloudConnectionPage(String pageName, CloudConnection wizard) {
+ super(pageName);
+ this.wizard= wizard;
+ setDescription(WizardMessages.getString(DESCRIPTION));
+ setTitle(WizardMessages.getString(TITLE));
+ setImageDescriptor(SWTImagesFactory.DESC_DELTA_LARGE);
+ setPageComplete(false);
+ }
+
+ public CloudConnectionPage(String pageName, String defaultName, String defaultURL,
+ String defaultUsername, String defaultPassword, String defaultCloudType,
+ CloudConnection wizard) {
+ super(pageName);
+ this.wizard= wizard;
+ this.defaultName = defaultName;
+ this.defaultURL = defaultURL;
+ this.defaultUsername = defaultUsername;
+ this.defaultPassword = defaultPassword;
+ this.cloudType = defaultCloudType;
+ setDescription(WizardMessages.getString(DESCRIPTION));
+ setTitle(WizardMessages.getString(TITLE));
+ setImageDescriptor(SWTImagesFactory.DESC_DELTA_LARGE);
+ setPageComplete(false);
+ }
+
+ private ModifyListener textListener = new ModifyListener() {
+
+ @Override
+ public void modifyText(ModifyEvent e) {
+ validate();
+ }
+ };
+
+ public String getName() {
+ return name;
+ }
+
+ public String getURL() {
+ return url;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public String getType() {
+ return typeText.getText();
+ }
+
+ private void validate() {
+ boolean complete = true;
+ boolean errorFree = true;
+
+ setMessage(null);
+
+ name = nameText.getText();
+ if (name.length() > 0) {
+ if (!name.equals(defaultName)) {
+ if (DeltaCloudManager.getDefault().findCloud(name) != null) {
+ errorFree = false;
+ setErrorMessage(WizardMessages.getString(NAME_ALREADY_IN_USE));
+ }
+ }
+ } else {
+ complete = false;
+ }
+
+ // Run check for valid DeltaCloud URL in separate thread
+ String urlValue = urlText.getText();
+ if (urlValue.length() > 5) {
+ CheckURLThread t = new CheckURLThread();
+ t.start();
+ } else if (urlValue.length() > 0){
+ typeText.setText(WizardMessages.getString(NONCLOUD_URL));
+ complete = false;
+ } else {
+ typeText.setText(WizardMessages.getString(UNKNOWN_TYPE_LABEL));
+ complete = false;
+ }
+
+ username = usernameText.getText();
+ if (username.length() <= 0) {
+ complete = false;
+ }
+ password = passwordText.getText();
+ if (password.length() <= 0) {
+ complete = false;
+ }
+ if (errorFree)
+ setErrorMessage(null);
+ setPageComplete(complete & errorFree);
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ return super.isPageComplete() & getURLValid();
+ }
+
+
+ // Method to check the URL for validity as Delta-cloud API specifier.
+ // Since this is run in thread, it does not use the setErrorMessage()
+ // method and instead writes error messages to the typeText label.
+ private boolean checkURL() {
+ boolean valid = false;
+ String oldurl = url;
+ Display.getDefault().syncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ cloudType = typeText.getText();
+ url = urlText.getText();
+ }
+ });
+ String oldCloudType = cloudType;
+ if (url.length() > 0) {
+ if (!url.equals(oldurl)) {
+ try {
+ URL u = new URL(url + "/api.xml"); //$NON-NLS-1$
+ Object o = u.getContent();
+ if (o instanceof InputStream) {
+ String xml = "";
+ InputStream is = (InputStream)o;
+ try
+ {
+ if (is != null)
+ {
+ StringBuilder sb = new StringBuilder();
+ String line;
+
+ BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
+ while ((line = reader.readLine()) != null)
+ {
+ sb.append(line).append("\n"); //$NON-NLS-1$
+ }
+ xml = sb.toString();
+ }
+ }
+ finally
+ {
+ is.close();
+ }
+
+ DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+ DocumentBuilder db = dbf.newDocumentBuilder();
+ Document document = db.parse(new InputSource(new StringReader(xml)));
+
+ NodeList elements = document.getElementsByTagName("api"); //$NON-NLS-1$
+ if (elements.getLength() > 0) {
+ Node n = elements.item(0);
+ Node driver = n.getAttributes().getNamedItem("driver"); //$NON-NLS-1$
+ if (driver != null) {
+ valid = true;
+ String driverValue = driver.getNodeValue();
+ cloudType = driverValue.toUpperCase();
+ } else {
+ cloudType = WizardMessages.getString(UNKNOWN_TYPE_LABEL);
+ }
+ }
+ }
+ } catch (MalformedURLException e) {
+ cloudType = WizardMessages.getString(INVALID_URL);
+ } catch (IOException e) {
+ cloudType = WizardMessages.getString(NONCLOUD_URL);
+ } catch (ParserConfigurationException e) {
+ cloudType = WizardMessages.getString(NONCLOUD_URL);
+ } catch (SAXException e) {
+ cloudType = WizardMessages.getString(NONCLOUD_URL);
+ } catch (Exception e) {
+ cloudType = WizardMessages.getString(INVALID_URL);
+ }
+ setURLValid(valid);
+ }
+ if (!oldCloudType.equals(cloudType)) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ testButton.setEnabled(getURLValid());
+ typeText.setText(cloudType);
+ }
+
+ });
+ }
+ }
+ return valid;
+ }
+
+ /**
+ * Set whether the URL is a valid Delta-cloud API URL.
+ *
+ * @param value boolean to set
+ */
+ private synchronized void setURLValid(boolean value) {
+ urlValid = value;
+ }
+
+ /**
+ * Return the validity of the Delta-cloud URL.
+ *
+ * @return true if URL valid, false otherwise
+ */
+ private synchronized boolean getURLValid() {
+ return urlValid;
+ }
+
+ @Override
+ public void createControl(Composite parent) {
+ final Composite container = new Composite(parent, SWT.NULL);
+ FormLayout layout = new FormLayout();
+ layout.marginHeight = 5;
+ layout.marginWidth = 5;
+ container.setLayout(layout);
+
+ Label dummyLabel = new Label(container, SWT.NULL);
+ // errorLabel.setForeground(JFaceResources.getColorRegistry().get(JFacePreferences.ERROR_COLOR));
+
+ Label nameLabel = new Label(container, SWT.NULL);
+ nameLabel.setText(WizardMessages.getString(NAME_LABEL));
+ nameText = new Text(container, SWT.BORDER | SWT.SINGLE);
+ nameText.setText(defaultName);
+ nameText.addModifyListener(textListener);
+
+ Label urlLabel = new Label(container, SWT.NULL);
+ urlLabel.setText(WizardMessages.getString(URL_LABEL));
+ Point p1 = urlLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
+
+ urlText = new Text(container, SWT.BORDER | SWT.SINGLE);
+ urlText.setText(defaultURL);
+ if (!defaultURL.equals(""))
+ setURLValid(true);
+ urlText.addModifyListener(textListener);
+ Point p2 = urlText.computeSize(SWT.DEFAULT, SWT.DEFAULT);
+
+ int centering = (p2.y - p1.y + 1) / 2;
+
+ Label typeLabel = new Label(container, SWT.NULL);
+ typeLabel.setText(WizardMessages.getString(TYPE_LABEL));
+
+ typeText = new Label(container, SWT.NULL);
+ if (cloudType == null)
+ cloudType = WizardMessages.getString(UNKNOWN_TYPE_LABEL);
+ typeText.setText(cloudType);
+
+ Label usernameLabel = new Label(container, SWT.NULL);
+ usernameLabel.setText(WizardMessages.getString(USERNAME_LABEL));
+
+ usernameText = new Text(container, SWT.BORDER | SWT.SINGLE);
+ usernameText.setText(defaultUsername);
+ usernameText.addModifyListener(textListener);
+
+ Label passwordLabel = new Label(container, SWT.NULL);
+ passwordLabel.setText(WizardMessages.getString(PASSWORD_LABEL));
+
+ passwordText = new Text(container, SWT.BORDER | SWT.PASSWORD | SWT.SINGLE);
+ passwordText.setText(defaultPassword);
+ passwordText.addModifyListener(textListener);
+
+ testButton = new Button(container, SWT.NULL);
+ testButton.setText(WizardMessages.getString(TESTBUTTON_LABEL));
+ testButton.setEnabled(!defaultName.equals(""));
+ testButton.addSelectionListener(buttonListener);
+
+ Link ec2userLink = new Link(container, SWT.NULL);
+ ec2userLink.setText(WizardMessages.getString(EC2_USER_INFO));
+ ec2userLink.addListener(SWT.Selection, linkListener);
+
+ Link ec2pwLink = new Link(container, SWT.NULL);
+ ec2pwLink.setText(WizardMessages.getString(EC2_PASSWORD_INFO));
+ ec2pwLink.addListener(SWT.Selection, linkListener);
+
+ FormData f = new FormData();
+ f.left = new FormAttachment(0, 0);
+ f.right = new FormAttachment(100, 0);
+ dummyLabel.setLayoutData(f);
+
+ f = new FormData();
+ f.top = new FormAttachment(dummyLabel, 8 + centering);
+ nameLabel.setLayoutData(f);
+
+ f = new FormData();
+ f.top = new FormAttachment(dummyLabel, 8);
+ f.left = new FormAttachment(usernameLabel, 5);
+ f.right = new FormAttachment(100, 0);
+ nameText.setLayoutData(f);
+
+ f = new FormData();
+ f.top = new FormAttachment(nameText, 5 + centering);
+ urlLabel.setLayoutData(f);
+
+ f = new FormData();
+ f.left = new FormAttachment(nameText, 0, SWT.LEFT);
+ f.top = new FormAttachment(nameText, 5);
+ f.right = new FormAttachment(100, 0);
+ urlText.setLayoutData(f);
+
+ f = new FormData();
+ f.top = new FormAttachment(urlText, 5 + centering);
+ typeLabel.setLayoutData(f);
+
+ f = new FormData();
+ f.left = new FormAttachment(urlText, 0, SWT.LEFT);
+ f.top = new FormAttachment(urlText, 5 + centering);
+ f.right = new FormAttachment(100, 0);
+ typeText.setLayoutData(f);
+
+ f = new FormData();
+ f.top = new FormAttachment(typeText, 10 + centering);
+ usernameLabel.setLayoutData(f);
+
+ f = new FormData();
+ f.left = new FormAttachment(typeText, 0, SWT.LEFT);
+ f.top = new FormAttachment(typeText, 10);
+ f.right = new FormAttachment(100, -70);
+ usernameText.setLayoutData(f);
+
+ f = new FormData();
+ f.left = new FormAttachment(usernameText, 0, SWT.LEFT);
+ f.top = new FormAttachment(usernameText, 5);
+ ec2userLink.setLayoutData(f);
+
+ f = new FormData();
+ f.top = new FormAttachment(ec2userLink, 5 + centering);
+ passwordLabel.setLayoutData(f);
+
+ f = new FormData();
+ f.left = new FormAttachment(usernameText, 0, SWT.LEFT);
+ f.top = new FormAttachment(ec2userLink, 5);
+ f.right = new FormAttachment(100, -70);
+ passwordText.setLayoutData(f);
+
+ f = new FormData();
+ int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
+ Point minSize = testButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
+ f.width = Math.max(widthHint, minSize.x);
+ f.left = new FormAttachment(usernameText, 10);
+ f.top = new FormAttachment(usernameText, 0);
+ f.right = new FormAttachment(100, 0);
+ testButton.setLayoutData(f);
+
+ f = new FormData();
+ f.left = new FormAttachment(passwordText, 0, SWT.LEFT);
+ f.top = new FormAttachment(passwordText, 5);
+ ec2pwLink.setLayoutData(f);
+
+ setControl(container);
+ validate();
+}
+
+}
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnection.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnection.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnection.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -0,0 +1,95 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat Inc..
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat Incorporated - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.internal.deltacloud.ui.wizards;
+
+import java.net.MalformedURLException;
+
+import org.eclipse.equinox.security.storage.ISecurePreferences;
+import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.jboss.tools.deltacloud.core.DeltaCloud;
+import org.jboss.tools.deltacloud.core.DeltaCloudManager;
+import org.jboss.tools.deltacloud.ui.Activator;
+
+public class EditCloudConnection extends Wizard implements INewWizard, CloudConnection {
+
+ private static final String MAINPAGE_NAME = "EditCloudConnection.name"; //$NON-NLS-1$
+ private CloudConnectionPage mainPage;
+ private DeltaCloud cloud;
+
+ public EditCloudConnection(DeltaCloud cloud) {
+ super();
+ this.cloud = cloud;
+ }
+
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ // TODO Auto-generated method stub
+ }
+
+ @Override
+ public void addPages() {
+ String password = "";
+ String key = DeltaCloud.getPreferencesKey(cloud.getURL(), cloud.getUsername());
+ ISecurePreferences root = SecurePreferencesFactory.getDefault();
+ ISecurePreferences node = root.node(key);
+ try {
+ password = node.get("password", null); //$NON-NLS-1$
+ } catch (Exception e) {
+ Activator.log(e);
+ }
+ mainPage = new CloudConnectionPage(WizardMessages.getString(MAINPAGE_NAME),
+ cloud.getName(), cloud.getURL(), cloud.getUsername(), password,
+ cloud.getType(), this);
+ addPage(mainPage);
+ }
+
+ @Override
+ public boolean canFinish() {
+ return mainPage.isPageComplete();
+ }
+
+ public boolean performTest() {
+ String name = mainPage.getName();
+ String url = mainPage.getURL();
+ String username = mainPage.getUsername();
+ String password = mainPage.getPassword();
+ try {
+ DeltaCloud newCloud = new DeltaCloud(name, url, username, password);
+ return newCloud.testConnection();
+ } catch (MalformedURLException e) {
+ Activator.log(e);
+ return false;
+ }
+ }
+
+ @Override
+ public boolean performFinish() {
+ String name = mainPage.getName();
+ String url = mainPage.getURL();
+ String username = mainPage.getUsername();
+ String password = mainPage.getPassword();
+ String type = mainPage.getType();
+ try {
+ String oldName = cloud.getName();
+ cloud.editCloud(name, url, username, password, type);
+ if (!name.equals(oldName))
+ DeltaCloudManager.getDefault().notifyCloudRename();
+ } catch (MalformedURLException e) {
+ Activator.log(e);
+ }
+ return true;
+ }
+
+}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnection.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnection.java 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnection.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -20,10 +20,10 @@
import org.jboss.tools.deltacloud.core.DeltaCloudManager;
import org.jboss.tools.deltacloud.ui.Activator;
-public class NewCloudConnection extends Wizard implements INewWizard {
+public class NewCloudConnection extends Wizard implements INewWizard, CloudConnection {
private static final String MAINPAGE_NAME = "NewCloudConnection.name"; //$NON-NLS-1$
- private NewCloudConnectionPage mainPage;
+ private CloudConnectionPage mainPage;
public NewCloudConnection() {
super();
@@ -37,7 +37,7 @@
@Override
public void addPages() {
// TODO Auto-generated method stub
- mainPage = new NewCloudConnectionPage(WizardMessages.getString(MAINPAGE_NAME), this);
+ mainPage = new CloudConnectionPage(WizardMessages.getString(MAINPAGE_NAME), this);
addPage(mainPage);
}
@@ -72,7 +72,6 @@
DeltaCloudManager.getDefault().addCloud(newCloud);
} catch (MalformedURLException e) {
Activator.log(e);
- return false;
}
return true;
}
Deleted: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionPage.java 2010-09-17 21:24:49 UTC (rev 25005)
@@ -1,460 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Red Hat Inc..
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat Incorporated - initial API and implementation
- *******************************************************************************/
-package org.jboss.tools.internal.deltacloud.ui.wizards;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.StringReader;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.FormAttachment;
-import org.eclipse.swt.layout.FormData;
-import org.eclipse.swt.layout.FormLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Link;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.deltacloud.core.DeltaCloudManager;
-import org.jboss.tools.deltacloud.ui.Activator;
-import org.jboss.tools.deltacloud.ui.SWTImagesFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-public class NewCloudConnectionPage extends WizardPage {
-
- private static final String DESCRIPTION = "NewCloudConnection.desc"; //$NON-NLS-1$
- private static final String TITLE = "NewCloudConnection.title"; //$NON-NLS-1$
- private static final String URL_LABEL = "Url.label"; //$NON-NLS-1$
- private static final String NAME_LABEL = "Name.label"; //$NON-NLS-1$
- private static final String USERNAME_LABEL = "UserName.label"; //$NON-NLS-1$
- private static final String TYPE_LABEL = "Type.label"; //$NON-NLS-1$
- private static final String PASSWORD_LABEL = "Password.label"; //$NON-NLS-1$
- private static final String TESTBUTTON_LABEL = "TestButton.label"; //$NON-NLS-1$
- private static final String UNKNOWN_TYPE_LABEL = "UnknownType.label"; //$NON-NLS-1$
- private static final String EC2_USER_INFO = "EC2UserNameLink.text"; //$NON-NLS-1$
- private static final String EC2_PASSWORD_INFO = "EC2PasswordLink.text"; //$NON-NLS-1$
- private static final String NAME_ALREADY_IN_USE = "ErrorNameInUse.text"; //$NON-NLS-1$
- private static final String INVALID_URL = "ErrorInvalidURL.text"; //$NON-NLS-1$
- private static final String NONCLOUD_URL = "ErrorNonCloudURL.text"; //$NON-NLS-1$
-
- private static final String TEST_SUCCESSFUL = "NewCloudConnectionTest.success"; //$NON-NLS-1$
- private static final String TEST_FAILURE = "NewCloudConnectionTest.failure"; //$NON-NLS-1$
-
- private NewCloudConnection wizard;
-
- private Button testButton;
-
- private Text nameText;
- private Text urlText;
- private Label typeText;
- private Text usernameText;
- private Text passwordText;
-
- private String name;
- private String url;
- private String username;
- private String password;
- private String cloudType;
-
- private boolean urlValid;
-
- private class CheckURLThread extends Thread {
-
- @Override
- public void run() {
- try {
- checkURL();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
-
- private Listener linkListener = new Listener() {
-
- public void handleEvent(Event event) {
- try {
- URL url = new URL(event.text);
- PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(url);
- } catch (Exception e) {
- Activator.log(e);
- }
- }
-
- };
-
- private SelectionListener buttonListener = new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- boolean successful = false;
- if (getURLValid()) {
- successful = wizard.performTest();
- }
- if (successful) {
- setMessage(WizardMessages.getString(TEST_SUCCESSFUL));
- } else {
- setErrorMessage(WizardMessages.getString(TEST_FAILURE));
- }
- }
-
- };
-
- public NewCloudConnectionPage(String pageName, NewCloudConnection wizard) {
- super(pageName);
- this.wizard= wizard;
- setDescription(WizardMessages.getString(DESCRIPTION));
- setTitle(WizardMessages.getString(TITLE));
- setImageDescriptor(SWTImagesFactory.DESC_DELTA_LARGE);
- setPageComplete(false);
- }
-
- private ModifyListener textListener = new ModifyListener() {
-
- @Override
- public void modifyText(ModifyEvent e) {
- validate();
- }
- };
-
- public String getName() {
- return name;
- }
-
- public String getURL() {
- return url;
- }
-
- public String getUsername() {
- return username;
- }
-
- public String getPassword() {
- return password;
- }
-
- public String getType() {
- return typeText.getText();
- }
-
- private void validate() {
- boolean complete = true;
- boolean errorFree = true;
-
- setMessage(null);
-
- name = nameText.getText();
- if (name.length() > 0) {
- if (DeltaCloudManager.getDefault().findCloud(name) != null) {
- errorFree = false;
- setErrorMessage(WizardMessages.getString(NAME_ALREADY_IN_USE));
- }
- } else {
- complete = false;
- }
-
- // Run check for valid DeltaCloud URL in separate thread
- String urlValue = urlText.getText();
- if (urlValue.length() > 5) {
- CheckURLThread t = new CheckURLThread();
- t.start();
- } else if (urlValue.length() > 0){
- typeText.setText(WizardMessages.getString(NONCLOUD_URL));
- complete = false;
- } else {
- typeText.setText(WizardMessages.getString(UNKNOWN_TYPE_LABEL));
- complete = false;
- }
-
- username = usernameText.getText();
- if (username.length() <= 0) {
- complete = false;
- }
- password = passwordText.getText();
- if (password.length() <= 0) {
- complete = false;
- }
- if (errorFree)
- setErrorMessage(null);
- setPageComplete(complete & errorFree);
- }
-
- @Override
- public boolean isPageComplete() {
- return super.isPageComplete() & getURLValid();
- }
-
-
- // Method to check the URL for validity as Delta-cloud API specifier.
- // Since this is run in thread, it does not use the setErrorMessage()
- // method and instead writes error messages to the typeText label.
- private boolean checkURL() {
- boolean valid = false;
- String oldurl = url;
- Display.getDefault().syncExec(new Runnable() {
-
- @Override
- public void run() {
- cloudType = typeText.getText();
- url = urlText.getText();
- }
- });
- String oldCloudType = cloudType;
- if (url.length() > 0) {
- if (!url.equals(oldurl)) {
- try {
- URL u = new URL(url + "/api.xml"); //$NON-NLS-1$
- Object o = u.getContent();
- if (o instanceof InputStream) {
- String xml = "";
- InputStream is = (InputStream)o;
- try
- {
- if (is != null)
- {
- StringBuilder sb = new StringBuilder();
- String line;
-
- BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
- while ((line = reader.readLine()) != null)
- {
- sb.append(line).append("\n"); //$NON-NLS-1$
- }
- xml = sb.toString();
- }
- }
- finally
- {
- is.close();
- }
-
- DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
- DocumentBuilder db = dbf.newDocumentBuilder();
- Document document = db.parse(new InputSource(new StringReader(xml)));
-
- NodeList elements = document.getElementsByTagName("api"); //$NON-NLS-1$
- if (elements.getLength() > 0) {
- Node n = elements.item(0);
- Node driver = n.getAttributes().getNamedItem("driver"); //$NON-NLS-1$
- if (driver != null) {
- valid = true;
- String driverValue = driver.getNodeValue();
- cloudType = driverValue.toUpperCase();
- } else {
- cloudType = WizardMessages.getString(UNKNOWN_TYPE_LABEL);
- }
- }
- }
- } catch (MalformedURLException e) {
- cloudType = WizardMessages.getString(INVALID_URL);
- } catch (IOException e) {
- cloudType = WizardMessages.getString(NONCLOUD_URL);
- } catch (ParserConfigurationException e) {
- cloudType = WizardMessages.getString(NONCLOUD_URL);
- } catch (SAXException e) {
- cloudType = WizardMessages.getString(NONCLOUD_URL);
- } catch (Exception e) {
- cloudType = WizardMessages.getString(INVALID_URL);
- }
- setURLValid(valid);
- }
- if (!oldCloudType.equals(cloudType)) {
- Display.getDefault().asyncExec(new Runnable() {
-
- @Override
- public void run() {
- testButton.setEnabled(getURLValid());
- typeText.setText(cloudType);
- }
-
- });
- }
- }
- return valid;
- }
-
- /**
- * Set whether the URL is a valid Delta-cloud API URL.
- *
- * @param value boolean to set
- */
- private synchronized void setURLValid(boolean value) {
- urlValid = value;
- }
-
- /**
- * Return the validity of the Delta-cloud URL.
- *
- * @return true if URL valid, false otherwise
- */
- private synchronized boolean getURLValid() {
- return urlValid;
- }
-
- @Override
- public void createControl(Composite parent) {
- final Composite container = new Composite(parent, SWT.NULL);
- FormLayout layout = new FormLayout();
- layout.marginHeight = 5;
- layout.marginWidth = 5;
- container.setLayout(layout);
-
- Label dummyLabel = new Label(container, SWT.NULL);
- // errorLabel.setForeground(JFaceResources.getColorRegistry().get(JFacePreferences.ERROR_COLOR));
-
- Label nameLabel = new Label(container, SWT.NULL);
- nameLabel.setText(WizardMessages.getString(NAME_LABEL));
- nameText = new Text(container, SWT.BORDER | SWT.SINGLE);
- nameText.addModifyListener(textListener);
-
- Label urlLabel = new Label(container, SWT.NULL);
- urlLabel.setText(WizardMessages.getString(URL_LABEL));
- Point p1 = urlLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
-
- urlText = new Text(container, SWT.BORDER | SWT.SINGLE);
- urlText.addModifyListener(textListener);
- Point p2 = urlText.computeSize(SWT.DEFAULT, SWT.DEFAULT);
-
- int centering = (p2.y - p1.y + 1) / 2;
-
- Label typeLabel = new Label(container, SWT.NULL);
- typeLabel.setText(WizardMessages.getString(TYPE_LABEL));
-
- typeText = new Label(container, SWT.NULL);
- cloudType = WizardMessages.getString(UNKNOWN_TYPE_LABEL);
- typeText.setText(cloudType);
-
- Label usernameLabel = new Label(container, SWT.NULL);
- usernameLabel.setText(WizardMessages.getString(USERNAME_LABEL));
-
- usernameText = new Text(container, SWT.BORDER | SWT.SINGLE);
- usernameText.addModifyListener(textListener);
-
- Label passwordLabel = new Label(container, SWT.NULL);
- passwordLabel.setText(WizardMessages.getString(PASSWORD_LABEL));
-
- passwordText = new Text(container, SWT.BORDER | SWT.PASSWORD | SWT.SINGLE);
- passwordText.addModifyListener(textListener);
-
- testButton = new Button(container, SWT.NULL);
- testButton.setText(WizardMessages.getString(TESTBUTTON_LABEL));
- testButton.setEnabled(false);
- testButton.addSelectionListener(buttonListener);
-
- Link ec2userLink = new Link(container, SWT.NULL);
- ec2userLink.setText(WizardMessages.getString(EC2_USER_INFO));
- ec2userLink.addListener(SWT.Selection, linkListener);
-
- Link ec2pwLink = new Link(container, SWT.NULL);
- ec2pwLink.setText(WizardMessages.getString(EC2_PASSWORD_INFO));
- ec2pwLink.addListener(SWT.Selection, linkListener);
-
- FormData f = new FormData();
- f.left = new FormAttachment(0, 0);
- f.right = new FormAttachment(100, 0);
- dummyLabel.setLayoutData(f);
-
- f = new FormData();
- f.top = new FormAttachment(dummyLabel, 8 + centering);
- nameLabel.setLayoutData(f);
-
- f = new FormData();
- f.top = new FormAttachment(dummyLabel, 8);
- f.left = new FormAttachment(usernameLabel, 5);
- f.right = new FormAttachment(100, 0);
- nameText.setLayoutData(f);
-
- f = new FormData();
- f.top = new FormAttachment(nameText, 5 + centering);
- urlLabel.setLayoutData(f);
-
- f = new FormData();
- f.left = new FormAttachment(nameText, 0, SWT.LEFT);
- f.top = new FormAttachment(nameText, 5);
- f.right = new FormAttachment(100, 0);
- urlText.setLayoutData(f);
-
- f = new FormData();
- f.top = new FormAttachment(urlText, 5 + centering);
- typeLabel.setLayoutData(f);
-
- f = new FormData();
- f.left = new FormAttachment(urlText, 0, SWT.LEFT);
- f.top = new FormAttachment(urlText, 5 + centering);
- f.right = new FormAttachment(100, 0);
- typeText.setLayoutData(f);
-
- f = new FormData();
- f.top = new FormAttachment(typeText, 10 + centering);
- usernameLabel.setLayoutData(f);
-
- f = new FormData();
- f.left = new FormAttachment(typeText, 0, SWT.LEFT);
- f.top = new FormAttachment(typeText, 10);
- f.right = new FormAttachment(100, -70);
- usernameText.setLayoutData(f);
-
- f = new FormData();
- f.left = new FormAttachment(usernameText, 0, SWT.LEFT);
- f.top = new FormAttachment(usernameText, 5);
- ec2userLink.setLayoutData(f);
-
- f = new FormData();
- f.top = new FormAttachment(ec2userLink, 5 + centering);
- passwordLabel.setLayoutData(f);
-
- f = new FormData();
- f.left = new FormAttachment(usernameText, 0, SWT.LEFT);
- f.top = new FormAttachment(ec2userLink, 5);
- f.right = new FormAttachment(100, -70);
- passwordText.setLayoutData(f);
-
- f = new FormData();
- int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
- Point minSize = testButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
- f.width = Math.max(widthHint, minSize.x);
- f.left = new FormAttachment(usernameText, 10);
- f.top = new FormAttachment(usernameText, 0);
- f.right = new FormAttachment(100, 0);
- testButton.setLayoutData(f);
-
- f = new FormData();
- f.left = new FormAttachment(passwordText, 0, SWT.LEFT);
- f.top = new FormAttachment(passwordText, 5);
- ec2pwLink.setLayoutData(f);
-
- setControl(container);
-}
-
-}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties 2010-09-17 20:47:08 UTC (rev 25004)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties 2010-09-17 21:24:49 UTC (rev 25005)
@@ -14,6 +14,8 @@
NewCloudConnectionTest.success=Connection Test successful
NewCloudConnectionTest.failure=Connection Test failed
+EditCloudConnection.name=Edit Cloud Connection
+
Url.label=URL:
Name.label=Name:
Type.label=Type:
15 years, 7 months
JBoss Tools SVN: r25004 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core: src/org/jboss/tools/deltacloud/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjohnstn
Date: 2010-09-17 16:47:08 -0400 (Fri, 17 Sep 2010)
New Revision: 25004
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudManagerListener.java
Log:
2010-09-17 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/core/DeltaCloud.java (editCloud): New method.
* src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java (notifyCloudRename): Ditto.
* src/org/jboss/tools/deltacloud/core/ICloudManagerListener.java: Add rename event.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2010-09-17 20:24:40 UTC (rev 25003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2010-09-17 20:47:08 UTC (rev 25004)
@@ -1,3 +1,9 @@
+2010-09-17 Jeff Johnston <jjohnstn(a)redhat.com>
+
+ * src/org/jboss/tools/deltacloud/core/DeltaCloud.java (editCloud): New method.
+ * src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java (notifyCloudRename): Ditto.
+ * src/org/jboss/tools/deltacloud/core/ICloudManagerListener.java: Add rename event.
+
2010-09-08 Jeff Johnston <jjohnstn(a)redhat.com>
* .classpath: Fix to remove error messages.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2010-09-17 20:24:40 UTC (rev 25003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2010-09-17 20:47:08 UTC (rev 25004)
@@ -70,6 +70,22 @@
}
}
}
+
+ public void editCloud(String name, String url, String username, String passwd, String type) throws MalformedURLException {
+ this.client = new DeltaCloudClient(new URL(url + "/api"), username, passwd); //$NON-NLS-1$
+ this.url = url;
+ this.name = name;
+ this.username = username;
+ this.type = type;
+ ISecurePreferences root = SecurePreferencesFactory.getDefault();
+ String key = DeltaCloud.getPreferencesKey(url, username);
+ ISecurePreferences node = root.node(key);
+ try {
+ node.put("password", passwd, true /*encrypt*/);
+ } catch (StorageException e) {
+ e.printStackTrace();
+ }
+ }
public static String getPreferencesKey(String url, String username) {
String key = "/org/jboss/tools/deltacloud/core/"; //$NON-NLS-1$
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java 2010-09-17 20:24:40 UTC (rev 25003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java 2010-09-17 20:47:08 UTC (rev 25004)
@@ -164,6 +164,11 @@
notifyListeners(ICloudManagerListener.REMOVE_EVENT);
}
+ public void notifyCloudRename() {
+ saveClouds();
+ notifyListeners(ICloudManagerListener.RENAME_EVENT);
+ }
+
public void addCloudManagerListener(ICloudManagerListener listener) {
if (cloudManagerListeners == null)
cloudManagerListeners = new ListenerList(ListenerList.IDENTITY);
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudManagerListener.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudManagerListener.java 2010-09-17 20:24:40 UTC (rev 25003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudManagerListener.java 2010-09-17 20:47:08 UTC (rev 25004)
@@ -14,6 +14,7 @@
public static int ADD_EVENT = 1;
public static int REMOVE_EVENT = 2;
+ public static int RENAME_EVENT = 3;
void changeEvent(int type);
}
15 years, 7 months
JBoss Tools SVN: r25003 - trunk.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-09-17 16:24:40 -0400 (Fri, 17 Sep 2010)
New Revision: 25003
Removed:
trunk/parent-pom.xml
Log:
parent-pom.xml is deprecated; use build/parent/pom.xml instead
Deleted: trunk/parent-pom.xml
===================================================================
--- trunk/parent-pom.xml 2010-09-17 17:51:11 UTC (rev 25002)
+++ trunk/parent-pom.xml 2010-09-17 20:24:40 UTC (rev 25003)
@@ -1,724 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.tools</groupId>
- <artifactId>org.jboss.tools.parent.pom</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>JBoss Tools Parent</name>
- <packaging>pom</packaging>
- <modules>
- <module>build/target-platform</module>
- </modules>
-
- <properties>
- <!--tychoVersion>0.10.0-SNAPSHOT</tychoVersion-->
- <tychoVersion>0.9.0</tychoVersion>
- <scmBranch>trunk</scmBranch>
- <BUILD_ALIAS>M2</BUILD_ALIAS>
- <memoryOptions1>-Xms512m -Xmx1024m -XX:PermSize=256m</memoryOptions1>
- <memoryOptions2>-XX:MaxPermSize=256m</memoryOptions2>
- <systemProperties></systemProperties>
- <target.platform>e36-wtp32</target.platform>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.4</version>
- </plugin>
-
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-packaging-plugin</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <format>'v'yyyyMMdd-HHmm'-${BUILD_ALIAS}'</format>
- <archiveSite>true</archiveSite>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- <version>${tychoVersion}</version>
- <extensions>true</extensions>
- </plugin>
-
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <resolver>p2</resolver>
- <ignoreTychoRepositories>true</ignoreTychoRepositories>
- <environments>
- <environment>
- <os>macosx</os>
- <ws>cocoa</ws>
- <arch>x86</arch>
- </environment>
- <environment>
- <os>macosx</os>
- <ws>carbon</ws>
- <arch>x86</arch>
- </environment>
- <environment>
- <os>win32</os>
- <ws>win32</ws>
- <arch>x86</arch>
- </environment>
- <environment>
- <os>linux</os>
- <ws>gtk</ws>
- <arch>x86</arch>
- </environment>
- <environment>
- <os>linux</os>
- <ws>gtk</ws>
- <arch>x86_64</arch>
- </environment>
- </environments>
- </configuration>
- </plugin>
-
- <!-- to skip running tests (compile only) use commandline flag: -Dmaven.test.skip
- To allow all tests in a pom to pass/fail, use commandline flag: -fae (fail
- at end) -->
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-test-plugin</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <!-- timeout in seconds -->
- <surefire.timeout>1800</surefire.timeout>
- <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
- <useUIHarness>true</useUIHarness>
- <useUIThread>true</useUIThread>
- <argLine>${memoryOptions1} ${memoryOptions2} ${systemProperties}
- </argLine>
- <!-- https://docs.sonatype.org/display/TYCHO/How+to+run+SWTBot+tests+with+Tycho -->
- <!-- set useUIThread=true for regular ui tests -->
- <!-- set useUIThread=false for swtbot tests (?) -->
- <product>org.eclipse.sdk.ide</product>
- <application>org.eclipse.ui.ide.workbench</application>
- <dependencies>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.sdk.ide</artifactId>
- <version>0.0.0</version>
- </dependency>
- <!-- http://www.jmock.org/maven.html -->
- <dependency>
- <groupId>org.jmock</groupId>
- <artifactId>jmock-legacy</artifactId>
- <version>2.5.1</version>
- </dependency>
- <dependency>
- <groupId>org.jmock</groupId>
- <artifactId>jmock-junit4</artifactId>
- <version>2.5.1</version>
- </dependency>
- </dependencies>
- <includes>
- <include>**/AllTests.class</include>
- <include>**/*AllTests*.class</include>
- <include>**/*AllBotTests*.class</include>
- <include>**/*TestSuite*.class</include>
- </includes>
- <parallel>true</parallel>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbosstools/${scmBranch}
- </connection>
- <developerConnection>scm:svn:http://anonsvn.jboss.org/repos/jbosstools/${scmBranch}
- </developerConnection>
- <url>http://anonsvn.jboss.org/repos/jbosstools/${scmBranch}
- </url>
- </scm>
-
- <issueManagement>
- <system>jira</system>
- <url>https://jira.jboss.org/jira/secure/</url>
- </issueManagement>
- <profiles>
- <profile>
- <id>helios</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <target>
- <artifact>
- <groupId>org.jboss.tools</groupId>
- <artifactId>target-platform</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <classifier>${target.platform}</classifier>
- </artifact>
- </target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <!-- Time saver: to build everything from scratch (without target platform);
- To enable it use -P helios-no-target in command line. Do not remove repos
- that contains the same artefacts, it is done for purpose to make build more
- stable in case one of the repos is offline. -->
- <profile>
- <id>helios-no-target</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <repositories>
- <!--repository>
- <id>helios</id>
- <url>http://download.eclipse.org/releases/helios/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository-->
- <repository>
- <id>eclipse36</id>
- <url>http://download.eclipse.org/eclipse/updates/3.6.x/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>jboss-helios</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/helios/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <!--repository>
- <id>webtools32</id>
- <url>http://download.eclipse.org/webtools/repository/helios</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository-->
- <repository>
- <id>jboss-webtools32</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/webtools-3.2/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>birt26</id>
- <url>http://download.eclipse.org/birt/update-site/2.6/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>jboss-drools-nightly</id>
- <url>http://download.jboss.org/jbosstools/builds/nightly/3.2.helios/jbosstools...
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <!--repository>
- <id>swtbot-helios</id>
- <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository-->
- <repository>
- <id>jboss-swtbot-helios</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/swtbot-helios/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>m2eclipse</id>
- <url>http://m2eclipse.sonatype.org/sites/m2e/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>m2eclipse-extras</id>
- <url>http://m2eclipse.sonatype.org/sites/m2e-extras/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <!--repository>
- <id>jboss-orbit</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/orbit/R20100519...
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository-->
- <repository>
- <id>jboss-thirdparty</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/thirdparty/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>jboss-xulrunner-1.9.1.2</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/xulrunner-1.9.1.2/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <!--repository>
- <id>jboss-xulrunner-1.9.2</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/xulrunner-1.9.2/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository-->
- <repository>
- <id>google eclipse plugins</id>
- <url>http://dl.google.com/eclipse/plugin/3.6</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- </repositories>
- </profile>
-
- <profile>
- <id>helios-maintenance-no-target</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <repositories>
- <repository>
- <id>eclipse36x</id>
- <url>http://download.eclipse.org/eclipse/updates/3.6.x/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- </repositories>
- </profile>
-
- <profile>
- <id>hudson</id>
- <activation>
- <property>
- <name>BUILD_NUMBER</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-packaging-plugin</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <format>'v'yyyyMMdd-HHmm'-H${BUILD_NUMBER}-${BUILD_ALIAS}'
- </format>
- <archiveSite>true</archiveSite>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>svn-repos</id>
- <repositories>
- <repository>
- <id>svnkit13</id>
- <url>http://eclipse.svnkit.com/1.3.x/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>subclipse16</id>
- <url>http://subclipse.tigris.org/update_1.6.x/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>subversive07</id>
- <url>http://download.eclipse.org/technology/subversive/0.7/update-site/
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>subversive20</id>
- <url>http://community.polarion.com/projects/subversive/download/eclipse/2.0/up...
- </url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- </repositories>
- </profile>
- <profile>
- <id>coverage</id>
- <activation>
- <property>
- <name>coverage</name>
- </property>
- </activation>
- <properties>
- <emma.session.out.file>${project.build.directory}/emma/coverage.es
- </emma.session.out.file>
- <emma.filter />
- <emma.instrument.bundles />
- </properties>
- <build>
- <plugins>
- <!-- plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId>
- <executions> <execution> <id>attach-artifacts</id> <phase>package</phase>
- <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts>
- <artifact> <file>${emma.session.out.file}</file> <type>es</type> </artifact>
- </artifacts> </configuration> </execution> </executions> </plugin -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.3.1</version>
- <configuration>
- <file></file>
- <groupId></groupId>
- <artifactId></artifactId>
- <version></version>
- <packaging></packaging>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-test-plugin</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <systemProperties combine.children="append">
- <emma.session.out.file>${emma.session.out.file}
- </emma.session.out.file>
- <emma.filter>${emma.filter}</emma.filter>
- <eclemma.instrument.bundles>${emma.instrument.bundles}
- </eclemma.instrument.bundles>
- </systemProperties>
- <frameworkExtensions>
- <frameworkExtension>
- <groupId>org.eclemma.runtime.equinox</groupId>
- <artifactId>org.eclemma.runtime.equinox</artifactId>
- <version>1.1.0.200908261008</version>
- </frameworkExtension>
- </frameworkExtensions>
- <application>org.eclipse.ui.ide.workbench</application>
- <dependencies>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.sdk.ide</artifactId>
- <version>0.0.0</version>
- </dependency>
- </dependencies>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.3</version>
- <dependencies>
- <dependency>
- <groupId>emma</groupId>
- <artifactId>emma_ant</artifactId>
- <version>2.0.5312</version>
- </dependency>
- <dependency>
- <groupId>emma</groupId>
- <artifactId>emma</artifactId>
- <version>2.0.5312</version>
- </dependency>
- <dependency>
- <groupId>ant-contrib</groupId>
- <artifactId>ant-contrib</artifactId>
- <version>1.0b3</version>
- <exclusions>
- <exclusion>
- <groupId>ant</groupId>
- <artifactId>ant</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>emma-report</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <taskdef resource="emma_ant.properties" />
- <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
- <if>
- <available file="${project.build.directory}/emma"
- type="dir" />
- <then>
- <echo>Process emma report...</echo>
- <!-- emma enabled="true"> <instr metadatafile="${project.build.directory}/coverage.em"
- mode="overwrite" instrpath="${project.build.directory}/../../../plugins/${emma.instrument.bundles}/target/classes"
- /> </emma -->
- <emma enabled="true">
- <report>
- <infileset dir="${project.build.directory}/emma"
- includes="*.es,*.em" />
- <txt outfile="${project.build.directory}/emma/coverage.txt" />
- <xml outfile="${project.build.directory}/emma/coverage.xml" />
- <html outfile="${project.build.directory}/emma/coverage.html" />
- </report>
- </emma>
- <loadfile property="emma.txt"
- srcFile="${project.build.directory}/emma/coverage.txt"
- failonerror="false" />
- <echo>${emma.txt}</echo>
- </then>
- </if>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>requirements</id>
- <activation>
- <file>
- <exists>${basedir}/requirements.properties</exists>
- </file>
- </activation>
- <properties>
- <requirements.root>${basedir}/../../../requirements
- </requirements.root>
- <requirement.build.root>${requirements.root}/target
- </requirement.build.root>
- </properties>
- <build>
- <plugins>
- <plugin>
- <dependencies>
- <dependency>
- <groupId>ant-contrib</groupId>
- <artifactId>ant-contrib</artifactId>
- <version>1.0b3</version>
- <exclusions>
- <exclusion>
- <groupId>ant</groupId>
- <artifactId>ant</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.3</version>
- <executions>
- <execution>
- <id>download-plugin-requirements</id>
- <phase>generate-test-resources</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
- <if>
- <available file="${requirements.root}" type="dir" />
- <then>
- <property file="requirements.properties" />
- <echo>Requirements build</echo>
- <ant dir="${requirements.root}" inheritAll="true">
- <property name="requirements" value="${requirements}" />
- <property name="settings.offline" value="${settings.offline}" />
- <property name="skipDownload" value="${skipDownload}" />
- </ant>
- </then>
- </if>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <id>jbosstools-nightly-trunk</id>
- <repositories>
- <repository>
- <id>jbosstools-nightly-trunk</id>
- <url>http://download.jboss.org/jbosstools/updates/nightly/trunk/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- </repositories>
- </profile>
-
- </profiles>
- <pluginRepositories>
- <pluginRepository>
- <id>sonatype-maven-central</id>
- <url>http://repository.sonatype.org/content/repositories/central/
- </url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </pluginRepository>
- <pluginRepository>
- <id>maven-snapshots-sonatype</id>
- <url>https://repository.apache.org/content/repositories/maven-snapshots-sonatype/
- </url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </pluginRepository>
- <pluginRepository>
- <id>tycho</id>
- <url>https://repository.sonatype.org/content/repositories/snapshots/
- </url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </pluginRepository>
- <pluginRepository>
- <id>apache-snapshots</id>
- <url>http://repository.apache.org/snapshots/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </pluginRepository>
- </pluginRepositories>
-</project>
15 years, 7 months