JBoss Tools SVN: r24882 - workspace/examples.
by jbosstools-commits@lists.jboss.org
Author: elvisisking
Date: 2010-09-10 14:58:44 -0400 (Fri, 10 Sep 2010)
New Revision: 24882
Added:
workspace/examples/project-examples-3.2.xml
Log:
JBIDE-6627 Add Teiid Designer Project Example. Adding new project-examples.xml for 3.2. Copied the 3.1 file as starting point and added an entry at bottom for Teiid Designer.
Added: workspace/examples/project-examples-3.2.xml
===================================================================
--- workspace/examples/project-examples-3.2.xml (rev 0)
+++ workspace/examples/project-examples-3.2.xml 2010-09-10 18:58:44 UTC (rev 24882)
@@ -0,0 +1,861 @@
+<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>
+
+ <project>
+ <category>Teiid Designer</category>
+ <name>Parts</name>
+ <included-projects>
+ Parts
+ </included-projects>
+ <shortDescription>Parts Model Project Set Example</shortDescription>
+ <description>
+ This is a simple Teiid Designer model project that demonstrates how a view model can be used to create a virtual
+ relational table that joins multiple physical relational tables. The project also contains a Virtual Database (VDB) which
+ contains the project's models, and in a runtime environment, would also contain the needed connection information for the
+ physical sources. VDBs are used by Teiid to access federated data.
+ </description>
+ <size>22645</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/dflorian/teiid-design...
+ </url>
+ </project>
+</projects>
Property changes on: workspace/examples/project-examples-3.2.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 7 months
JBoss Tools SVN: r24881 - workspace/dflorian/teiid-designer.
by jbosstools-commits@lists.jboss.org
Author: elvisisking
Date: 2010-09-10 14:56:45 -0400 (Fri, 10 Sep 2010)
New Revision: 24881
Added:
workspace/dflorian/teiid-designer/.project
workspace/dflorian/teiid-designer/parts_modelProjectSet.zip
Log:
JBIDE-6627 Add Teiid Designer Project Example
Added: workspace/dflorian/teiid-designer/.project
===================================================================
--- workspace/dflorian/teiid-designer/.project (rev 0)
+++ workspace/dflorian/teiid-designer/.project 2010-09-10 18:56:45 UTC (rev 24881)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>teiid-designer</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Property changes on: workspace/dflorian/teiid-designer/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dflorian/teiid-designer/parts_modelProjectSet.zip
===================================================================
(Binary files differ)
Property changes on: workspace/dflorian/teiid-designer/parts_modelProjectSet.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 7 months
JBoss Tools SVN: r24879 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/i18n.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-09-10 14:07:15 -0400 (Fri, 10 Sep 2010)
New Revision: 24879
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/i18n/MainLocaleProvider.java
Log:
fix for JUnit test errors like
[java] org.eclipse.core.internal.resources.ResourceException: Resource '/JsfJbide2016Test' does not exist.
[java] at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:326)
[java] at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:200)
[java] at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:134)
[java] at org.eclipse.core.internal.resources.Project.getDescription(Project.java:379)
[java] at org.jboss.tools.vpe.editor.i18n.MainLocaleProvider.getLocale(MainLocaleProvider.java:83)
[java] at org.jboss.tools.vpe.editor.bundle.BundleMap.init(BundleMap.java:92)
[java] at org.jboss.tools.vpe.editor.VpeController.init(VpeController.java:239)
[java] at org.jboss.tools.vpe.editor.VpeEditorPart$17.load(VpeEditorPart.java:883)
[java] at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.onLoadWindow(MozillaEditor.java:921)
[java] at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.access$16(MozillaEditor.java:917)
[java] at org.jboss.tools.vpe.editor.mozilla.MozillaEditor$12.completed(MozillaEditor.java:648)
[java] at org.eclipse.swt.browser.Mozilla$21.run(Mozilla.java:3262)
[java] at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
[java] at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
[java] at org.eclipse.swt.widgets.Display.syncExec(Display.java:4294)
[java] at org.eclipse.swt.browser.Mozilla.OnStateChange(Mozilla.java:3269)
[java] at org.eclipse.swt.browser.Mozilla$10.method3(Mozilla.java:967)
[java] at org.eclipse.swt.internal.mozilla.XPCOMObject.callback3(XPCOMObject.java:266)
[java] at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
[java] at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2224)
[java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3169)
[java] at org.jboss.tools.test.util.JobUtils.delay(JobUtils.java:61)
[java] at org.jboss.tools.test.util.JobUtils.waitForIdle(JobUtils.java:38)
[java] at org.jboss.tools.test.util.TestProjectProvider.dispose(TestProjectProvider.java:88)
[java] at org.jboss.tools.jsf.jsp.ca.test.CAVarAttributeForDataTableTagJBIDE2016.tearDown(CAVarAttributeForDataTableTagJBIDE2016.java:19)
detail info is provided now in case of exception
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/i18n/MainLocaleProvider.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/i18n/MainLocaleProvider.java 2010-09-10 17:21:27 UTC (rev 24878)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/i18n/MainLocaleProvider.java 2010-09-10 18:07:15 UTC (rev 24879)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.editor.i18n;
+import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@@ -80,19 +81,22 @@
.getFile().getProject();
try {
- String[] natures = project.getDescription().getNatureIds();
- for (String natureId : natures) {
- for (ILocaleProvider provider : getProviders(natureId)) {
- Locale locale = provider.getLocale(editor);
- if (locale != null) {
- localeString = provider.getLocaleString();
- return locale;
+ if(project.isAccessible()) {
+ String[] natures = project.getDescription().getNatureIds();
+ for (String natureId : natures) {
+ for (ILocaleProvider provider : getProviders(natureId)) {
+ Locale locale = provider.getLocale(editor);
+ if (locale != null) {
+ localeString = provider.getLocaleString();
+ return locale;
+ }
}
}
}
} catch (CoreException e) {
VpePlugin.getPluginLog().logError(
- "CoreException occured.", e); //$NON-NLS-1$
+ MessageFormat.format("Error in getting locale for {0}.",((IFileEditorInput)editorInput)
+ .getFile().getLocation().toOSString()), e); //$NON-NLS-1$
}
}
15 years, 7 months
JBoss Tools SVN: r24878 - in branches/jbosstools-3.2.0.M2: as/features/org.jboss.ide.eclipse.as.feature and 23 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-09-10 13:21:27 -0400 (Fri, 10 Sep 2010)
New Revision: 24878
Modified:
branches/jbosstools-3.2.0.M2/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml
branches/jbosstools-3.2.0.M2/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
branches/jbosstools-3.2.0.M2/bpel/features/org.jboss.tools.bpel.feature/feature.xml
branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.core.feature/feature.xml
branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.feature/feature.xml
branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.text.ext.feature/feature.xml
branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.verification.feature/feature.xml
branches/jbosstools-3.2.0.M2/esb/features/org.jboss.tools.esb.feature/feature.xml
branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml
branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.project.examples.feature/feature.xml
branches/jbosstools-3.2.0.M2/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml
branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml
branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml
branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml
branches/jbosstools-3.2.0.M2/jmx/features/org.jboss.tools.jmx.feature/feature.xml
branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml
branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml
branches/jbosstools-3.2.0.M2/portlet/features/org.jboss.tools.portlet.feature/feature.xml
branches/jbosstools-3.2.0.M2/profiler/features/org.jboss.tools.profiler.feature/feature.xml
branches/jbosstools-3.2.0.M2/runtime/features/org.jboss.tools.runtime.feature/feature.xml
branches/jbosstools-3.2.0.M2/smooks/features/org.jboss.tools.smooks.feature/feature.xml
branches/jbosstools-3.2.0.M2/struts/features/org.jboss.tools.struts.feature/feature.xml
branches/jbosstools-3.2.0.M2/tptp/features/org.jboss.tools.tptp.feature/feature.xml
branches/jbosstools-3.2.0.M2/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
branches/jbosstools-3.2.0.M2/ws/features/org.jboss.tools.ws.feature/feature.xml
Log:
https://jira.jboss.org/browse/JBIDE-7037 remove refs to JBT galileo stable update site
Modified: branches/jbosstools-3.2.0.M2/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import plugin="org.apache.ant"/>
<import plugin="org.eclipse.core.commands"/>
Modified: branches/jbosstools-3.2.0.M2/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -24,10 +24,6 @@
Raleigh NC 27606 USA.
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.debug.core"/>
Modified: branches/jbosstools-3.2.0.M2/bpel/features/org.jboss.tools.bpel.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/bpel/features/org.jboss.tools.bpel.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/bpel/features/org.jboss.tools.bpel.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import plugin="org.eclipse.emf.ecore" version="2.4.0" match="compatible"/>
<import plugin="org.eclipse.emf.ecore.xmi" version="2.4.0" match="compatible"/>
Modified: branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.core.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.core.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.core.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -23,10 +23,6 @@
Raleigh NC 27606 USA.
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.common"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -22,11 +22,6 @@
Raleigh NC 27606 USA.
</license>
-
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<includes
id="org.eclipse.wst.common_core.feature"
version="0.0.0"/>
Modified: branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.text.ext.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.text.ext.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.text.ext.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -22,11 +22,6 @@
Raleigh NC 27606 USA.
</license>
-
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import feature="org.jboss.tools.common.core.feature" version="2.0.0" match="greaterOrEqual"/>
</requires>
Modified: branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.verification.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.verification.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/common/features/org.jboss.tools.common.verification.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -22,11 +22,6 @@
Raleigh NC 27606 USA.
</license>
-
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.common.verification"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/esb/features/org.jboss.tools.esb.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/esb/features/org.jboss.tools.esb.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/esb/features/org.jboss.tools.esb.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.esb.core"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.community.project.examples"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.project.examples.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.project.examples.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/examples/features/org.jboss.tools.project.examples.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.project.examples"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.ide.eclipse.freemarker"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.jbpm.convert"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -17,10 +17,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<includes
id="org.jboss.tools.jbpm.common.feature"
version="0.0.0"/>
Modified: branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -17,10 +17,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<includes
id="org.jboss.tools.jbpm.common.feature"
version="0.0.0"/>
Modified: branches/jbosstools-3.2.0.M2/jmx/features/org.jboss.tools.jmx.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/jmx/features/org.jboss.tools.jmx.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/jmx/features/org.jboss.tools.jmx.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -22,14 +22,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
- <!-- not a valid discovery site: must be an update site/repo
- <url>
- <discovery label="Project Home Page" url="http://code.google.com/p/eclipse-jmx/"/>
- </url>
- -->
<requires>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui"/>
Modified: branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -30,10 +30,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable"/>
- </url>
-
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
Modified: branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -17,10 +17,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable"/>
- </url>
-
<includes
id="org.jboss.tools.modeshape.rest.feature"
version="0.0.0"/>
Modified: branches/jbosstools-3.2.0.M2/portlet/features/org.jboss.tools.portlet.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/portlet/features/org.jboss.tools.portlet.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/portlet/features/org.jboss.tools.portlet.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.portlet.core"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/profiler/features/org.jboss.tools.profiler.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/profiler/features/org.jboss.tools.profiler.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/profiler/features/org.jboss.tools.profiler.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -17,12 +17,6 @@
%license
</license>
- <!--
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
- -->
-
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
Modified: branches/jbosstools-3.2.0.M2/runtime/features/org.jboss.tools.runtime.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/runtime/features/org.jboss.tools.runtime.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/runtime/features/org.jboss.tools.runtime.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -425,12 +425,6 @@
END OF TERMS AND CONDITIONS
</license>
- <!-- url element commented out because of
- https://jira.jboss.org/jira/browse/JBDS-1187 Configuration plugin errors in feature.xml file -->
- <!--url-->
- <!-- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/helios/"/> -->
- <!-- url -->
-
<plugin
id="org.jboss.tools.runtime"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/smooks/features/org.jboss.tools.smooks.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/smooks/features/org.jboss.tools.smooks.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/smooks/features/org.jboss.tools.smooks.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.smooks.core"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/struts/features/org.jboss.tools.struts.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/struts/features/org.jboss.tools.struts.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/struts/features/org.jboss.tools.struts.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,11 +18,7 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
- <plugin
+ <plugin
id="org.jboss.tools.struts"
download-size="0"
install-size="0"
Modified: branches/jbosstools-3.2.0.M2/tptp/features/org.jboss.tools.tptp.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/tptp/features/org.jboss.tools.tptp.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/tptp/features/org.jboss.tools.tptp.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -17,10 +17,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
-
<requires>
<import feature="org.eclipse.tptp.platform.profile.server" version="4.5.0" match="greaterOrEqual"/>
<import feature="org.eclipse.tptp.platform.instrumentation.ui" version="4.3.0" match="greaterOrEqual"/>
Modified: branches/jbosstools-3.2.0.M2/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
-
<plugin
id="org.mozilla.xpcom"
download-size="0"
Modified: branches/jbosstools-3.2.0.M2/ws/features/org.jboss.tools.ws.feature/feature.xml
===================================================================
--- branches/jbosstools-3.2.0.M2/ws/features/org.jboss.tools.ws.feature/feature.xml 2010-09-10 17:13:20 UTC (rev 24877)
+++ branches/jbosstools-3.2.0.M2/ws/features/org.jboss.tools.ws.feature/feature.xml 2010-09-10 17:21:27 UTC (rev 24878)
@@ -18,10 +18,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
-
<plugin
id="org.jboss.tools.ws.core"
download-size="0"
15 years, 7 months
JBoss Tools SVN: r24877 - in trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage: util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 13:13:20 -0400 (Fri, 10 Sep 2010)
New Revision: 24877
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java
Log:
[JBIDE-7035] switching from custom component recognition to feature based recognition
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java 2010-09-10 17:04:13 UTC (rev 24876)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java 2010-09-10 17:13:20 UTC (rev 24877)
@@ -13,7 +13,10 @@
import java.util.Collection;
import java.util.Set;
import java.util.TreeSet;
+import java.util.regex.Pattern;
+import org.eclipse.core.runtime.IBundleGroup;
+import org.eclipse.core.runtime.IBundleGroupProvider;
import org.jboss.tools.usage.util.BundleUtils;
import org.jboss.tools.usage.util.CollectionFilterUtils;
import org.jboss.tools.usage.util.ICollectionEntryFilter;
@@ -231,7 +234,7 @@
private JBossComponents() {
// inhibit instantiation
}
-
+
/**
* Returns the jboss components that the given bundles are members of
*
@@ -250,4 +253,21 @@
BundleUtils.getBundles(compositeFilter, bundles);
return jbossComponentNames;
}
+
+ private static class JBossBundleGroupNameFilter implements ICollectionEntryFilter<IBundleGroup> {
+
+ Pattern pattern = Pattern.compile(JBOSS_TOOLS_BUNDLES_PREFIX);
+
+ public boolean matches(IBundleGroup bundleGroup) {
+ return pattern.matcher(bundleGroup.getName()).matches();
+ }
+ }
+
+ public static Collection<String> getComponentIds(IBundleGroupProvider[] bundleGroupProviders) {
+ Set<String> components = new TreeSet<String>();
+ for (IBundleGroupProvider bundleGroupProvider : bundleGroupProviders) {
+ CollectionFilterUtils.filter(new JBossBundleGroupNameFilter(), bundleGroupProvider.getBundleGroups());
+ }
+ return components;
+ }
}
\ No newline at end of file
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java 2010-09-10 17:04:13 UTC (rev 24876)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java 2010-09-10 17:13:20 UTC (rev 24877)
@@ -10,8 +10,7 @@
******************************************************************************/
package org.jboss.tools.usage.util;
-import java.util.ArrayList;
-import java.util.List;
+import java.util.Collection;
import java.util.regex.Pattern;
import org.eclipse.core.runtime.Assert;
@@ -29,14 +28,8 @@
* @param bundles the bundles
* @return the bundles that match the given filter
*/
- public static List<Bundle> getBundles(ICollectionEntryFilter<Bundle> filter, Bundle[] bundles) {
- List<Bundle> bundleList = new ArrayList<Bundle>();
- for (Bundle bundle : bundles) {
- if (filter.matches(bundle)) {
- bundleList.add(bundle);
- }
- }
- return bundleList;
+ public static Collection<Bundle> getBundles(ICollectionEntryFilter<Bundle> filter, Bundle[] bundles) {
+ return CollectionFilterUtils.filter(filter, bundles);
}
/**
@@ -46,7 +39,7 @@
* @param bundles the bundles
* @return the bundles
*/
- public static List<Bundle> getBundles(String bundleSymbolicNameRegex, Bundle[] bundles) {
+ public static Collection<Bundle> getBundles(String bundleSymbolicNameRegex, Bundle[] bundles) {
return getBundles(new BundleSymbolicNameFilter(bundleSymbolicNameRegex), bundles);
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java 2010-09-10 17:04:13 UTC (rev 24876)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java 2010-09-10 17:13:20 UTC (rev 24877)
@@ -10,7 +10,11 @@
******************************************************************************/
package org.jboss.tools.usage.util;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
/**
* @author Andre Dietisheim
*/
@@ -47,4 +51,22 @@
return true;
}
}
+
+ /**
+ * Returns the entries that match the given filter.
+ *
+ * @param filter the filter to match the available entries against
+ * @param entries the entries to filter
+ * @return the entries that match the given filter
+ */
+ public static <E> Collection<E> filter(ICollectionEntryFilter<E> filter, E[] entries) {
+ List<E> filteredList = new ArrayList<E>();
+ for (E entry : entries) {
+ if (filter.matches(entry)) {
+ filteredList.add(entry);
+ }
+ }
+ return filteredList;
+ }
+
}
15 years, 7 months
JBoss Tools SVN: r24876 - in trunk: as/features/org.jboss.ide.eclipse.as.feature and 23 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-09-10 13:04:13 -0400 (Fri, 10 Sep 2010)
New Revision: 24876
Modified:
trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml
trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml
trunk/common/features/org.jboss.tools.common.core.feature/feature.xml
trunk/common/features/org.jboss.tools.common.feature/feature.xml
trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml
trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml
trunk/esb/features/org.jboss.tools.esb.feature/feature.xml
trunk/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml
trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml
trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml
trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml
trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml
trunk/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml
trunk/jmx/features/org.jboss.tools.jmx.feature/feature.xml
trunk/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml
trunk/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml
trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml
trunk/profiler/features/org.jboss.tools.profiler.feature/feature.xml
trunk/runtime/features/org.jboss.tools.runtime.feature/feature.xml
trunk/smooks/features/org.jboss.tools.smooks.feature/feature.xml
trunk/struts/features/org.jboss.tools.struts.feature/feature.xml
trunk/tptp/features/org.jboss.tools.tptp.feature/feature.xml
trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
trunk/ws/features/org.jboss.tools.ws.feature/feature.xml
Log:
https://jira.jboss.org/browse/JBIDE-7037 remove refs to JBT galileo stable update site
Modified: trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml
===================================================================
--- trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import plugin="org.apache.ant"/>
<import plugin="org.eclipse.core.commands"/>
Modified: trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
===================================================================
--- trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -24,10 +24,6 @@
Raleigh NC 27606 USA.
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.debug.core"/>
Modified: trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml
===================================================================
--- trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import plugin="org.eclipse.emf.ecore" version="2.4.0" match="compatible"/>
<import plugin="org.eclipse.emf.ecore.xmi" version="2.4.0" match="compatible"/>
Modified: trunk/common/features/org.jboss.tools.common.core.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.core.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/common/features/org.jboss.tools.common.core.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -23,10 +23,6 @@
Raleigh NC 27606 USA.
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.common"
download-size="0"
Modified: trunk/common/features/org.jboss.tools.common.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/common/features/org.jboss.tools.common.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -22,11 +22,6 @@
Raleigh NC 27606 USA.
</license>
-
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<includes
id="org.eclipse.wst.common_core.feature"
version="0.0.0"/>
Modified: trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -22,11 +22,6 @@
Raleigh NC 27606 USA.
</license>
-
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<requires>
<import feature="org.jboss.tools.common.core.feature" version="2.0.0" match="greaterOrEqual"/>
</requires>
Modified: trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -22,11 +22,6 @@
Raleigh NC 27606 USA.
</license>
-
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.common.verification"
download-size="0"
Modified: trunk/esb/features/org.jboss.tools.esb.feature/feature.xml
===================================================================
--- trunk/esb/features/org.jboss.tools.esb.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/esb/features/org.jboss.tools.esb.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.esb.core"
download-size="0"
Modified: trunk/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml
===================================================================
--- trunk/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/examples/features/org.jboss.tools.community.project.examples.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.community.project.examples"
download-size="0"
Modified: trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml
===================================================================
--- trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.project.examples"
download-size="0"
Modified: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml
===================================================================
--- trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.ide.eclipse.freemarker"
download-size="0"
Modified: trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.jbpm.convert"
download-size="0"
Modified: trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -17,10 +17,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<includes
id="org.jboss.tools.jbpm.common.feature"
version="0.0.0"/>
Modified: trunk/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/jbpm/features/org.jboss.tools.jbpm4.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -17,10 +17,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<includes
id="org.jboss.tools.jbpm.common.feature"
version="0.0.0"/>
Modified: trunk/jmx/features/org.jboss.tools.jmx.feature/feature.xml
===================================================================
--- trunk/jmx/features/org.jboss.tools.jmx.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/jmx/features/org.jboss.tools.jmx.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -22,14 +22,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
- <!-- not a valid discovery site: must be an update site/repo
- <url>
- <discovery label="Project Home Page" url="http://code.google.com/p/eclipse-jmx/"/>
- </url>
- -->
<requires>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui"/>
Modified: trunk/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml
===================================================================
--- trunk/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/modeshape/features/org.jboss.tools.modeshape.rest.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -30,10 +30,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable"/>
- </url>
-
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
Modified: trunk/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml
===================================================================
--- trunk/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/modeshape/features/org.jboss.tools.modeshape.rest.sdk.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -17,10 +17,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable"/>
- </url>
-
<includes
id="org.jboss.tools.modeshape.rest.feature"
version="0.0.0"/>
Modified: trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml
===================================================================
--- trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/portlet/features/org.jboss.tools.portlet.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.portlet.core"
download-size="0"
Modified: trunk/profiler/features/org.jboss.tools.profiler.feature/feature.xml
===================================================================
--- trunk/profiler/features/org.jboss.tools.profiler.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/profiler/features/org.jboss.tools.profiler.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -17,12 +17,6 @@
%license
</license>
- <!--
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
- -->
-
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
Modified: trunk/runtime/features/org.jboss.tools.runtime.feature/feature.xml
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/runtime/features/org.jboss.tools.runtime.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -425,12 +425,6 @@
END OF TERMS AND CONDITIONS
</license>
- <!-- url element commented out because of
- https://jira.jboss.org/jira/browse/JBDS-1187 Configuration plugin errors in feature.xml file -->
- <!--url-->
- <!-- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/helios/"/> -->
- <!-- url -->
-
<plugin
id="org.jboss.tools.runtime"
download-size="0"
Modified: trunk/smooks/features/org.jboss.tools.smooks.feature/feature.xml
===================================================================
--- trunk/smooks/features/org.jboss.tools.smooks.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/smooks/features/org.jboss.tools.smooks.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.smooks.core"
download-size="0"
Modified: trunk/struts/features/org.jboss.tools.struts.feature/feature.xml
===================================================================
--- trunk/struts/features/org.jboss.tools.struts.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/struts/features/org.jboss.tools.struts.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <!-- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url> -->
-
<plugin
id="org.jboss.tools.struts"
download-size="0"
Modified: trunk/tptp/features/org.jboss.tools.tptp.feature/feature.xml
===================================================================
--- trunk/tptp/features/org.jboss.tools.tptp.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/tptp/features/org.jboss.tools.tptp.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -17,10 +17,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
-
<requires>
<import feature="org.eclipse.tptp.platform.profile.server" version="4.5.0" match="greaterOrEqual"/>
<import feature="org.eclipse.tptp.platform.instrumentation.ui" version="4.3.0" match="greaterOrEqual"/>
Modified: trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
===================================================================
--- trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
-
<plugin
id="org.mozilla.xpcom"
download-size="0"
Modified: trunk/ws/features/org.jboss.tools.ws.feature/feature.xml
===================================================================
--- trunk/ws/features/org.jboss.tools.ws.feature/feature.xml 2010-09-10 16:49:22 UTC (rev 24875)
+++ trunk/ws/features/org.jboss.tools.ws.feature/feature.xml 2010-09-10 17:04:13 UTC (rev 24876)
@@ -18,10 +18,6 @@
%license
</license>
- <url>
- <update label="%updateSiteName" url="http://download.jboss.org/jbosstools/updates/stable/galileo/"/>
- </url>
-
<plugin
id="org.jboss.tools.ws.core"
download-size="0"
15 years, 7 months
JBoss Tools SVN: r24875 - trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 12:49:22 -0400 (Fri, 10 Sep 2010)
New Revision: 24875
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
Log:
[JBIDE-7035] Refactored bundle filter to generic collection filter
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java 2010-09-10 16:26:43 UTC (rev 24874)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java 2010-09-10 16:49:22 UTC (rev 24875)
@@ -14,13 +14,15 @@
import java.util.Set;
import java.util.TreeSet;
+import org.jboss.tools.usage.util.BundleUtils;
+import org.jboss.tools.usage.util.CollectionFilterUtils;
import org.jboss.tools.usage.util.ICollectionEntryFilter;
import org.osgi.framework.Bundle;
/**
* @author Andre Dietisheim
*/
-public class JBossComponents implements ICollectionEntryFilter<Bundle> {
+public class JBossComponents {
public enum BundleGroup {
ARCHIVES("org.jboss.ide.eclipse.archives.core",
@@ -200,24 +202,52 @@
}
}
- private Set<String> jbossBundleGroups = new TreeSet<String>();
+ private static final String JBOSS_TOOLS_BUNDLES_PREFIX = "org\\.jboss\\.tools.+"; //$NON-NLS-1$
- /**
- * Collects the bundle groups the bundles it gets belong
- * to. Always returns <tt>true</tt> (does match) while collecting
- */
- public boolean matches(Bundle bundle) {
- String bundleName = bundle.getSymbolicName();
- for (BundleGroup bundleGroup : BundleGroup.values()) {
- if (bundleGroup.isMember(bundleName)) {
- jbossBundleGroups.add(bundleGroup.name());
- break;
+ private static class JBossComponentBundlesFilter implements ICollectionEntryFilter<Bundle> {
+
+ private Collection<String> componentNames;
+
+ private JBossComponentBundlesFilter(Collection<String> componentNames) {
+ this.componentNames = componentNames;
+ }
+
+ /**
+ * Collects the bundle groups the bundles it gets belong to. Always
+ * returns <tt>true</tt> (does match) while collecting
+ */
+ public boolean matches(Bundle bundle) {
+ String bundleName = bundle.getSymbolicName();
+ for (BundleGroup bundleGroup : BundleGroup.values()) {
+ if (bundleGroup.isMember(bundleName)) {
+ componentNames.add(bundleGroup.name());
+ break;
+ }
}
+ return true;
}
- return true;
}
- public Collection<String> getBundleGroupIds() {
- return jbossBundleGroups;
+ private JBossComponents() {
+ // inhibit instantiation
}
+
+ /**
+ * Returns the jboss components that the given bundles are members of
+ *
+ * @param bundles
+ * the bundles to check
+ * @return
+ */
+ public static Collection<String> getComponentIds(Bundle[] bundles) {
+ Set<String> jbossComponentNames = new TreeSet<String>();
+ ICollectionEntryFilter<Bundle> jbossToolsFilter = new BundleUtils.BundleSymbolicNameFilter(
+ JBOSS_TOOLS_BUNDLES_PREFIX);
+ @SuppressWarnings("unchecked")
+ ICollectionEntryFilter<Bundle> compositeFilter = new CollectionFilterUtils.CompositeCollectionFilter<Bundle>(
+ jbossToolsFilter
+ , new JBossComponentBundlesFilter(jbossComponentNames));
+ BundleUtils.getBundles(compositeFilter, bundles);
+ return jbossComponentNames;
+ }
}
\ No newline at end of file
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 16:26:43 UTC (rev 24874)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 16:49:22 UTC (rev 24875)
@@ -10,12 +10,11 @@
******************************************************************************/
package org.jboss.tools.usage.reporting;
+import java.util.Collection;
+
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.jboss.tools.usage.googleanalytics.eclipse.AbstractEclipseEnvironment;
import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
-import org.jboss.tools.usage.util.BundleUtils;
-import org.jboss.tools.usage.util.CollectionFilterUtils;
-import org.jboss.tools.usage.util.ICollectionEntryFilter;
import org.osgi.framework.Bundle;
/**
@@ -23,7 +22,6 @@
*/
public class ReportingEclipseEnvironment extends AbstractEclipseEnvironment {
- private static final String JBOSS_TOOLS_BUNDLES_PREFIX = "org\\.jboss\\.tools.+"; //$NON-NLS-1$
private static final char BUNDLE_GROUP_DELIMITER = '-';
public ReportingEclipseEnvironment(String accountName, String hostName, IEclipsePreferences preferences) {
@@ -32,25 +30,18 @@
@Override
public String getKeyword() {
- JBossComponents jbossBundleGroups = new JBossComponents();
- ICollectionEntryFilter<Bundle> jbossToolsFilter = new BundleUtils.BundleSymbolicNameFilter(JBOSS_TOOLS_BUNDLES_PREFIX);
- ICollectionEntryFilter<Bundle> compositeFilter = new CollectionFilterUtils.CompositeCollectionFilter<Bundle>(
- jbossToolsFilter
- , jbossBundleGroups);
- BundleUtils.getBundles(compositeFilter, getBundles());
-
- return bundleGroupsToKeywordString(jbossBundleGroups);
+ return bundleGroupsToKeywordString(JBossComponents.getComponentIds(getBundles()));
}
protected Bundle[] getBundles() {
return JBossToolsUsageActivator.getDefault().getBundle().getBundleContext().getBundles();
}
- private String bundleGroupsToKeywordString(JBossComponents jbossBundleGroups) {
+ private String bundleGroupsToKeywordString(Collection<String> jbossComponentNames) {
char delimiter = BUNDLE_GROUP_DELIMITER;
StringBuilder builder = new StringBuilder();
- for (String bundleGroupId : jbossBundleGroups.getBundleGroupIds()) {
- builder.append(bundleGroupId)
+ for (String componentName : jbossComponentNames) {
+ builder.append(componentName)
.append(delimiter);
}
return builder.toString();
15 years, 7 months
JBoss Tools SVN: r24874 - in trunk/usage: plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 12:26:43 -0400 (Fri, 10 Sep 2010)
New Revision: 24874
Added:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/ICollectionEntryFilter.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/RepportingEclipseEnvironmentFakeSingleton.java
Removed:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossBundleGroups.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseEnvironmentFakeSingleton.java
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java
Log:
[JBIDE-7035] Refactored bundle filter to generic collection filter
Deleted: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossBundleGroups.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossBundleGroups.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossBundleGroups.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.usage.reporting;
-
-import java.util.Collection;
-import java.util.Set;
-import java.util.TreeSet;
-
-import org.jboss.tools.usage.util.BundleUtils.IBundleEntryFilter;
-import org.osgi.framework.Bundle;
-
-/**
- * @author Andre Dietisheim
- */
-public class JBossBundleGroups implements IBundleEntryFilter {
-
- public enum BundleGroup {
- ARCHIVES("org.jboss.ide.eclipse.archives.core",
- "org.jboss.ide.eclipse.archives.jdt.integration",
- "org.jboss.ide.eclipse.archives.ui"
- )
- , AS("org.jboss.ide.eclipse.archives.webtools",
- "org.jboss.ide.eclipse.as.classpath.core",
- "org.jboss.ide.eclipse.as.classpath.ui",
- "org.jboss.ide.eclipse.as.core",
- "org.jboss.ide.eclipse.as.doc.user",
- "org.jboss.ide.eclipse.as.ssh",
- "org.jboss.ide.eclipse.as.ui",
- "org.jboss.ide.eclipse.as.ui.mbeans",
- "org.jboss.ide.eclipse.as.wtp.core",
- "org.jboss.ide.eclipse.as.wtp.ui")
- , BIRT("org.jboss.tools.birt.core",
- "org.jboss.tools.birt.oda",
- "org.jboss.tools.birt.oda.ui")
- , BPEL("org.eclipse.bpel.apache.ode.deploy.model",
- "org.eclipse.bpel.apache.ode.deploy.ui",
- "org.eclipse.bpel.common.model",
- "org.eclipse.bpel.common.ui",
- "org.eclipse.bpel.model",
- "org.eclipse.bpel.ui",
- "org.eclipse.bpel.validator",
- "org.eclipse.bpel.wsil.model",
- "org.eclipse.bpel.xpath10",
- "org.jboss.tools.bpel.cheatsheet",
- "org.jboss.tools.bpel.runtimes")
- , CDI("org.jboss.tools.cdi.core",
- "org.jboss.tools.cdi.text.ext",
- "org.jboss.tools.cdi.ui",
- "org.jboss.tools.cdi.xml",
- "org.jboss.tools.cdi.xml.ui")
- , DELTACLOUD("org.jboss.tools.deltacloud.core",
- "org.jboss.tools.deltacloud.ui")
- , DROOLS("org.drools.eclipse",
- "org.drools.eclipse.task",
- "org.eclipse.webdav",
- "org.guvnor.tools",
- "org.jboss.tools.flow.ruleflow")
- , ESB("org.jboss.tools.esb.core",
- "org.jboss.tools.esb.project.core",
- "org.jboss.tools.esb.project.ui",
- "org.jboss.tools.esb.ui",
- "org.jboss.tools.esb.validator")
- , FLOW("org.jboss.tools.flow.common")
- , FREEMARKER("org.jboss.ide.eclipse.freemarker")
- , GWT("org.jboss.tools.gwt.core",
- "org.jboss.tools.gwt.ui")
- , HIBERNATETOOLS("org.hibernate.eclipse",
- "org.hibernate.eclipse.console",
- "org.hibernate.eclipse.help",
- "org.hibernate.eclipse.jdt.apt.ui",
- "org.hibernate.eclipse.jdt.ui",
- "org.hibernate.eclipse.mapper",
- "org.jboss.tools.hibernate.jpt.core",
- "org.jboss.tools.hibernate.jpt.ui",
- "org.jboss.tools.hibernate.ui",
- "org.jboss.tools.hibernate.xml",
- "org.jboss.tools.hibernate.xml.ui")
- , JBPM("org.jboss.tools.flow.jpdl4",
- "org.jboss.tools.flow.jpdl4.multipage",
- "org.jboss.tools.jbpm.common",
- "org.jboss.tools.jbpm.convert",
- "org.jbpm.gd.jpdl")
- , JMX("org.jboss.tools.jmx.core",
- "org.jboss.tools.jmx.ui")
- , JSF("org.jboss.tools.jsf",
- "org.jboss.tools.jsf.doc.user",
- "org.jboss.tools.jsf.text.ext",
- "org.jboss.tools.jsf.text.ext.facelets",
- "org.jboss.tools.jsf.text.ext.richfaces",
- "org.jboss.tools.jsf.ui",
- "org.jboss.tools.jsf.verification",
- "org.jboss.tools.jsf.vpe.ajax4jsf",
- "org.jboss.tools.jsf.vpe.facelets",
- "org.jboss.tools.jsf.vpe.jbpm",
- "org.jboss.tools.jsf.vpe.jsf",
- "org.jboss.tools.jsf.vpe.jstl",
- "org.jboss.tools.jsf.vpe.myfaces",
- "org.jboss.tools.jsf.vpe.richfaces",
- "org.jboss.tools.jsf.vpe.seam")
- , JST("org.jboss.tools.jst.css",
- "org.jboss.tools.jst.firstrun",
- "org.jboss.tools.jst.jsp",
- "org.jboss.tools.jst.text.ext",
- "org.jboss.tools.jst.web",
- "org.jboss.tools.jst.web.kb",
- "org.jboss.tools.jst.web.tiles",
- "org.jboss.tools.jst.web.tiles.ui",
- "org.jboss.tools.jst.web.ui",
- "org.jboss.tools.jst.web.verification")
- , LABS("org.jboss.tools.labs.pde.sourceprovider")
- , MAVEN("org.jboss.tools.maven.cdi",
- "org.jboss.tools.maven.core",
- "org.jboss.tools.maven.hibernate",
- "org.jboss.tools.maven.jsf",
- "org.jboss.tools.maven.portlet",
- "org.jboss.tools.maven.seam",
- "org.jboss.tools.maven.ui")
- , MODESHAPE("org.jboss.tools.modeshape.rest")
- , PORTLET("org.jboss.tools.portlet.core",
- "org.jboss.tools.portlet.ui")
- , PROFILER("org.jboss.tools.profiler.ui")
- , RUNTIME("org.jboss.tools.runtime")
- , SEAM("org.jboss.tools.seam.core",
- "org.jboss.tools.seam.doc.user",
- "org.jboss.tools.seam.pages.xml",
- "org.jboss.tools.seam.text.ext",
- "org.jboss.tools.seam.ui",
- "org.jboss.tools.seam.ui.pages",
- "org.jboss.tools.seam.xml",
- "org.jboss.tools.seam.xml.ui")
- , SMOOKS("org.jboss.tools.smooks.core",
- "org.jboss.tools.smooks.runtime",
- "org.jboss.tools.smooks.templating",
- "org.jboss.tools.smooks.ui")
- , STRUTS("org.jboss.tools.struts",
- "org.jboss.tools.struts.text.ext",
- "org.jboss.tools.struts.ui",
- "org.jboss.tools.struts.validator.ui",
- "org.jboss.tools.struts.verification",
- "org.jboss.tools.struts.vpe.struts")
- , TPTP("org.jboss.tools.eclipse.as.tptp")
- , VPE("org.jboss.tools.vpe",
- "org.jboss.tools.vpe.docbook",
- "org.jboss.tools.vpe.html",
- "org.jboss.tools.vpe.jsp",
- "org.jboss.tools.vpe.resref",
- "org.jboss.tools.vpe.spring",
- "org.jboss.tools.vpe.ui.palette",
- "org.jboss.tools.vpe.xulrunner",
- "org.jboss.tools.xulrunner",
- "org.jboss.tools.xulrunner.initializer")
- , WORKINGSET("org.jboss.tools.workingset.core",
- "org.jboss.tools.workingset.ui")
- , WS("rg.jboss.tools.ws.core",
- "org.jboss.tools.ws.creation.core",
- "org.jboss.tools.ws.creation.ui",
- "org.jboss.tools.ws.ui")
- , XULRUNNER("org.mozilla.xpcom",
- "org.mozilla.xulrunner.carbon.macosx",
- "org.mozilla.xulrunner.cocoa.macosx",
- "org.mozilla.xulrunner.gtk.linux.x86",
- "org.mozilla.xulrunner.gtk.linux.x86_64",
- "org.mozilla.xulrunner.win32.win32.x86");
-
- private String[] bundleNames;
-
- BundleGroup(String... bundleNames) {
- this.bundleNames = bundleNames;
- }
-
- /**
- * Returns <tt>true</tt> if the given bundle name is a member of this
- * bundle group.
- *
- * @param bundleName
- * the bundle name to check whether it's a member of this
- * group of bundles.
- * @return <tt>true</tt>, if the given bundle
- */
- public boolean isMember(String bundleName) {
- boolean isMember = false;
- for (String name : bundleNames) {
- if (name.equals(bundleName)) {
- return true;
- }
- }
- return isMember;
- }
-
- public void addGroupIdTo(Collection<String> bundleGroupIds) {
- bundleGroupIds.add(name());
- }
- }
-
- private Set<String> jbossBundleGroups = new TreeSet<String>();
-
- /**
- * Collects the bundle groups the bundles it gets belong
- * to. Always returns <tt>true</tt> (does match) while collecting
- */
- public boolean matches(Bundle bundle) {
- String bundleName = bundle.getSymbolicName();
- for (BundleGroup bundleGroup : BundleGroup.values()) {
- if (bundleGroup.isMember(bundleName)) {
- jbossBundleGroups.add(bundleGroup.name());
- break;
- }
- }
- return true;
- }
-
- public Collection<String> getBundleGroupIds() {
- return jbossBundleGroups;
- }
-}
\ No newline at end of file
Copied: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java (from rev 24574, trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossBundleGroups.java)
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java (rev 0)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/JBossComponents.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -0,0 +1,223 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.reporting;
+
+import java.util.Collection;
+import java.util.Set;
+import java.util.TreeSet;
+
+import org.jboss.tools.usage.util.ICollectionEntryFilter;
+import org.osgi.framework.Bundle;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class JBossComponents implements ICollectionEntryFilter<Bundle> {
+
+ public enum BundleGroup {
+ ARCHIVES("org.jboss.ide.eclipse.archives.core",
+ "org.jboss.ide.eclipse.archives.jdt.integration",
+ "org.jboss.ide.eclipse.archives.ui"
+ )
+ , AS("org.jboss.ide.eclipse.archives.webtools",
+ "org.jboss.ide.eclipse.as.classpath.core",
+ "org.jboss.ide.eclipse.as.classpath.ui",
+ "org.jboss.ide.eclipse.as.core",
+ "org.jboss.ide.eclipse.as.doc.user",
+ "org.jboss.ide.eclipse.as.ssh",
+ "org.jboss.ide.eclipse.as.ui",
+ "org.jboss.ide.eclipse.as.ui.mbeans",
+ "org.jboss.ide.eclipse.as.wtp.core",
+ "org.jboss.ide.eclipse.as.wtp.ui")
+ , BIRT("org.jboss.tools.birt.core",
+ "org.jboss.tools.birt.oda",
+ "org.jboss.tools.birt.oda.ui")
+ , BPEL("org.eclipse.bpel.apache.ode.deploy.model",
+ "org.eclipse.bpel.apache.ode.deploy.ui",
+ "org.eclipse.bpel.common.model",
+ "org.eclipse.bpel.common.ui",
+ "org.eclipse.bpel.model",
+ "org.eclipse.bpel.ui",
+ "org.eclipse.bpel.validator",
+ "org.eclipse.bpel.wsil.model",
+ "org.eclipse.bpel.xpath10",
+ "org.jboss.tools.bpel.cheatsheet",
+ "org.jboss.tools.bpel.runtimes")
+ , CDI("org.jboss.tools.cdi.core",
+ "org.jboss.tools.cdi.text.ext",
+ "org.jboss.tools.cdi.ui",
+ "org.jboss.tools.cdi.xml",
+ "org.jboss.tools.cdi.xml.ui")
+ , DELTACLOUD("org.jboss.tools.deltacloud.core",
+ "org.jboss.tools.deltacloud.ui")
+ , DROOLS("org.drools.eclipse",
+ "org.drools.eclipse.task",
+ "org.eclipse.webdav",
+ "org.guvnor.tools",
+ "org.jboss.tools.flow.ruleflow")
+ , ESB("org.jboss.tools.esb.core",
+ "org.jboss.tools.esb.project.core",
+ "org.jboss.tools.esb.project.ui",
+ "org.jboss.tools.esb.ui",
+ "org.jboss.tools.esb.validator")
+ , FLOW("org.jboss.tools.flow.common")
+ , FREEMARKER("org.jboss.ide.eclipse.freemarker")
+ , GWT("org.jboss.tools.gwt.core",
+ "org.jboss.tools.gwt.ui")
+ , HIBERNATETOOLS("org.hibernate.eclipse",
+ "org.hibernate.eclipse.console",
+ "org.hibernate.eclipse.help",
+ "org.hibernate.eclipse.jdt.apt.ui",
+ "org.hibernate.eclipse.jdt.ui",
+ "org.hibernate.eclipse.mapper",
+ "org.jboss.tools.hibernate.jpt.core",
+ "org.jboss.tools.hibernate.jpt.ui",
+ "org.jboss.tools.hibernate.ui",
+ "org.jboss.tools.hibernate.xml",
+ "org.jboss.tools.hibernate.xml.ui")
+ , JBPM("org.jboss.tools.flow.jpdl4",
+ "org.jboss.tools.flow.jpdl4.multipage",
+ "org.jboss.tools.jbpm.common",
+ "org.jboss.tools.jbpm.convert",
+ "org.jbpm.gd.jpdl")
+ , JMX("org.jboss.tools.jmx.core",
+ "org.jboss.tools.jmx.ui")
+ , JSF("org.jboss.tools.jsf",
+ "org.jboss.tools.jsf.doc.user",
+ "org.jboss.tools.jsf.text.ext",
+ "org.jboss.tools.jsf.text.ext.facelets",
+ "org.jboss.tools.jsf.text.ext.richfaces",
+ "org.jboss.tools.jsf.ui",
+ "org.jboss.tools.jsf.verification",
+ "org.jboss.tools.jsf.vpe.ajax4jsf",
+ "org.jboss.tools.jsf.vpe.facelets",
+ "org.jboss.tools.jsf.vpe.jbpm",
+ "org.jboss.tools.jsf.vpe.jsf",
+ "org.jboss.tools.jsf.vpe.jstl",
+ "org.jboss.tools.jsf.vpe.myfaces",
+ "org.jboss.tools.jsf.vpe.richfaces",
+ "org.jboss.tools.jsf.vpe.seam")
+ , JST("org.jboss.tools.jst.css",
+ "org.jboss.tools.jst.firstrun",
+ "org.jboss.tools.jst.jsp",
+ "org.jboss.tools.jst.text.ext",
+ "org.jboss.tools.jst.web",
+ "org.jboss.tools.jst.web.kb",
+ "org.jboss.tools.jst.web.tiles",
+ "org.jboss.tools.jst.web.tiles.ui",
+ "org.jboss.tools.jst.web.ui",
+ "org.jboss.tools.jst.web.verification")
+ , LABS("org.jboss.tools.labs.pde.sourceprovider")
+ , MAVEN("org.jboss.tools.maven.cdi",
+ "org.jboss.tools.maven.core",
+ "org.jboss.tools.maven.hibernate",
+ "org.jboss.tools.maven.jsf",
+ "org.jboss.tools.maven.portlet",
+ "org.jboss.tools.maven.seam",
+ "org.jboss.tools.maven.ui")
+ , MODESHAPE("org.jboss.tools.modeshape.rest")
+ , PORTLET("org.jboss.tools.portlet.core",
+ "org.jboss.tools.portlet.ui")
+ , PROFILER("org.jboss.tools.profiler.ui")
+ , RUNTIME("org.jboss.tools.runtime")
+ , SEAM("org.jboss.tools.seam.core",
+ "org.jboss.tools.seam.doc.user",
+ "org.jboss.tools.seam.pages.xml",
+ "org.jboss.tools.seam.text.ext",
+ "org.jboss.tools.seam.ui",
+ "org.jboss.tools.seam.ui.pages",
+ "org.jboss.tools.seam.xml",
+ "org.jboss.tools.seam.xml.ui")
+ , SMOOKS("org.jboss.tools.smooks.core",
+ "org.jboss.tools.smooks.runtime",
+ "org.jboss.tools.smooks.templating",
+ "org.jboss.tools.smooks.ui")
+ , STRUTS("org.jboss.tools.struts",
+ "org.jboss.tools.struts.text.ext",
+ "org.jboss.tools.struts.ui",
+ "org.jboss.tools.struts.validator.ui",
+ "org.jboss.tools.struts.verification",
+ "org.jboss.tools.struts.vpe.struts")
+ , TPTP("org.jboss.tools.eclipse.as.tptp")
+ , VPE("org.jboss.tools.vpe",
+ "org.jboss.tools.vpe.docbook",
+ "org.jboss.tools.vpe.html",
+ "org.jboss.tools.vpe.jsp",
+ "org.jboss.tools.vpe.resref",
+ "org.jboss.tools.vpe.spring",
+ "org.jboss.tools.vpe.ui.palette",
+ "org.jboss.tools.vpe.xulrunner",
+ "org.jboss.tools.xulrunner",
+ "org.jboss.tools.xulrunner.initializer")
+ , WORKINGSET("org.jboss.tools.workingset.core",
+ "org.jboss.tools.workingset.ui")
+ , WS("rg.jboss.tools.ws.core",
+ "org.jboss.tools.ws.creation.core",
+ "org.jboss.tools.ws.creation.ui",
+ "org.jboss.tools.ws.ui")
+ , XULRUNNER("org.mozilla.xpcom",
+ "org.mozilla.xulrunner.carbon.macosx",
+ "org.mozilla.xulrunner.cocoa.macosx",
+ "org.mozilla.xulrunner.gtk.linux.x86",
+ "org.mozilla.xulrunner.gtk.linux.x86_64",
+ "org.mozilla.xulrunner.win32.win32.x86");
+
+ private String[] bundleNames;
+
+ BundleGroup(String... bundleNames) {
+ this.bundleNames = bundleNames;
+ }
+
+ /**
+ * Returns <tt>true</tt> if the given bundle name is a member of this
+ * bundle group.
+ *
+ * @param bundleName
+ * the bundle name to check whether it's a member of this
+ * group of bundles.
+ * @return <tt>true</tt>, if the given bundle
+ */
+ public boolean isMember(String bundleName) {
+ boolean isMember = false;
+ for (String name : bundleNames) {
+ if (name.equals(bundleName)) {
+ return true;
+ }
+ }
+ return isMember;
+ }
+
+ public void addGroupIdTo(Collection<String> bundleGroupIds) {
+ bundleGroupIds.add(name());
+ }
+ }
+
+ private Set<String> jbossBundleGroups = new TreeSet<String>();
+
+ /**
+ * Collects the bundle groups the bundles it gets belong
+ * to. Always returns <tt>true</tt> (does match) while collecting
+ */
+ public boolean matches(Bundle bundle) {
+ String bundleName = bundle.getSymbolicName();
+ for (BundleGroup bundleGroup : BundleGroup.values()) {
+ if (bundleGroup.isMember(bundleName)) {
+ jbossBundleGroups.add(bundleGroup.name());
+ break;
+ }
+ }
+ return true;
+ }
+
+ public Collection<String> getBundleGroupIds() {
+ return jbossBundleGroups;
+ }
+}
\ No newline at end of file
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -14,7 +14,8 @@
import org.jboss.tools.usage.googleanalytics.eclipse.AbstractEclipseEnvironment;
import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
import org.jboss.tools.usage.util.BundleUtils;
-import org.jboss.tools.usage.util.BundleUtils.IBundleEntryFilter;
+import org.jboss.tools.usage.util.CollectionFilterUtils;
+import org.jboss.tools.usage.util.ICollectionEntryFilter;
import org.osgi.framework.Bundle;
/**
@@ -31,9 +32,9 @@
@Override
public String getKeyword() {
- JBossBundleGroups jbossBundleGroups = new JBossBundleGroups();
- IBundleEntryFilter jbossToolsFilter = new BundleUtils.BundleSymbolicNameFilter(JBOSS_TOOLS_BUNDLES_PREFIX);
- IBundleEntryFilter compositeFilter = new BundleUtils.CompositeFilter(
+ JBossComponents jbossBundleGroups = new JBossComponents();
+ ICollectionEntryFilter<Bundle> jbossToolsFilter = new BundleUtils.BundleSymbolicNameFilter(JBOSS_TOOLS_BUNDLES_PREFIX);
+ ICollectionEntryFilter<Bundle> compositeFilter = new CollectionFilterUtils.CompositeCollectionFilter<Bundle>(
jbossToolsFilter
, jbossBundleGroups);
BundleUtils.getBundles(compositeFilter, getBundles());
@@ -45,7 +46,7 @@
return JBossToolsUsageActivator.getDefault().getBundle().getBundleContext().getBundles();
}
- private String bundleGroupsToKeywordString(JBossBundleGroups jbossBundleGroups) {
+ private String bundleGroupsToKeywordString(JBossComponents jbossBundleGroups) {
char delimiter = BUNDLE_GROUP_DELIMITER;
StringBuilder builder = new StringBuilder();
for (String bundleGroupId : jbossBundleGroups.getBundleGroupIds()) {
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -29,7 +29,7 @@
* @param bundles the bundles
* @return the bundles that match the given filter
*/
- public static List<Bundle> getBundles(IBundleEntryFilter filter, Bundle[] bundles) {
+ public static List<Bundle> getBundles(ICollectionEntryFilter<Bundle> filter, Bundle[] bundles) {
List<Bundle> bundleList = new ArrayList<Bundle>();
for (Bundle bundle : bundles) {
if (filter.matches(bundle)) {
@@ -53,7 +53,7 @@
/**
* A filter that matches bundles against a given symbolic name regex.
*/
- public static class BundleSymbolicNameFilter implements IBundleEntryFilter {
+ public static class BundleSymbolicNameFilter implements ICollectionEntryFilter<Bundle> {
private Pattern pattern;
@@ -68,51 +68,4 @@
}
}
-
- /**
- * A filter that applies several given filters
- */
- public static class CompositeFilter implements IBundleEntryFilter {
-
- private IBundleEntryFilter filters[];
-
- /**
- * Instantiates a new composite filter that applies several given
- * filters.
- *
- * @param filters
- * the filters
- */
- public CompositeFilter(IBundleEntryFilter... filters) {
- this.filters = filters;
- }
-
- /**
- * Applies the filters this composite filter has. All filters have to
- * match so that the filter says the given bundle matches.
- */
- public boolean matches(Bundle bundle) {
- for (IBundleEntryFilter filter : filters) {
- if (!filter.matches(bundle)) {
- return false;
- }
- }
- return true;
- }
- }
-
- /**
- * The Interface IBundleEntryFilter.
- */
- public static interface IBundleEntryFilter {
-
- /**
- * Matches.
- *
- * @param bundle
- * the bundle
- * @return true, if successful
- */
- public boolean matches(Bundle bundle);
- }
}
Copied: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java (from rev 24574, trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java)
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java (rev 0)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+
+/**
+ * @author Andre Dietisheim
+ */
+public class CollectionFilterUtils {
+
+ /**
+ * A filter that applies several given filters
+ */
+ public static class CompositeCollectionFilter<E> implements ICollectionEntryFilter<E> {
+
+ private ICollectionEntryFilter<E> filters[];
+
+ /**
+ * Instantiates a new composite filter that applies several given
+ * filters.
+ *
+ * @param filters
+ * the filters
+ */
+ public CompositeCollectionFilter(ICollectionEntryFilter<E>... filters) {
+ this.filters = filters;
+ }
+
+ /**
+ * Applies the filters this composite filter has. All filters have to
+ * match so that the filter says the given bundle matches.
+ */
+ public boolean matches(E entry) {
+ for (ICollectionEntryFilter<E> filter : filters) {
+ if (!filter.matches(entry)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ }
+}
Property changes on: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/CollectionFilterUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/ICollectionEntryFilter.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/ICollectionEntryFilter.java (rev 0)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/ICollectionEntryFilter.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+/**
+ * @authro Andre Dietisheim
+ */
+public interface ICollectionEntryFilter<E> {
+
+ /**
+ * Matches.
+ *
+ * @param bundle
+ * the bundle
+ * @return true, if successful
+ */
+ public boolean matches(E entry);
+}
\ No newline at end of file
Property changes on: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/ICollectionEntryFilter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseEnvironmentFakeSingleton.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseEnvironmentFakeSingleton.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseEnvironmentFakeSingleton.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.usage.test;
-
-/**
- * @author Andre Dietisheim
- */
-public class EclipseEnvironmentFakeSingleton {
-
- public static ReportingEclipseEnvironmentFake INSTANCE = new ReportingEclipseEnvironmentFake();
-
-}
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -8,6 +8,7 @@
private static final String APPLICATION_NAME = "com.jboss.jbds.product";
private static final String APPLICATION_VERSION = "3.0.1";
+
public static final String LOCALE_US = "en_US";
static final String WIN2000_VERSION = "5.0";
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -24,7 +24,7 @@
import org.eclipse.core.runtime.Platform;
import org.jboss.tools.usage.googleanalytics.eclipse.AbstractEclipseEnvironment;
-import org.jboss.tools.usage.reporting.JBossBundleGroups;
+import org.jboss.tools.usage.reporting.JBossComponents;
import org.junit.Test;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
@@ -88,9 +88,9 @@
Matcher matcher = Pattern.compile("(([A-Z]+)-){3}").matcher(keyword);
assertTrue(matcher.matches());
- assertTrue(keyword.indexOf(JBossBundleGroups.BundleGroup.GWT.name()) >= 0);
- assertTrue(keyword.indexOf(JBossBundleGroups.BundleGroup.SEAM.name()) >= 0);
- assertTrue(keyword.indexOf(JBossBundleGroups.BundleGroup.SMOOKS.name()) >= 0);
+ assertTrue(keyword.indexOf(JBossComponents.BundleGroup.GWT.name()) >= 0);
+ assertTrue(keyword.indexOf(JBossComponents.BundleGroup.SEAM.name()) >= 0);
+ assertTrue(keyword.indexOf(JBossComponents.BundleGroup.SMOOKS.name()) >= 0);
}
private void assertApplicationNameAndVersion(String applicationName, String applicationVersion, String userAgent) {
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -33,13 +33,13 @@
@Test
public void sameUserIdOnSametEclipseInstance() throws Exception {
- UrlRevealingTracker tracker = getTracker(EclipseEnvironmentFakeSingleton.INSTANCE);
+ UrlRevealingTracker tracker = getTracker(RepportingEclipseEnvironmentFakeSingleton.INSTANCE);
FocusPoint focusPoint = createFocusPoint("testSameUserIdOnSametEclipseInstance" + System.currentTimeMillis());
tracker.trackSynchronously(focusPoint);
String userId = getUserId(tracker.getTrackingUrl());
assertTrue(userId != null);
- tracker = getTracker(EclipseEnvironmentFakeSingleton.INSTANCE);
+ tracker = getTracker(RepportingEclipseEnvironmentFakeSingleton.INSTANCE);
tracker.trackSynchronously(focusPoint);
String newUserId = getUserId(tracker.getTrackingUrl());
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java 2010-09-10 15:00:21 UTC (rev 24873)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -18,7 +18,7 @@
* @author Andre Dietisheim
*/
public class ReportingEclipseEnvironmentFake extends ReportingEclipseEnvironment {
-
+
public static final String GANALYTICS_ACCOUNTNAME = "UA-17645367-1";
public static final String HOSTNAME = "jboss.org";
public static final String JAVA_VERSION = "1.6.0_20";
Copied: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/RepportingEclipseEnvironmentFakeSingleton.java (from rev 24851, trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseEnvironmentFakeSingleton.java)
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/RepportingEclipseEnvironmentFakeSingleton.java (rev 0)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/RepportingEclipseEnvironmentFakeSingleton.java 2010-09-10 16:26:43 UTC (rev 24874)
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.test;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class RepportingEclipseEnvironmentFakeSingleton {
+
+ public static ReportingEclipseEnvironmentFake INSTANCE = new ReportingEclipseEnvironmentFake();
+
+}
Property changes on: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/RepportingEclipseEnvironmentFakeSingleton.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 7 months
JBoss Tools SVN: r24873 - in trunk/hibernatetools: plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2010-09-10 11:00:21 -0400 (Fri, 10 Sep 2010)
New Revision: 24873
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/ant-tasks-description.xml
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactoryStrings.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenXMLFactory.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExportersXMLAttributeDescription.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenInternalProps_test1.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenJpa_test1.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenNullable_test1.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenProps_test1.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenReveng_test1.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGen_test1.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/CodeGenXMLFactoryTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6703 - fixed
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/ant-tasks-description.xml
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/ant-tasks-description.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/ant-tasks-description.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -39,7 +39,7 @@
<attribute name="update" gui-name="schemaUpdate" default="false"/>
<attribute name="drop" gui-name="drop" default="false"/>
<attribute name="create" gui-name="create" default="true"/>
- <attribute name="outputfilename" gui-name="outputfilename" default=""/>
+ <attribute name="outputfilename" gui-name="outputFileName" default=""/>
<attribute name="delimiter" gui-name="delimiter" default=";"/>
<attribute name="format" gui-name="format" default="false"/>
<attribute name="haltonerror" gui-name="haltonerror" default="false"/>
@@ -52,4 +52,11 @@
<attribute name="jdk5" gui-name="jdk5" default="false"/>
<attribute name="ejb3" gui-name="ejb3" default="false"/>
</task>
+ <task name="query" id="org.hibernate.tools.query">
+ <attribute name="destfile" gui-name="outputFileName" default=""/>
+ <attribute name="destdir" gui-name="outputdir" default=""/>
+ <attribute name="templatepath" gui-name="template_path" default=""/>
+ <attribute name="templateprefix" gui-name="templateprefix" default=""/>
+ <subtag name="hql" gui-name="query_string" default=""/>
+ </task>
</ant-tasks>
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -619,6 +619,27 @@
type="boolean"
value="false"/>
</exporter>
+ <exporter
+ classname="org.hibernate.tool.hbm2x.QueryExporter"
+ description="HQL Query Execution Exporter"
+ icon="icons/images/hql_editor_connect.gif"
+ id="org.hibernate.tools.query">
+ <property
+ description="Output directory"
+ name="outputdir"
+ type="directory"
+ value=""/>
+ <property
+ description="File name"
+ name="outputFileName"
+ type="string"
+ value=""/>
+ <property
+ description="Query"
+ name="query_string"
+ type="string"
+ value=""/>
+ </exporter>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java 2010-09-10 15:00:21 UTC (rev 24873)
@@ -25,6 +25,7 @@
import org.hibernate.tool.hbm2x.Exporter;
import org.hibernate.tool.hbm2x.GenericExporter;
import org.hibernate.tool.hbm2x.Hbm2DDLExporter;
+import org.hibernate.tool.hbm2x.QueryExporter;
import org.hibernate.util.StringHelper;
/**
@@ -289,6 +290,14 @@
//avoid users to delete their databases with a single click
ddlExporter.setExport(Boolean.getBoolean(extract.getProperty(ExporterFactoryStrings.EXPORTTODATABASE)));
}
+ // special handling for QueryExporter
+ if (exporterId.equals("org.hibernate.tools.query")) { //$NON-NLS-1$
+ QueryExporter queryExporter = (QueryExporter) exporter;
+ List<String> queryStrings = new ArrayList<String>();
+ queryStrings.add(extract.getProperty(ExporterFactoryStrings.QUERY_STRING));
+ queryExporter.setQueries(queryStrings);
+ queryExporter.setFilename(extract.getProperty(ExporterFactoryStrings.OUTPUTFILENAME));
+ }
return exporter;
}
@@ -335,5 +344,19 @@
extract.put(ExporterFactoryStrings.EXPORTTODATABASE, props.getProperty(ExporterFactoryStrings.EXPORTTODATABASE, Boolean.toString(false)));
props.remove(ExporterFactoryStrings.EXPORTTODATABASE);
}
+ // special handling for QueryExporter
+ if (exporterId.equals("org.hibernate.tools.query")) { //$NON-NLS-1$
+ String tmp;
+ if (props.containsKey(ExporterFactoryStrings.QUERY_STRING)) {
+ tmp = props.getProperty(ExporterFactoryStrings.QUERY_STRING, ""); //$NON-NLS-1$
+ extract.put(ExporterFactoryStrings.QUERY_STRING, tmp);
+ props.remove(ExporterFactoryStrings.QUERY_STRING);
+ }
+ if (props.containsKey(ExporterFactoryStrings.OUTPUTFILENAME)) {
+ tmp = props.getProperty(ExporterFactoryStrings.OUTPUTFILENAME, ""); //$NON-NLS-1$
+ extract.put(ExporterFactoryStrings.OUTPUTFILENAME, tmp);
+ props.remove(ExporterFactoryStrings.OUTPUTFILENAME);
+ }
+ }
}
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactoryStrings.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactoryStrings.java 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactoryStrings.java 2010-09-10 15:00:21 UTC (rev 24873)
@@ -23,4 +23,6 @@
public static final String TEMPLATE_NAME = "template_name"; //$NON-NLS-1$
public static final String FOR_EACH = "for_each"; //$NON-NLS-1$
public static final String EXPORTTODATABASE = "exportToDatabase"; //$NON-NLS-1$
+ public static final String QUERY_STRING = "query_string"; //$NON-NLS-1$
+ public static final String OUTPUTFILENAME = "outputFileName"; //$NON-NLS-1$
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenXMLFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenXMLFactory.java 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenXMLFactory.java 2010-09-10 15:00:21 UTC (rev 24873)
@@ -19,7 +19,9 @@
import java.util.List;
import java.util.Map;
import java.util.Properties;
+import java.util.Set;
import java.util.TreeMap;
+import java.util.TreeSet;
import org.dom4j.DocumentFactory;
import org.dom4j.Element;
@@ -303,6 +305,8 @@
//
Map<String, Map<String, AttributeDescription>> exportersDescr =
ExportersXMLAttributeDescription.getExportersDescription();
+ Map<String, Set<String>> exportersSetSubTags =
+ ExportersXMLAttributeDescription.getExportersSetSubTags();
//
Properties globalProps = new Properties();
// obligatory global properties
@@ -323,6 +327,11 @@
if (attributesDescrGui == null) {
attributesDescrGui = new TreeMap<String, AttributeDescription>();
}
+ // mapping: guiName -> set of sub tags
+ Set<String> setSubTags = exportersSetSubTags.get(expName);
+ if (setSubTags == null) {
+ setSubTags = new TreeSet<String>();
+ }
// construct new mapping: name -> AttributeDescription
Map<String, AttributeDescription> attributesDescrAnt = new TreeMap<String, AttributeDescription>();
for (AttributeDescription ad : attributesDescrGui.values()) {
@@ -365,7 +374,12 @@
if (val == null || 0 == val.toString().compareTo(ad.defaultValue)) {
continue;
}
- exporter.addAttribute(ad.name, val.toString());
+ if (setSubTags.contains(ad.guiName)) {
+ Element subTag = exporter.addElement(ad.name);
+ subTag.addText(val.toString());
+ } else {
+ exporter.addAttribute(ad.name, val.toString());
+ }
}
for (Object obj : list2Remove) {
expProps.remove(obj);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExportersXMLAttributeDescription.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExportersXMLAttributeDescription.java 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExportersXMLAttributeDescription.java 2010-09-10 15:00:21 UTC (rev 24873)
@@ -17,7 +17,9 @@
import java.net.URL;
import java.util.Iterator;
import java.util.Map;
+import java.util.Set;
import java.util.TreeMap;
+import java.util.TreeSet;
import org.dom4j.Document;
import org.dom4j.DocumentException;
@@ -47,12 +49,14 @@
}
private static Map<String, Map<String, AttributeDescription>> mapExporter2AttributeDescr = null;
+ private static Map<String, Set<String>> mapExporter2SetSubTags = null;
private static void initExportersDescriptionmap() {
if (mapExporter2AttributeDescr != null) {
return;
}
mapExporter2AttributeDescr = new TreeMap<String, Map<String, AttributeDescription>>();
+ mapExporter2SetSubTags = new TreeMap<String, Set<String>>();
Document doc = getDocument();
if (doc == null) {
return;
@@ -73,9 +77,21 @@
ad.defaultValue = elAttribute.attributeValue("default"); //$NON-NLS-1$
attributes.put(ad.guiName, ad);
}
+ Set<String> subtags = new TreeSet<String>();
+ itAttribute = elTask.elementIterator("subtag"); //$NON-NLS-1$
+ while (itAttribute.hasNext()) {
+ Element elAttribute = (Element)itAttribute.next();
+ AttributeDescription ad = new AttributeDescription();
+ ad.name = elAttribute.attributeValue("name"); //$NON-NLS-1$
+ ad.guiName = elAttribute.attributeValue("gui-name"); //$NON-NLS-1$
+ ad.defaultValue = elAttribute.attributeValue("default"); //$NON-NLS-1$
+ attributes.put(ad.guiName, ad);
+ subtags.add(ad.guiName);
+ }
//String taskId = elTask.attributeValue("id"); //$NON-NLS-1$
String taskName = elTask.attributeValue("name"); //$NON-NLS-1$
mapExporter2AttributeDescr.put(taskName, attributes);
+ mapExporter2SetSubTags.put(taskName, subtags);
}
}
@@ -91,6 +107,13 @@
res.putAll(mapExporter2AttributeDescr);
return res;
}
+
+ public static Map<String, Set<String>> getExportersSetSubTags() {
+ initExportersDescriptionmap();
+ Map<String, Set<String>> res = new TreeMap<String, Set<String>>();
+ res.putAll(mapExporter2SetSubTags);
+ return res;
+ }
private static Document getDocument() {
File resourceFile = null;
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenInternalProps_test1.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenInternalProps_test1.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenInternalProps_test1.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -16,6 +16,11 @@
<classpath>
<path location="${build.dir}"/>
</classpath>
+ <query>
+ <hql>from testQuery</hql>
+ <property key="ejb3" value="false"/>
+ <property key="jdk5" value="false"/>
+ </query>
<hbm2doc>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenJpa_test1.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenJpa_test1.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenJpa_test1.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -17,6 +17,11 @@
<classpath>
<path location="${build.dir}"/>
</classpath>
+ <query>
+ <hql>from testQuery</hql>
+ <property key="ejb3" value="true"/>
+ <property key="jdk5" value="true"/>
+ </query>
<hbm2doc>
<property key="ejb3" value="true"/>
<property key="jdk5" value="true"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenNullable_test1.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenNullable_test1.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenNullable_test1.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -7,6 +7,11 @@
<classpath>
<path location="${build.dir}"/>
</classpath>
+ <query>
+ <hql>from testQuery</hql>
+ <property key="ejb3" value="false"/>
+ <property key="jdk5" value="false"/>
+ </query>
<hbm2doc>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenProps_test1.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenProps_test1.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenProps_test1.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -8,6 +8,11 @@
<classpath>
<path location="${build.dir}"/>
</classpath>
+ <query>
+ <hql>from testQuery</hql>
+ <property key="ejb3" value="false"/>
+ <property key="jdk5" value="false"/>
+ </query>
<hbm2doc>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenReveng_test1.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenReveng_test1.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGenReveng_test1.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -8,6 +8,11 @@
<classpath>
<path location="${build.dir}"/>
</classpath>
+ <query>
+ <hql>from testQuery</hql>
+ <property key="ejb3" value="false"/>
+ <property key="jdk5" value="false"/>
+ </query>
<hbm2doc>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGen_test1.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGen_test1.xml 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/sample/AntCodeGen_test1.xml 2010-09-10 15:00:21 UTC (rev 24873)
@@ -10,6 +10,11 @@
<classpath>
<path location="${build.dir}"/>
</classpath>
+ <query>
+ <hql>from testQuery</hql>
+ <property key="ejb3" value="false"/>
+ <property key="jdk5" value="false"/>
+ </query>
<hbm2doc>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/CodeGenXMLFactoryTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/CodeGenXMLFactoryTest.java 2010-09-10 14:43:40 UTC (rev 24872)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/CodeGenXMLFactoryTest.java 2010-09-10 15:00:21 UTC (rev 24873)
@@ -62,6 +62,9 @@
public static final String HBMTEMPLATE0 = "hbm2java"; //$NON-NLS-1$
public static final String HBMTEMPLATE0_PROPERTIES = HibernateLaunchConstants.ATTR_EXPORTERS
+ '.' + HBMTEMPLATE0 + ".properties"; //$NON-NLS-1$
+ public static final String HBMTEMPLATE1 = "query"; //$NON-NLS-1$
+ public static final String HBMTEMPLATE1_PROPERTIES = HibernateLaunchConstants.ATTR_EXPORTERS
+ + '.' + HBMTEMPLATE1 + ".properties"; //$NON-NLS-1$
public static final String OUTDIR_PATH = "outputdir/test".replace('/', IPath.SEPARATOR); //$NON-NLS-1$
public class TestConsoleConfigPref extends TestConsoleConfigurationPreferences {
@@ -404,7 +407,10 @@
expProps2.put(ExporterFactoryStrings.OUTPUTDIR, OUTDIR_PATH);
expProps2.put(CodeGenerationStrings.DESTDIR, OUTDIR_PATH + "_test_suffix"); //$NON-NLS-1$
expProps2.put("keyXXX", "valueYYY"); //$NON-NLS-1$ //$NON-NLS-2$
+ Map<String, String> expProps3 = new HashMap<String, String>();
+ expProps3.put(ExporterFactoryStrings.QUERY_STRING, "from testQuery"); //$NON-NLS-1$
testLaunchConfigAttr.put(HBMTEMPLATE0_PROPERTIES, expProps2);
+ testLaunchConfigAttr.put(HBMTEMPLATE1_PROPERTIES, expProps3);
testLaunchConfigAttr.put(HibernateLaunchConstants.ATTR_REVERSE_ENGINEER, reveng);
testLaunchConfigAttr.put(HibernateLaunchConstants.ATTR_PREFER_BASIC_COMPOSITE_IDS, true);
TestLaunchConfig testLaunchConfig = new TestLaunchConfig(testLaunchConfigAttr);
15 years, 7 months