JBoss Tools SVN: r14591 - trunk/birt/docs/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-08 04:18:42 -0400 (Wed, 08 Apr 2009)
New Revision: 14591
Added:
trunk/birt/docs/en/modules/birt_integration_with_seam.xml
trunk/birt/docs/en/modules/birt_reports_deployment.xml
trunk/birt/docs/en/modules/hibernate_datasource.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-687 - the guide is restructured;
Added: trunk/birt/docs/en/modules/birt_integration_with_seam.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_integration_with_seam.xml (rev 0)
+++ trunk/birt/docs/en/modules/birt_integration_with_seam.xml 2009-04-08 08:18:42 UTC (rev 14591)
@@ -0,0 +1,360 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="birt_integration_with_seam" xreflabel="birt_integration_with_seam">
+
+ <?dbhtml filename="birt_integration_with_seam.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss</keyword>
+ <keyword>BIRT</keyword>
+ <keyword>Seam</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Adding BIRT Functionality to Standard Seam Web Project</title>
+
+ <para>In this chapter you'll know how to create a Seam web project with BIRT
+ capabilities included.</para>
+
+ <para>You are supposed to have Seam runtime and JBoss Application Server downloaded and
+ extracted somewhere on you hard drive.</para>
+
+ <tip>
+ <title>Tip:</title>
+ <para><ulink
+ url="http://sourceforge.net/project/showfiles.php?group_id=22866&package_i..."
+ >JBoss Seam 2.0.1 GA</ulink> and <ulink
+ url="http://sourceforge.net/project/showfiles.php?group_id=22866&package_i..."
+ >JBoss Application Server 4.2.2 GA</ulink> are required.</para>
+ </tip>
+
+ <section id="creatin_project_with_birt">
+ <title>Creating Seam Web Project with Birt Facet</title>
+
+ <para>First, open <property>Seam perspective</property> by going to <emphasis>
+ <property>Window > Open Perspective > Other > Seam</property>.
+ </emphasis> To create a new Seam Web project follow to <emphasis>
+ <property>File > New > Seam Web Project</property>
+ </emphasis> (or <emphasis>
+ <property>File > New > Other > Seam > Seam Web
+ Project</property>
+ </emphasis> if you are not in the <property>Seam perspective</property>).</para>
+
+ <para>On the first wizard page enter the project name, then specify the target runtime and
+ target server. In the <emphasis>
+ <property>Configuration</property>
+ </emphasis> section click <emphasis>
+ <property>Modify</property>
+ </emphasis> to configure the project facets.</para>
+
+ <figure>
+ <title>Creating Seam Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/testBirtProject.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Choose the 2.0 version of the <emphasis>
+ <property>Seam</property>
+ </emphasis> facet and enable the <emphasis>
+ <property>Birt Reporting Runtime Component</property>
+ </emphasis> facet.</para>
+
+ <figure>
+ <title>Adding the Birt Reporting Runtime Component Facet </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/addingBirtFacet.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Or you can just choose the <emphasis>
+ <property>JBoss BIRT Integration Web Project</property>
+ </emphasis> configuration.</para>
+
+ <figure>
+ <title>Choosing the JBoss BIRT Integration Web Project Configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/birt_integration_with_seam/projectBirtConfiguration.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Next three pages are filled out with defaults, just leave them through by pressing <emphasis>
+ <property>Next</property>.</emphasis> On the <emphasis>
+ <property>Seam Facet</property>
+ </emphasis> page you should specify the Seam runtime and Connection profile.</para>
+
+ <figure>
+ <title>Configuring the Seam Facet settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/seamFacet.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Hit <emphasis>
+ <property>Finish</property>
+ </emphasis> to create the project with Birt functionality enabled.</para>
+ </section>
+
+ <section id="integration">
+ <title>Integration with Seam</title>
+
+ <para>The JBoss BIRT Integration feature contains the BIRT tag that allows the user to add a
+ BIRT report to an <emphasis>
+ <property>.xhtml</property>
+ </emphasis> file:</para>
+
+ <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:p="http://jboss.com/products/seam/birt"
+ designType="run"
+ format="pdf"
+ designName="test.rptdesign"
+ title="JBoss Birt Test">
+
+</p:birt>]]></programlisting>
+
+ <para>Let's look how it works.</para>
+ <para>Create in the <emphasis>
+ <property>Web Content</property>
+ </emphasis> folder three <emphasis>
+ <property>.xhtml</property>
+ </emphasis> pages with the following content:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>birttests.xhtml</property>:</emphasis>
+ </para>
+ <programlisting role="XHTML"><![CDATA[<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml">
+
+ <ui:define name="body">
+ <h:messages globalOnly="true" styleClass="message"/>
+ <rich:panel>
+ <f:facet name="header">Welcome to JBoss BIRT!</f:facet>
+ <ul>
+ <li><s:link view="/testbirt.xhtml" value="Test Birt" /></li>
+ <li><s:link view="/testbirt1.xhtml" value="Test Birt 1" /></li>
+ </ul>
+ </rich:panel>
+ </ui:define>
+ </ui:composition>]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>testbirt.xhtml</property>:</emphasis>
+ </para>
+ <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:p="http://jboss.com/products/seam/birt"
+ designType="run"
+ format="pdf"
+ designName="test.rptdesign"
+ title="JBoss Birt Test">
+
+ <p:param name="sample" value="sample param"/>
+</p:birt>]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>
+ <property>testbirt1.xhtml</property>:</emphasis>
+ </para>
+ <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:p="http://jboss.com/products/seam/birt"
+ designType="frameset"
+ designName="test1.rptdesign"
+ title="JBoss Birt Test">
+</p:birt>]]></programlisting>
+ </listitem>
+ </itemizedlist>
+
+ <para>Now start the application server by clicking the <emphasis>
+ <property>Start</property>
+ </emphasis> option in the context menu of the server in the <property>JBoss Server
+ View</property> (if the view isn't open go to <emphasis>
+ <property>Window > Show View > Other > JBoss Server
+ View</property>)</emphasis>. Try the tests out by accessing <emphasis>
+ <property>http://localhost:8080/hellobirt/birttests.seam</property>
+ </emphasis> in your web browser.</para>
+
+ <figure>
+ <title>Welcome Page in the Browser</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/birttestsPage.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Now if you click <emphasis>
+ <property>Test Birt</property>
+ </emphasis> you should see the following <emphasis>
+ <property>.pdf</property>
+ </emphasis> file:</para>
+
+ <figure>
+ <title>After Clicking Test Birt</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/testbirtPage.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After clicking <emphasis>
+ <property>Test Birt 1</property>
+ </emphasis> the next page is displayed:</para>
+
+ <figure>
+ <title>After Clicking Test Birt 1</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/testbirt1Page1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Put the <emphasis>
+ <property>test param</property>
+ </emphasis> as Sample Parameter value, specify the maximum possible Customer Number as
+ <emphasis>
+ <property>1001</property>,</emphasis> for instance, and then press <emphasis>
+ <property>Ok</property>.</emphasis> You'll see the following BIRT
+ report:</para>
+
+ <figure>
+ <title>BIRT Report in the Browser Window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/testbirt1Page2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The BIRT tag recognizes most of the parameters described on <ulink
+ url="http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php#parameters">the
+ BIRT Report Viewer Parameters page</ulink>. The attributes of the BIRT tag
+ don't contain the <emphasis>
+ <property>"__"</property>
+ </emphasis> prefix.</para>
+
+ <para>The <emphasis>
+ <property>param</property>
+ </emphasis> tag describes report parameters (see the listing for the <emphasis>
+ <property>testbirt.xhtml</property>
+ </emphasis> above). It supports the following attributes: </para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>
+ <property>name</property>
+ </emphasis> - the parameter name (required)</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>value</property>
+ </emphasis> - the parameter value (required)</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>isnull</property>
+ </emphasis> - specifies that a report parameter has a null value
+ (optional)</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>islocale</property>
+ </emphasis> - specifies whether the parameter is localized (optional)</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>These tags are defined in the <emphasis>
+ <property>org.jboss.birt.core/resources/jboss-seam-birt.jar</property>
+ </emphasis> library that contains source. </para>
+
+ <!--para>It is also possible to embed a BIRT report in some Seam <emphasis>
+ <property>.xhtml</property>
+ </emphasis> page. See how it may be done:</para>
+ <para/>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XHTML"><![CDATA[<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:b="http://jboss.com/products/seam/birt"
+ template="layout/template.xhtml">
+ <ui:define name="body">
+ <h:messages globalOnly="true" styleClass="message" id="globalMessages"/>
+ <rich:panel>
+ <f:facet name="header">Products</f:facet>
+ <b:birt designType="embed" designName="ProductCatalog.rptdesign"
+ embeddable="true" masterpage="false"/>
+ <div style="clear:both"/>
+ </rich:panel>
+ <div class="actionButtons">
+ <s:button view="/ProductsEdit.xhtml" id="edit" value="Edit"/>
+ <s:button view="/BirtProductsPdf.xhtml"
+ id="BirtProductPdf" value="Product Catalog - PDF"/>
+ <s:button view="/BirtProductsFrameset.xhtml"
+ id="BirtProductFrameset" value="Product Catalog - Frameset"/>
+ <s:button view="/BirtProductsEmbedded.xhtml"
+ id="BirtProductEmbedded" value="Product Catalog - Embedded"/>
+ <s:button view="/TopSellingProducts.xhtml"
+ id="TopSellingProducts" value="Top Selling Products"/>
+ <s:button view="/#{empty productsFrom ? 'ProductsList' : productsFrom}.xhtml"
+ id="done" value="Done"/>
+ </div>
+ </ui:define>
+ </ui:composition>]]></programlisting>
+
+ <figure>
+ <title>Embedding BIRT Report in Seam xhtml Page. First Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/BirtIntegration/BirtReportInSeamPage1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Embedding BIRT Report in Seam xhtml Page. Second Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/BirtIntegration/BirtReportInSeamPage2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Embedding BIRT Report in Seam xhtml Page. Third Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/BirtIntegration/BirtReportInSeamPage3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure-->
+ </section>
+</chapter>
Added: trunk/birt/docs/en/modules/birt_reports_deployment.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_reports_deployment.xml (rev 0)
+++ trunk/birt/docs/en/modules/birt_reports_deployment.xml 2009-04-08 08:18:42 UTC (rev 14591)
@@ -0,0 +1,122 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="birt_reports_deployment" xreflabel="birt_reports_deployment">
+
+ <?dbhtml filename="birt_reports_deployment"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss</keyword>
+ <keyword>BIRT</keyword>
+ <keyword>Seam</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>BIRT Reports Deployment</title>
+
+ <para>When everything is configured correctly you will be able to view/render the designed
+ reports in your Seam (or any other) Web application.</para>
+
+ <para>You can deploy a report by adding an action button to the Seam's CRUD <emphasis>
+ <property>.xhtml</property>
+ </emphasis> file.</para>
+
+ <figure>
+ <title>Adding Action Button to the Seam file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_reports_deployment/addingActionButton.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As you can see on the figure you should have the <emphasis>
+ <property>testHibernateOda.xhtml</property>
+ </emphasis> file. It's content should be the following:</para>
+
+ <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:p="http://jboss.com/products/seam/birt"
+ designType="run"
+ format="pdf"
+ designName="testHibernateOda.rptdesign"
+ title="JBoss Birt Test">
+
+</p:birt>
+]]></programlisting>
+
+ <para>Next run the Seam page with embedded report on the server by right-clicking the file and
+ going to <emphasis>
+ <property>Run > Run on Server</property>.</emphasis></para>
+
+ <figure>
+ <title>Opening Employees.xhtml Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_reports_deployment/openingArticlesPage.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After clicking the <emphasis>
+ <property>BIRT PDF Report</property>
+ </emphasis> button, you should see the following report:</para>
+
+ <figure>
+ <title>Birt PDF Report</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_reports_deployment/BirtPDFReport.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Thus, a Seam project that includes the BIRT facet can be deployed as any project. If you
+ define the Hibernate ODA driver, the JBoss BIRT engine will use JNDI URL that has to be bind
+ to either Hibernate Session Factory or Hibernate Entity Manager Factory. If you
+ don't specify the JNDI URL property, our engine will try the following JNDI
+ URLs:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>java:/<project_name></emphasis>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>java:/<project_name>EntityManagerFactory</emphasis>
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>When creating a Seam EAR project, Hibernate Entity Manager Factory is bound to
+ <emphasis>java:/{projectName}EntityManagerFactory</emphasis>. All you need to do is
+ using the Hibernate Configuration created automatically. You can use default values for the
+ Hibernate Configuration and JNDI URL within the BIRT Hibernate Data Source.</para>
+
+ <para>When using a Seam WAR project, neither HSF nor HEMF aren't binded to JNDI by
+ default. You has to do this manually. For instance, HSF can be bound to JNDI by adding the
+ following property to the <emphasis>
+ <property>persistence.xml</property></emphasis> file:</para>
+
+ <programlisting role="XHTML"><![CDATA[<property name="hibernate.session_factory_name" value="java:/projectname"/>
+ ]]></programlisting>
+
+ <para>And you can use <emphasis>java:/projectname</emphasis> as the JNDI URL property when creating a BIRT
+ Hibernate Data Source.</para>
+
+ <note>
+ <title>Note:</title>
+ <para>If you want to test this feature using PDE Runtime, you need to add <emphasis>
+ <property>osgi.dev=bin</property>
+ </emphasis> to the <emphasis>
+ <property>WebContent/WEB-INF/platform/configuration/config.ini</property>
+ </emphasis> file.</para>
+ </note>
+ <para>In conclusion, the main goal of this document is to get you know with a full featureset
+ that <property>JBoss BIRT Tools</property> provide. Thus if you have some questions,
+ comments or suggestions on the topic, please feel free to ask in the <ulink
+ url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=201">JBoss
+ Tools Forum</ulink>. You can also influence on how you want to see JBoss Tools docs in
+ future leaving your vote on our page <ulink
+ url="http://www.jboss.org/community/docs/DOC-10795">here</ulink>.</para>
+
+</chapter>
Added: trunk/birt/docs/en/modules/hibernate_datasource.xml
===================================================================
--- trunk/birt/docs/en/modules/hibernate_datasource.xml (rev 0)
+++ trunk/birt/docs/en/modules/hibernate_datasource.xml 2009-04-08 08:18:42 UTC (rev 14591)
@@ -0,0 +1,239 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="hibernate_datasource" xreflabel="hibernate_datasource">
+
+ <?dbhtml filename="hibernate_datasource.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss</keyword>
+ <keyword>BIRT</keyword>
+ <keyword>Seam</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Hibernate ODA Data Source</title>
+
+ <para>The JBoss BIRT Integration feature includes the Hibernate ODA Data Source completely
+ integrated with Hibernate Tools. You can use it in the way you use any of BIRT ODA drivers.
+ Let's perform simple actions that demonstrate it.</para>
+
+ <para>First, run the <emphasis>
+ <property>Seam Generate Entities</property>
+ </emphasis> action (You can access it from <emphasis>
+ <property>File > New > Seam Generate Entities</property>
+ </emphasis> in the <property>Seam perspective</property>. More details on the Seam Generate
+ Entities read in our <ulink
+ url="http://download.jboss.org/jbosstools/nightly-docs/en/seam/html_single/ind..."
+ >Seam Dev Tools Reference guide</ulink>). This action will create a Hibernate Console
+ configuration.</para>
+
+ <tip>
+ <title>Tip:</title>
+ <para>Before performing Seam Generate Entities, you should have a connection profile
+ adjusted and connected to a database. How to do this see in the <ulink
+ url="http://download.jboss.org/jbosstools/nightly-docs/en/seam/html_single/ind..."
+ >CRUD Database Application</ulink> chapter of the Seam Dev Tools Reference
+ guide.</para>
+ </tip>
+
+ <para>Next add a new BIRT report. To do that navigate to <emphasis>
+ <property>File > New > Other > Business Intelligence and Reporting
+ Tools > Report</property>.</emphasis> In the <property>New Report
+ wizard</property> enter the report name, for instance <emphasis>
+ <property>testHibernateOda.rptdesign</property>,</emphasis> then click <emphasis>
+ <property>Finish</property>.</emphasis></para>
+
+ <figure>
+ <title>Creating a New BIRT Report </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/creatingNewBirtReport.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Now switch to the <property>Report Design perspective</property>.</para>
+
+ <para>In the <property>Data Explorer View</property> right-click the <emphasis>
+ <property>Data Source</property>
+ </emphasis> node and choose <emphasis>
+ <property>New Data Source</property>.</emphasis></para>
+
+ <figure>
+ <title>Creating a New Data Source</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/creatingDataSource.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the wizard select <emphasis>
+ <property>Hibernate Data Source</property>
+ </emphasis> and give it a proper name, <emphasis>
+ <property>HbDataSource</property>
+ </emphasis> for instance. Hit <emphasis>
+ <property>Next</property>.</emphasis></para>
+
+ <figure>
+ <title>Creating Hibernate Data Source</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/hibernateDataSource.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the next wizard page leave everything as it is, just press the <emphasis>
+ <property>Test Connection</property>
+ </emphasis> button to verify the connection is successful.</para>
+
+ <figure>
+ <title>Hibernate Data Source Profile</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/connectionSuccessful.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Click <emphasis>
+ <property>Ok</property>
+ </emphasis> and then <emphasis>
+ <property>Finish</property>
+ </emphasis> to complete.</para>
+
+ <para>Now let's add a Hibernate ODA dataset. To do that you should bring up the
+ <property>New Data Set wizard</property>. In the <property>Data Explorer View</property>
+ right-click the <emphasis>
+ <property>Data Set</property>
+ </emphasis> node and select <emphasis>
+ <property>New Data Set</property>.</emphasis></para>
+
+ <figure>
+ <title>Creating a New Data Set</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/creatingDataSet.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the <emphasis>
+ <property>Data Set Name</property>
+ </emphasis> section specify the name. Let's it be <emphasis>
+ <property>HbDataSet</property>.</emphasis></para>
+
+ <figure>
+ <title>Creating a Hibernate ODA Data Set</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/addingHibernateODADataset.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Next you'll be prompted to define the query for this data set. To validate the
+ entered query you can press the <emphasis>
+ <property>Test query</property>
+ </emphasis> button. All the HQL features like syntax highlighting, content assist,
+ formatting, Drag and Drop, etc., are available to you here.</para>
+
+ <figure>
+ <title>Testing Query </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/testingQuery.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Next the output columns will be displayed. It's possible to edit them
+ here.</para>
+
+ <figure>
+ <title>HQL Features - Output Columns Section</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/hqlFeaturesOutputColumns.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To preview the results of the defined query click the <emphasis>
+ <property>Preview Results</property>
+ </emphasis> item.</para>
+ <figure>
+ <title>HQL Features - Preview Results Section</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/hqlFeaturesPreviewResults.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>So far you have the Hibernate data source and data set defined. Now you can create a BIRT
+ report using this data source and data set.</para>
+
+ <tip>
+ <title>Tip:</title>
+ <para>If you don't know how to do this we suggest that you refer to the <ulink
+ url="http://www.eclipse.org/birt/phoenix/tutorial/">Eclipse BIRT Tutorial</ulink>.</para>
+ </tip>
+
+ <figure>
+ <title>Creating a BIRT Report using Created Data Source and Data Set</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/hibernate_datasource/BIRTReportUsingDataSourceAndSet.png "/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>If you switch to the <emphasis>
+ <property>Preview</property></emphasis> tab, it will run your report and show the output.</para>
+
+ <figure>
+ <title>BIRT Report -Preview Tab</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/BIRTReportPreviewTab.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can also use parameters within the Hibernate ODA driver.</para>
+
+ <figure>
+ <title>Using Parameters within the Hibernate ODA Driver</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/hibernate_datasource/parametersWithinHibernateODADriver.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <figure>
+ <title>Adding New Parameter</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/addingNewParameter.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Again, to preview the results switch to the <emphasis>
+ <property>Preview Results</property>
+ </emphasis> item.</para>
+ <figure>
+ <title>Previewing the Results</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/hibernate_datasource/previewingResults.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+</chapter>
15 years, 8 months
JBoss Tools SVN: r14589 - in trunk/birt/docs/en/images: birt_integration_with_seam and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-08 04:14:27 -0400 (Wed, 08 Apr 2009)
New Revision: 14589
Added:
trunk/birt/docs/en/images/birt_integration_with_seam/
trunk/birt/docs/en/images/birt_integration_with_seam/addingBirtFacet.png
trunk/birt/docs/en/images/birt_integration_with_seam/birttestsPage.png
trunk/birt/docs/en/images/birt_integration_with_seam/projectBirtConfiguration.png
trunk/birt/docs/en/images/birt_integration_with_seam/seamFacet.png
trunk/birt/docs/en/images/birt_integration_with_seam/testBirtProject.png
trunk/birt/docs/en/images/birt_integration_with_seam/testbirt1Page1.png
trunk/birt/docs/en/images/birt_integration_with_seam/testbirt1Page2.png
trunk/birt/docs/en/images/birt_integration_with_seam/testbirtPage.png
trunk/birt/docs/en/images/birt_reports_deployment/
trunk/birt/docs/en/images/birt_reports_deployment/BirtPDFReport.png
trunk/birt/docs/en/images/birt_reports_deployment/addingActionButton.png
trunk/birt/docs/en/images/birt_reports_deployment/openingArticlesPage.png
trunk/birt/docs/en/images/hibernate_datasource/
trunk/birt/docs/en/images/hibernate_datasource/BIRTReportPreviewTab.png
trunk/birt/docs/en/images/hibernate_datasource/BIRTReportUsingDataSourceAndSet.png
trunk/birt/docs/en/images/hibernate_datasource/BirtPDFReport.png
trunk/birt/docs/en/images/hibernate_datasource/addingHibernateODADataset.png
trunk/birt/docs/en/images/hibernate_datasource/addingNewParameter.png
trunk/birt/docs/en/images/hibernate_datasource/connectionSuccessful.png
trunk/birt/docs/en/images/hibernate_datasource/creatingDataSet.png
trunk/birt/docs/en/images/hibernate_datasource/creatingDataSource.png
trunk/birt/docs/en/images/hibernate_datasource/creatingNewBirtReport.png
trunk/birt/docs/en/images/hibernate_datasource/hibernateDataSource.png
trunk/birt/docs/en/images/hibernate_datasource/hqlFeaturesOutputColumns.png
trunk/birt/docs/en/images/hibernate_datasource/hqlFeaturesPreviewResults.png
trunk/birt/docs/en/images/hibernate_datasource/parametersWithinHibernateODADriver.png
trunk/birt/docs/en/images/hibernate_datasource/previewingResults.png
trunk/birt/docs/en/images/hibernate_datasource/testingQuery.png
Log:
https://jira.jboss.org/jira/browse/JBDS-687 - adding new folders with images according to the new guide structure;
Added: trunk/birt/docs/en/images/birt_integration_with_seam/addingBirtFacet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/addingBirtFacet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/birttestsPage.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/birttestsPage.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/projectBirtConfiguration.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/projectBirtConfiguration.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/seamFacet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/seamFacet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/testBirtProject.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/testBirtProject.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/testbirt1Page1.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/testbirt1Page1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/testbirt1Page2.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/testbirt1Page2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_integration_with_seam/testbirtPage.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_integration_with_seam/testbirtPage.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_reports_deployment/BirtPDFReport.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_reports_deployment/BirtPDFReport.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_reports_deployment/addingActionButton.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_reports_deployment/addingActionButton.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/birt_reports_deployment/openingArticlesPage.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/birt_reports_deployment/openingArticlesPage.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/BIRTReportPreviewTab.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/BIRTReportPreviewTab.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/BIRTReportUsingDataSourceAndSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/BIRTReportUsingDataSourceAndSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/BirtPDFReport.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/BirtPDFReport.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/addingHibernateODADataset.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/addingHibernateODADataset.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/addingNewParameter.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/addingNewParameter.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/connectionSuccessful.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/connectionSuccessful.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/creatingDataSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/creatingDataSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/creatingDataSource.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/creatingDataSource.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/creatingNewBirtReport.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/creatingNewBirtReport.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/hibernateDataSource.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/hibernateDataSource.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/hqlFeaturesOutputColumns.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/hqlFeaturesOutputColumns.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/hqlFeaturesPreviewResults.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/hqlFeaturesPreviewResults.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/parametersWithinHibernateODADriver.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/parametersWithinHibernateODADriver.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/previewingResults.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/previewingResults.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/hibernate_datasource/testingQuery.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/hibernate_datasource/testingQuery.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 8 months
JBoss Tools SVN: r14588 - trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-04-08 03:13:05 -0400 (Wed, 08 Apr 2009)
New Revision: 14588
Modified:
trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Richfaces3_3.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4143 - There are a few duplicated declarations of some attributes in KB plug-in for RichFaces libs. - Fixed
Modified: trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Richfaces3_3.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Richfaces3_3.xml 2009-04-08 06:01:45 UTC (rev 14587)
+++ trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Richfaces3_3.xml 2009-04-08 07:13:05 UTC (rev 14588)
@@ -153,16 +153,6 @@
<proposal type="bundleProperty" />
</attribute-type>
<attribute type="onbeforedomupdate" />
- <attribute-type name="onbeforedomupdate" required="false">
- <description>
- JavaScript code for call before DOM has been updated on
- client side
- </description>
- <proposal type="beanProperty" />
- <proposal type="jsfVariables" />
- <proposal type="bundleProperty" />
- </attribute-type>
- <attribute type="onbeforedomupdate" />
<attribute-type name="oncomplete" required="false">
<description>
JavaScript code for call after request completed on
@@ -1143,15 +1133,6 @@
<proposal type="bundleProperty"/>
</attribute-type>
<attribute type="handler"/>
- <attribute-type name="type" required="false">
- <description>
- JSF Validator type, that implements GraphValidator interface.This validator is used for the Graph and input fields validation.
- </description>
- <proposal type="beanProperty"/>
- <proposal type="jsfVariables"/>
- <proposal type="bundleProperty"/>
- </attribute-type>
- <attribute type="type"/>
<attribute-type name="key" required="false">
<description>
Defines the hotkey itself
15 years, 8 months
JBoss Tools SVN: r14587 - trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-08 02:01:45 -0400 (Wed, 08 Apr 2009)
New Revision: 14587
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.properties
Removed:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java
Log:
JBIDE-4044 - NLS
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties 2009-04-08 05:52:30 UTC (rev 14586)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties 2009-04-08 06:01:45 UTC (rev 14587)
@@ -1,5 +0,0 @@
-jeeClasspathAdding=Adding {0}
-jeeClasspathBody=Click finish to continue adding {0} to your project's classpath.
-jeeClasspathDescription=These libraries include the API and Source for the chosen JEE version.
-ejb3ClasspathPageTitle=JBoss EJB 3.0 Libraries
-ejb3ClasspathPageDescription=Add EJB 3.0 Libraries from one of the declared servers.
\ No newline at end of file
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java 2009-04-08 05:52:30 UTC (rev 14586)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java 2009-04-08 06:01:45 UTC (rev 14587)
@@ -30,6 +30,6 @@
public static String ejb3ClasspathPageTitle;
public static String ejb3ClasspathPageDescription;
static {
- NLS.initializeMessages("org.jboss.ide.eclipse.as.classpath.ui.ClasspathUIMessages", Messages.class); //$NON-NLS-1$
+ NLS.initializeMessages("org.jboss.ide.eclipse.as.classpath.ui.Messages", Messages.class); //$NON-NLS-1$
}
}
Copied: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.properties (from rev 14586, trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties)
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.properties (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.properties 2009-04-08 06:01:45 UTC (rev 14587)
@@ -0,0 +1,5 @@
+jeeClasspathAdding=Adding {0}
+jeeClasspathBody=Click finish to continue adding {0} to your project's classpath.
+jeeClasspathDescription=These libraries include the API and Source for the chosen JEE version.
+ejb3ClasspathPageTitle=JBoss EJB 3.0 Libraries
+ejb3ClasspathPageDescription=Add EJB 3.0 Libraries from one of the declared servers.
\ No newline at end of file
15 years, 8 months
JBoss Tools SVN: r14586 - in trunk/as/plugins: org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-08 01:52:30 -0400 (Wed, 08 Apr 2009)
New Revision: 14586
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java
Log:
JBIDE-4044 - NLS
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java 2009-04-08 05:43:51 UTC (rev 14585)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java 2009-04-08 05:52:30 UTC (rev 14586)
@@ -30,6 +30,6 @@
public static String ejb3ClasspathPageTitle;
public static String ejb3ClasspathPageDescription;
static {
- NLS.initializeMessages(ClasspathUIPlugin.PLUGIN_ID + ".ClasspathUIMessages", Messages.class); //$NON-NLS-1$
+ NLS.initializeMessages("org.jboss.ide.eclipse.as.classpath.ui.ClasspathUIMessages", Messages.class); //$NON-NLS-1$
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java 2009-04-08 05:43:51 UTC (rev 14585)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java 2009-04-08 05:52:30 UTC (rev 14586)
@@ -31,7 +31,7 @@
public static String runModeNotSupported;
static {
- NLS.initializeMessages(JBossServerCorePlugin.PLUGIN_ID + ".Messages",
+ NLS.initializeMessages("org.jboss.ide.eclipse.as.core.Messages",
Messages.class);
}
}
15 years, 8 months
JBoss Tools SVN: r14585 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/src/org/jboss/ide/eclipse/as/ui/mbeans.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-08 01:43:51 -0400 (Wed, 08 Apr 2009)
New Revision: 14585
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/src/org/jboss/ide/eclipse/as/ui/mbeans/Messages.java
Log:
JBIDE-4044 - NLS
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/src/org/jboss/ide/eclipse/as/ui/mbeans/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/src/org/jboss/ide/eclipse/as/ui/mbeans/Messages.java 2009-04-08 05:40:57 UTC (rev 14584)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/src/org/jboss/ide/eclipse/as/ui/mbeans/Messages.java 2009-04-08 05:43:51 UTC (rev 14585)
@@ -54,7 +54,7 @@
static {
- NLS.initializeMessages(Activator.PLUGIN_ID + ".Messages",
+ NLS.initializeMessages("org.jboss.ide.eclipse.as.ui.mbeans.Messages",
Messages.class);
}
}
15 years, 8 months
JBoss Tools SVN: r14584 - in trunk: as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-08 01:40:57 -0400 (Wed, 08 Apr 2009)
New Revision: 14584
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PollerSection.java
Log:
JBIDE-4044 - NLS
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java 2009-04-08 05:40:57 UTC (rev 14584)
@@ -51,38 +51,16 @@
public static String PackageInfoWizardPage_error_noDestination;
public static String PackageInfoWizardPage_explodedButton_label;
public static String PackageInfoWizardPage_infoGroup_label;
- public static String PackageInfoWizardPage_manifestBrowseButton_label;
public static String PackageInfoWizardPage_message;
public static String PackageInfoWizardPage_packageName_label;
public static String PackageInfoWizardPage_packageTypeGroup_label;
public static String PackageInfoWizardPage_title;
- public static String PackageNodeDestinationComposite_destinationBrowseButton_label;
-
- public static String PackageDestinationComposite_filesystemBrowseButton_label;
public static String PackageDestinationComposite_workspaceBrowseButton_label;
-
- public static String PackageNodeDestinationDialog_filesetLabel;
- public static String PackageNodeDestinationDialog_folderLabel;
- public static String PackageNodeDestinationDialog_messagePrefix;
- public static String PackageNodeDestinationDialog_packageLabel;
public static String PackageNodeDestinationDialog_title;
- public static String PackagesLabelProvider_filesetProperty_destination;
- public static String PackagesLabelProvider_filesetProperty_dir;
- public static String PackagesLabelProvider_filesetProperty_excludes;
- public static String PackagesLabelProvider_filesetProperty_file;
- public static String PackagesLabelProvider_filesetProperty_includes;
- public static String PackagesLabelProvider_filesetProperty_project;
- public static String PackagesLabelProvider_filesetProperty_sourceFolder;
-
- public static String ProjectPackagesView_noProjectSelectedMessage;
- public static String ProjectPackagesView_noPackagesDefinedMessage;
- public static String ProjectPackagesView_createPackagesMessage;
public static String ProjectPackagesView_newFolderAction_label;
public static String ProjectPackagesView_newFilesetAction_label;
- public static String ProjectPackagesView_newActionAction_label;
- public static String ProjectPackagesView_collapseAllAction_label;
public static String ProjectPackagesView_deletePackageAction_label;
public static String ProjectPackagesView_editPackageAction_label;
public static String ProjectPackagesView_newPackageMenu_label;
@@ -90,8 +68,6 @@
public static String ProjectPackagesView_deleteFolderAction_label;
public static String ProjectPackagesView_editFilesetAction_label;
public static String ProjectPackagesView_deleteFilesetAction_label;
- public static String ProjectPackagesView_editActionAction_label;
- public static String ProjectPackagesView_deleteActionAction_label;
public static String ProjectPackagesView_buildArchiveAction_label;
public static String ProjectPackagesView_buildProjectAction_label;
@@ -105,23 +81,10 @@
public static String FilesetInfoWizardPage_edit_title;
public static String FilesetInfoWizardPage_infoGroup_title;
public static String FilesetInfoWizardPage_destination_label;
- public static String FilesetInfoWizardPage_multipleFilesButton_label;
- public static String FilesetInfoWizardPage_singleFileButton_label;
- public static String FilesetInfoWizardPage_rootProject_label;
public static String FilesetInfoWizardPage_rootDirectory_label;
- public static String FilesetInfoWizardPage_rootDirWorkspaceBrowseButton_label;
- public static String FilesetInfoWizardPage_rootDirFilesystemBrowseButton_label;
public static String FilesetInfoWizardPage_includes_label;
public static String FilesetInfoWizardPage_excludes_label;
- public static String FilesetInfoWizardPage_singleFileProject_label;
- public static String FilesetInfoWizardPage_singleFile_label;
- public static String FilesetInfoWizardPage_fileWorkspaceBrowseButton_label;
- public static String FilesetInfoWizardPage_fileFilesystemBrowseButton_label;
public static String FilesetInfoWizardPage_previewGroup_label;
- public static String FilesetInfoWizardPage_noProjectMessage;
- public static String FilesetInfoWizardPage_rootDirWorkspaceBrowser_message;
- public static String FilesetInfoWizardPage_fileWorkspaceBrowser_title;
- public static String FilesetInfoWizardPage_fileWorkspaceBrowser_message;
/* Preference Page */
public static String PreferencePageTitle;
@@ -139,16 +102,6 @@
public static String FilesetPreferences;
public static String EnableDefaultExcludes;
- public static String ArchivesVariables;
- public static String VariablesGroup;
- public static String Add;
- public static String Edit;
- public static String Remove;
- public static String Enable;
- public static String Disable;
- public static String MoveUp;
- public static String MoveDown;
-
static {
NLS.initializeMessages("org.jboss.ide.eclipse.archives.ui.ArchivesUIMessages", ArchivesUIMessages.class); //$NON-NLS-1$
}
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties 2009-04-08 02:47:57 UTC (rev 14583)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties 2009-04-08 05:40:57 UTC (rev 14584)
@@ -24,24 +24,15 @@
Yes=Yes
No=No
-
-
-ProjectPackagesView_noProjectSelectedMessage=Please select an opened project or resource.
-ProjectPackagesView_noPackagesDefinedMessage=No archives have been defined for the project "{0}".
-ProjectPackagesView_createPackagesMessage=Project has no defined archives. Create an Archive:
ProjectPackagesView_newPackageMenu_label=New Archive
ProjectPackagesView_newFolderAction_label=New Folder
ProjectPackagesView_newFilesetAction_label=New Fileset
-ProjectPackagesView_newActionAction_label=New Action
-ProjectPackagesView_collapseAllAction_label=Collapse All
ProjectPackagesView_deletePackageAction_label=Delete Archive
ProjectPackagesView_deleteFilesetAction_label=Delete Fileset
ProjectPackagesView_deleteFolderAction_label=Delete Folder
-ProjectPackagesView_deleteActionAction_label=Delete Action
ProjectPackagesView_editPackageAction_label=Edit Archive
ProjectPackagesView_editFolderAction_label=Edit Folder
ProjectPackagesView_editFilesetAction_label=Edit Fileset
-ProjectPackagesView_editActionAction_label=Edit Action
ProjectPackagesView_buildArchiveAction_label=Build Archive (Full)
ProjectPackagesView_buildProjectAction_label=Build Project (Full)
ProjectPackagesView_createFolderDialog_title=Create a folder
@@ -54,30 +45,16 @@
FilesetInfoWizardPage_edit_title=Edit Fileset
FilesetInfoWizardPage_infoGroup_title=Fileset information
FilesetInfoWizardPage_destination_label=Destination:
-FilesetInfoWizardPage_multipleFilesButton_label=Create a fileset that has multiple files
-FilesetInfoWizardPage_singleFileButton_label=Create a fileset that has just one file
-FilesetInfoWizardPage_rootProject_label=Root project:
FilesetInfoWizardPage_rootDirectory_label=Root directory:
-FilesetInfoWizardPage_rootDirWorkspaceBrowseButton_label=Workspace...
-FilesetInfoWizardPage_rootDirFilesystemBrowseButton_label=Filesystem...
FilesetInfoWizardPage_includes_label=Includes:
FilesetInfoWizardPage_excludes_label=Excludes:
-FilesetInfoWizardPage_singleFileProject_label=Project:
-FilesetInfoWizardPage_singleFile_label=File:
-FilesetInfoWizardPage_fileWorkspaceBrowseButton_label=Workspace...
-FilesetInfoWizardPage_fileFilesystemBrowseButton_label=Filesystem...
FilesetInfoWizardPage_previewGroup_label=Preview
-FilesetInfoWizardPage_noProjectMessage=N/A
-FilesetInfoWizardPage_rootDirWorkspaceBrowser_message=Select a root directory for this fileset
-FilesetInfoWizardPage_fileWorkspaceBrowser_title=Select file
-FilesetInfoWizardPage_fileWorkspaceBrowser_message=Select a file for this fileset
PackageInfoWizardPage_title=Create a new archive
PackageInfoWizardPage_message=Create a new archive consisting of filesets in the workspace.
PackageInfoWizardPage_infoGroup_label=Archive information
PackageInfoWizardPage_packageName_label=Archive name:
PackageInfoWizardPage_destination_label=Destination:
-PackageInfoWizardPage_manifestBrowseButton_label=Browse...
PackageInfoWizardPage_packageTypeGroup_label=Archive type
PackageInfoWizardPage_compressedButton_label=Standard archive using zip compression
PackageInfoWizardPage_explodedButton_label=Exploded archive resulting in a folder (no compression)
@@ -85,27 +62,10 @@
PackageInfoWizardPage_error_packageAlreadyExists=The archive "{0}" already exists.
PackageInfoWizardPage_error_noDestination=There is no destination selected for this archive.
-PackageNodeDestinationComposite_destinationBrowseButton_label=Browse...
-
-PackageDestinationComposite_filesystemBrowseButton_label=Filesystem...
PackageDestinationComposite_workspaceBrowseButton_label=Workspace...
NewJARWizard_windowTitle=New JAR
NewJARWizard_windowTitle_editJAR=Edit Archive
-
-PackagesLabelProvider_filesetProperty_destination=Destination :
-PackagesLabelProvider_filesetProperty_sourceFolder=Source Folder :
-PackagesLabelProvider_filesetProperty_excludes=Excludes :
-PackagesLabelProvider_filesetProperty_includes=Includes :
-PackagesLabelProvider_filesetProperty_project=Project :
-PackagesLabelProvider_filesetProperty_file=File :
-
-PackagesLabelProvider_filesetProperty_dir=Dir :
-
-PackageNodeDestinationDialog_messagePrefix=Please select a destination for this
-PackageNodeDestinationDialog_packageLabel=archive
-PackageNodeDestinationDialog_filesetLabel=fileset
-PackageNodeDestinationDialog_folderLabel=folder
PackageNodeDestinationDialog_title=Select a destination
PreferencePageTitle=Project Archives
@@ -121,13 +81,4 @@
ShowRootProject=Show project at the root
ShowAllProjects=Show all projects that contain packages
FilesetPreferences=Fileset Preferences
-EnableDefaultExcludes=Enable Default Excludes
-ArchivesVariables=Archives Variables
-VariablesGroup=Enabled Variables
-Add=Add
-Edit=Edit
-Remove=Remove
-Enable=Enable
-Disable=Disable
-MoveUp=Move Up
-MoveDown=Move Down
\ No newline at end of file
+EnableDefaultExcludes=Enable Default Excludes
\ No newline at end of file
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2009-04-08 02:47:57 UTC (rev 14583)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2009-04-08 05:40:57 UTC (rev 14584)
@@ -39,7 +39,6 @@
public static String rwf_TitleCreate;
public static String rwf_TitleEdit;
public static String rwf_Explanation;
- public static String rwf_BaseName;
public static String rwf_NameInUse;
public static String rwf_homeMissingFiles;
public static String rwf_homeIncorrectVersion;
@@ -52,7 +51,6 @@
public static String swf_Explanation;
public static String swf_Explanation2;
public static String swf_AuthenticationGroup;
- public static String swf_DeployGroup;
public static String swf_Username;
public static String swf_Password;
public static String swf_BaseName;
@@ -69,30 +67,6 @@
public static String credentials_save;
- /* Module extension properties */
- public static String ModulePropertyType;
- public static String ModulePropertyProject;
- public static String ModulePropertyModuleFactory;
- public static String ModulePropertyName;
-
- public static String RefreshViewerAction;
- public static String DisableCategoryAction;
- public static String EditLaunchConfigurationAction;
- public static String TwiddleServerAction;
- public static String CloneServerAction;
-
- /* Properties of view extenders (categories) */
- public static String ExtensionID;
- public static String ExtensionName;
- public static String ExtensionDescription;
- public static String ExtensionProviderClass;
-
- /* Properties of JBoss Servers in the view Properties */
- public static String ServerRuntimeVersion;
- public static String ServerHome;
- public static String ServerConfigurationName;
- public static String ServerDeployDir;
-
public static String property;
public static String value;
@@ -106,12 +80,6 @@
/* Action Delegate */
- public static String ActionDelegateStartServer;
- public static String ActionDelegateStopServer;
- public static String ActionDelegateDebugServer;
- public static String ActionDelegateNew;
- public static String ActionDelegateNewMBeanStubs;
- public static String ActionDelegateNewServer;
public static String ActionDelegateMakeDeployable;
public static String ActionDelegateMakeUndeployable;
public static String ActionDelegateDeployableServersNotFoundTitle;
@@ -131,7 +99,6 @@
public static String TwiddleDialogExecute;
public static String TwiddleDialogDone;
public static String TwiddleDialogArguments;
- public static String TwiddleDialogTutorial;
/* XPath Dialog */
public static String XPathNewCategory;
@@ -147,36 +114,12 @@
public static String XPathPattern;
public static String XPathAttribute;
- /* Preference Page */
- public static String PreferencePageServerTimeouts;
- public static String PreferencePageStartTimeouts;
- public static String PreferencePageStopTimeouts;
- public static String PreferencePageUponTimeout;
- public static String PreferencePageUponTimeoutAbort;
- public static String PreferencePageUponTimeoutIgnore;
- /* View Preference Page */
- public static String ViewPreferencePageName;
- public static String ViewPreferencePageEnabled;
- public static String ViewPreferencePageWeight;
- public static String ViewPreferencePageDescription;
- public static String ViewExtensionEnablementDescription;
- public static String ViewExtensionPreferenceDescription;
-
public static String DescriptorXPathRemoveCategory;
public static String DescriptorXPathRemoveCategoryDesc;
public static String DescriptorXPathNewXPath;
public static String DescriptorXPathEditXPath;
public static String DescriptorXPathDeleteXPath;
- public static String DescriptorXPathAttributeValue;
- public static String DescriptorXPathXPathXML;
- public static String DescriptorXPathAttributeKeyValue;
- public static String DescriptorXPathDescriptorValues;
- public static String DescriptorXPathNameLocation;
- public static String DescriptorXPathServerName;
- public static String DescriptorXPathPortCategory;
- public static String DescriptorXPathSimple;
- public static String DescriptorXPathComplex;
public static String DescriptorXPathMatch;
@@ -221,7 +164,7 @@
public static String LaunchInvalidHostChanged;
static {
- NLS.initializeMessages(JBossServerUIPlugin.PLUGIN_ID + ".Messages",
+ NLS.initializeMessages("org.jboss.ide.eclipse.as.ui.Messages",
Messages.class);
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2009-04-08 02:47:57 UTC (rev 14583)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2009-04-08 05:40:57 UTC (rev 14584)
@@ -9,7 +9,6 @@
rwf_TitleCreate=Create a new JBoss Runtime
rwf_TitleEdit=Edit a JBoss Runtime
rwf_Explanation=A JBoss Server runtime references a JBoss installation directory.\nIt can be used to set up classpaths for projects which depend on this runtime,\nas well as by a "server" which will be able to start and stop instances of JBoss.
-rwf_BaseName=JBoss _VERSION_ Runtime
rwf_NameInUse=Runtime name already in use
rwf_homeMissingFiles=The home directory does not exist or is missing the run.jar.
rwf_homeIncorrectVersion=This server type expects a version of {0} but the server directory is of version {1}.
@@ -28,7 +27,6 @@
swf_Password=Password
swf_BaseName=JBoss _VERSION_ Server
swf_NameInUse=Server name already in use
-swf_DeployGroup=Deployment
swf_DeployEditorHeading=Deployment
swf_DeploymentDescription=The temporary deployment location is where files will \nbe copied to before being renamed into the deploy directory. \nThis folder should be on the same file system \nas the deploy folder.
swf_DeployDirectory=Deploy Directory
@@ -42,29 +40,11 @@
#Server View (server and categories, properties)
property=Property
value=Value
-ExtensionID=Extension ID
-ExtensionName=Extension Name
-ExtensionDescription=Extension Description
-ExtensionProviderClass=Extension Provider Class
-RefreshViewerAction=Refresh Viewer
-DisableCategoryAction=Disable Category
-EditLaunchConfigurationAction=Edit Launch Configuration
-TwiddleServerAction=Twiddle Server
-CloneServerAction=Clone Server
-ServerRuntimeVersion=Runtime Version
-ServerHome=Home Directory
-ServerConfigurationName=Configuration Name
-ServerDeployDir=Deploy Directory
-
#Server View Dialog Heading
ServerDialogHeading=JBoss Server
#View's Module extension
-ModulePropertyType=Type
-ModulePropertyProject=Project
-ModulePropertyModuleFactory=Factory
-ModulePropertyName=Name
DeleteModuleText=Remove
FullPublishModuleText=Full Publish
IncrementalPublishModuleText=Incremental Publish
@@ -74,12 +54,6 @@
#Action Delegate
-ActionDelegateStartServer=Start Server
-ActionDelegateStopServer=Stop Server
-ActionDelegateDebugServer=Start Server (Debug Mode)
-ActionDelegateNew=New
-ActionDelegateNewMBeanStubs=New MBean Stubs
-ActionDelegateNewServer=New Server
ActionDelegateMakeDeployable=Make Deployable
ActionDelegateMakeUndeployable=Make Undeployable
ActionDelegateDeployableServersNotFoundTitle=No deployable servers found
@@ -98,7 +72,6 @@
TwiddleDialogExecute=Execute Twiddle
TwiddleDialogDone=Done
TwiddleDialogArguments=Twiddle Arguments\:
-TwiddleDialogTutorial=Twiddle Tutorial
#XPath Dialog
@@ -116,25 +89,7 @@
#preference page
-PreferencePageServerTimeouts=Server Timeouts
-PreferencePageStartTimeouts=Start Timeout
-PreferencePageStopTimeouts=Stop Timeout
-PreferencePageUponTimeout=Upon Timeout\:
-PreferencePageUponTimeoutAbort=Abort Server Transition
-PreferencePageUponTimeoutIgnore=Set Server State to Target State
-#View Preference Page
-ViewPreferencePageName=Name
-ViewPreferencePageEnabled=Enabled
-ViewPreferencePageWeight=Weight
-ViewPreferencePageDescription=Description
-
-ViewExtensionEnablementDescription=Below is a list of extensions that may be enabled for the\
-JBoss Servers View. \n The enablement box designates whether the extension should be present.\
-The weight field \ndesignates how "heavy" each extension is. (Heavier elements fall towards the bottom.)
-
-ViewExtensionPreferenceDescription=Below, you may set or clear any preferences specific to each view extension above. \nSome extensions may have no preferences to set.
-
###########################################
############## view providers
###########################################
@@ -145,15 +100,6 @@
DescriptorXPathNewXPath=New XPath
DescriptorXPathEditXPath=Edit XPath
DescriptorXPathDeleteXPath=Delete XPath
-DescriptorXPathAttributeValue=Value
-DescriptorXPathXPathXML=XPath / XML
-DescriptorXPathAttributeKeyValue=Attribute Key / Value
-DescriptorXPathDescriptorValues=Descriptor Values
-DescriptorXPathNameLocation=Name / Location
-DescriptorXPathServerName=Server Name\:
-DescriptorXPathPortCategory=Port Category\:
-DescriptorXPathSimple=Show only xpath value in properties view.
-DescriptorXPathComplex=Show all details in properties view.
DescriptorXPathMatch=Match
#Editor
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PollerSection.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PollerSection.java 2009-04-08 02:47:57 UTC (rev 14583)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PollerSection.java 2009-04-08 05:40:57 UTC (rev 14584)
@@ -127,7 +127,7 @@
public class SetStopPollerCommand extends SetPollerCommand {
public SetStopPollerCommand(IServerWorkingCopy server) {
- super(server, Messages.EditorChangeStartPollerCommandName, IJBossServerConstants.SHUTDOWN_POLLER_KEY,
+ super(server, Messages.EditorChangeStopPollerCommandName, IJBossServerConstants.SHUTDOWN_POLLER_KEY,
IJBossServerConstants.DEFAULT_SHUTDOWN_POLLER,
shutdownTypes, stopPollerCombo, stopPollerListener);
}
15 years, 8 months
JBoss Tools SVN: r14583 - in trunk: common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-04-07 22:47:57 -0400 (Tue, 07 Apr 2009)
New Revision: 14583
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/preferences.properties
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/TemplateMessages.java
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/SelectionListenerWithSMManager.java
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.java
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.properties
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/jst/jsp/text/xpl/DefaultStructuredTextOccurrenceStructureProvider.java
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUIMessages.java
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUiPlugin.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.properties
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/TLDEditorMessages.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/Messages.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.java
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLMessages.java
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLPlugin.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLMessages.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLPlugin.java
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/preferences.properties
Log:
JBIDE-3557 Externalise English strings - converted some Eclipse message bundles to new-style, marked apparently obsolete messages as non-translatable.
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/preferences.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/preferences.properties 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/preferences.properties 2009-04-08 02:47:57 UTC (rev 14583)
@@ -1,6 +1,10 @@
# PD (PREFERENCE DESCRIPTION)
+# START NON-TRANSLATABLE
+# suspected OBSOLETE
+# see /org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/preferences.properties
XSTUDIO_PD=JBoss Tools allows you to set preferences for default text, editor behavior, new project defaults, and the built-in Tomcat engine.
AUTOMATION_PD=Here you can modify default text for the Tiles Struts plug-in element, the Validator Struts plug-in element, and error message resource files.
LIBRARY_SETS_PD=Here you can modify what libraries get included in the project file systems for new Struts projects. You can modify this specifically for different versions of the Servlet and Struts technologies that might be used with a project.
EDITORS_PD=Here you can control the behavior of the JBoss Tools JSP, XML, and Web Flow Configuration editors.
+# END NON-TRANSLATABLE
REDHAT=JBoss Tools Web preferences.
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/TemplateMessages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/TemplateMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/TemplateMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -7,35 +7,23 @@
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.common.model.ui.templates;
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
+import org.eclipse.osgi.util.NLS;
-/**
- * @author au
- */
-public class TemplateMessages {
- /*
- * implements singelton pattern
- */
- private static final String RESOURCE_BUNDLE= "org.jboss.tools.common.model.ui.templates.messages";
+public final class TemplateMessages extends NLS {
- private static ResourceBundle resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
+ private static final String BUNDLE_NAME = "org.jboss.tools.common.model.ui.templates.messages";//$NON-NLS-1$
- private TemplateMessages() {}
-
- public static String getString(String key) {
- try {
- return resourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return "%"+key+"%";
- }
+ private TemplateMessages() {
+ // Do not instantiate
}
- public static String getString(String key, String[] args) {
- return MessageFormat.format(getString(key), args);
- }
-}
+ public static String preferenceTextLabel;
+ public static String propertyTextLabel;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, TemplateMessages.class);
+ }
+}
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/SelectionListenerWithSMManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/SelectionListenerWithSMManager.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/SelectionListenerWithSMManager.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -123,7 +123,7 @@
return;
}
- fCurrentJob= new Job(UIMessages.getString("SelectionListenerWithSMManager.job.title")) { //$NON-NLS-1$
+ fCurrentJob= new Job(UIMessages.SelectionListenerWithSMManager_job_title) {
public IStatus run(IProgressMonitor monitor) {
if (monitor == null) {
monitor= new NullProgressMonitor();
Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -12,37 +12,20 @@
*******************************************************************************/
package org.jboss.tools.common.text.xml.ui.xpl;
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
+import org.eclipse.osgi.util.NLS;
-/**
- * @author Jeremy
- *
- */
-public class UIMessages {
+public final class UIMessages extends NLS {
- private static final String RESOURCE_BUNDLE= "org.jboss.tools.common.text.xml.ui.xpl.UIMessages";//$NON-NLS-1$
+ private static final String BUNDLE_NAME = "org.jboss.tools.common.text.xml.ui.xpl.UIMessages";//$NON-NLS-1$
- private static ResourceBundle fgResourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE);
-
private UIMessages() {
+ // Do not instantiate
}
- public static String getString(String key) {
- try {
- return fgResourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-
- public static String getFormattedString(String key, String arg) {
- return getFormattedString(key, new String[] { arg });
- }
-
- public static String getFormattedString(String key, String[] args) {
- return MessageFormat.format(getString(key), (Object[])args);
- }
+ public static String SelectionListenerWithSMManager_job_title;
+ public static String RedHatStructuredTextEditor_markOccurrences_job_name;
-}
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, UIMessages.class);
+ }
+}
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.properties 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/ui/xpl/UIMessages.properties 2009-04-08 02:47:57 UTC (rev 14583)
@@ -11,5 +11,5 @@
# Red Hat, Inc.
# ******************************************************************************
-SelectionListenerWithSMManager.job.title=JBoss tools SM creation
-RedHatStructuredTextEditor.markOccurrences.job.name
\ No newline at end of file
+SelectionListenerWithSMManager_job_title=JBoss tools SM creation
+RedHatStructuredTextEditor_markOccurrences_job_name
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/jst/jsp/text/xpl/DefaultStructuredTextOccurrenceStructureProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/jst/jsp/text/xpl/DefaultStructuredTextOccurrenceStructureProvider.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/jst/jsp/text/xpl/DefaultStructuredTextOccurrenceStructureProvider.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -166,7 +166,7 @@
private Position[] fPositions;
public OccurrencesFinderJob(IDocument document, Position[] positions, ISelection selection) {
- super(UIMessages.getString("RedHatStructuredTextEditor.markOccurrences.job.name")); //$NON-NLS-1$
+ super(UIMessages.RedHatStructuredTextEditor_markOccurrences_job_name);
fDocument= document;
fSelection= selection;
fPositions= positions;
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUIMessages.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUIMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUIMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -10,26 +10,19 @@
******************************************************************************/
package org.jboss.tools.esb.ui;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
+import org.eclipse.osgi.util.NLS;
-/**
- * @author Viacheslav Kabanovich
- */
-public class ESBUIMessages {
- private static final String BUNDLE_NAME = "org.jboss.tools.esb.ui.messages"; //$NON-NLS-1$
+public final class ESBUIMessages extends NLS {
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
+ private static final String BUNDLE_NAME = "org.jboss.tools.esb.ui.messages";//$NON-NLS-1$
private ESBUIMessages() {
+ // Do not instantiate
}
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
+ public static String ESB_UI_PLUGIN_NO_MESSAGES;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, ESBUIMessages.class);
}
-}
+}
\ No newline at end of file
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUiPlugin.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUiPlugin.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/ESBUiPlugin.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -52,7 +52,7 @@
}
public static void log(Throwable ex) {
- INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, ESBUIMessages.getString("ESB_UI_PLUGIN_NO_MESSAGES"), ex)); //$NON-NLS-1$
+ INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, ESBUIMessages.ESB_UI_PLUGIN_NO_MESSAGES, ex));
}
public static Shell getShell() {
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -88,13 +88,13 @@
private static Map texts = new HashMap();
static {
- texts.put(BundlesNameResourceElement.class, TreeViewerMessages.getString("BundlesNameResourceElement.name"));
- texts.put(BundlesPropertiesResourceElement.class, TreeViewerMessages.getString("BundlesPropertiesResourceElement.name"));
- texts.put(EnumerationResourceElement.class, TreeViewerMessages.getString("EnumerationResourceElement.name"));
- texts.put(JsfVariablesResourceElement.class, TreeViewerMessages.getString("JsfVariablesResourceElement.name"));
- texts.put(ManagedBeanMethodResourceElement.class, TreeViewerMessages.getString("ManagedBeanMethodResourceElement.name"));
- texts.put(ManagedBeansPropertiesResourceElement.class, TreeViewerMessages.getString("ManagedBeansPropertiesResourceElement.name"));
- texts.put(ViewActionsResorceElement.class, TreeViewerMessages.getString("ViewActionsResorceElement.name"));
+ texts.put(BundlesNameResourceElement.class, TreeViewerMessages.BundlesNameResourceElement_name);
+ texts.put(BundlesPropertiesResourceElement.class, TreeViewerMessages.BundlesPropertiesResourceElement_name);
+ texts.put(EnumerationResourceElement.class, TreeViewerMessages.EnumerationResourceElement_name);
+ texts.put(JsfVariablesResourceElement.class, TreeViewerMessages.JsfVariablesResourceElement_name);
+ texts.put(ManagedBeanMethodResourceElement.class, TreeViewerMessages.ManagedBeanMethodResourceElement_name);
+ texts.put(ManagedBeansPropertiesResourceElement.class, TreeViewerMessages.ManagedBeansPropertiesResourceElement_name);
+ texts.put(ViewActionsResorceElement.class, TreeViewerMessages.ViewActionsResorceElement_name);
}
private Map imageCache = new HashMap();
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -7,30 +7,40 @@
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.jst.jsp.drop.treeviewer.ui;
-import java.util.MissingResourceException;
import java.util.ResourceBundle;
-import org.jboss.tools.jst.jsp.JspEditorPlugin;
+import org.eclipse.osgi.util.NLS;
-public class TreeViewerMessages {
+public final class TreeViewerMessages extends NLS {
- private static final String RESOURCE_BUNDLE = "org.jboss.tools.jst.jsp.drop.treeviewer.ui.TreeViewerMessages";
+ private static final String BUNDLE_NAME = "org.jboss.tools.jst.jsp.drop.treeviewer.ui.TreeViewerMessages";//$NON-NLS-1$
- private static ResourceBundle resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
+ private TreeViewerMessages() {
+ // Do not instantiate
+ }
- public static String getString(String key) {
- try {
- return resourceBundle.getString(key);
- } catch (MissingResourceException e) {
- JspEditorPlugin.getPluginLog().logError(e);
- return "%" + key + "%";
- }
+ public static String BundlesNameResourceElement_name;
+ public static String BundlesPropertiesResourceElement_name;
+ public static String EnumerationResourceElement_name;
+ public static String JsfVariablesResourceElement_name;
+ public static String ManagedBeanMethodResourceElement_name;
+ public static String ManagedBeansPropertiesResourceElement_name;
+ public static String ViewActionsResorceElement_name;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, TreeViewerMessages.class);
}
+
+ /**
+ * @deprecated use the string fields
+ * @return
+ */
public static ResourceBundle getResourceBundle() {
- return resourceBundle;
+ return ResourceBundle.getBundle(BUNDLE_NAME);
}
+
}
\ No newline at end of file
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.properties 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/TreeViewerMessages.properties 2009-04-08 02:47:57 UTC (rev 14583)
@@ -1,8 +1,8 @@
-BundlesNameResourceElement.name = Resource Bundles
-BundlesPropertiesResourceElement.name = Resource Bundles
-EnumerationResourceElement.name = Enumeration
-JsfVariablesResourceElement.name = JSF Variables
-ManagedBeanMethodResourceElement.name = Managed Beans
-ManagedBeansPropertiesResourceElement.name = Managed Beans
-ViewActionsResorceElement.name = View Actions
\ No newline at end of file
+BundlesNameResourceElement_name = Resource Bundles
+BundlesPropertiesResourceElement_name = Resource Bundles
+EnumerationResourceElement_name = Enumeration
+JsfVariablesResourceElement_name = JSF Variables
+ManagedBeanMethodResourceElement_name = Managed Beans
+ManagedBeansPropertiesResourceElement_name = Managed Beans
+ViewActionsResorceElement_name = View Actions
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/TLDEditorMessages.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/TLDEditorMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/TLDEditorMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -15,6 +15,11 @@
import org.jboss.tools.jst.web.ui.WebUiPlugin;
+/*
+ * NB: The only reference to this file is an xclass in plugin.xml,
+ * and TLDEditorMessages.properties is empty.
+ */
+
public class TLDEditorMessages {
private static final String RESOURCE_BUNDLE= "org.jboss.tools.jst.web.ui.editors.TLDEditorMessages";
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/Messages.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/Messages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/Messages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -1,22 +1,23 @@
-package org.jboss.tools.jst.web.ui.operation;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
- private static final String BUNDLE_NAME = "org.jboss.tools.jst.web.ui.operation.WebProjectCreationOperation"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
+package org.jboss.tools.jst.web.ui.operation;
+
+import org.eclipse.osgi.util.NLS;
+
+public final class Messages extends NLS {
+
+ private static final String BUNDLE_NAME = "org.jboss.tools.jst.web.ui.operation.WebProjectCreationOperation";//$NON-NLS-1$
+
+ private Messages() {
+ // Do not instantiate
+ }
+
+ public static String COD_MESSAGE;
+ public static String COD_TITLE;
+ public static String BTN_CANCEL;
+ public static String BTN_OK;
+ public static String ADOPT_WILL_OVERWRITE_DOT_FILES_MESSAGE;
+ public static String ADOPT_WILL_CLEAR_WORKSPACE_MESSAGE;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+}
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -149,7 +149,7 @@
ServiceDialog d = PreferenceModelUtilities.getPreferenceModel().getService();
String message = MessageFormat.format(
- Messages.getString("ADOPT_WILL_OVERWRITE_DOT_FILES_MESSAGE"),new Object[]{dots} //$NON-NLS-1$
+ Messages.ADOPT_WILL_OVERWRITE_DOT_FILES_MESSAGE,new Object[]{dots}
);
int q = d.showDialog("Warning", message, new String[]{"Continue", "Cancel"}, null, ServiceDialog.WARNING);
if(q != 0) return false;
@@ -173,7 +173,7 @@
ServiceDialog d = PreferenceModelUtilities.getPreferenceModel().getService();
String message = MessageFormat.format(
- Messages.getString("ADOPT_WILL_CLEAR_WORKSPACE_MESSAGE"),new Object[]{getProject().getName()} //$NON-NLS-1$
+ Messages.ADOPT_WILL_CLEAR_WORKSPACE_MESSAGE,new Object[]{getProject().getName()}
);
int q = d.showDialog("Warning", message, new String[]{"Continue", "Cancel"}, null, ServiceDialog.WARNING);
if(q != 0) return false;
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -183,13 +183,13 @@
String message = MessageFormat.format(
- Messages.getString("COD_MESSAGE"),new Object[]{location} //$NON-NLS-1$
+ Messages.COD_MESSAGE,new Object[]{location}
);
int selAction = dlg.showDialog(
- Messages.getString("COD_TITLE"), //$NON-NLS-1$
+ Messages.COD_TITLE,
message,
- new String[]{Messages.getString("BTN_OK"),Messages.getString("BTN_CANCEL")}, //$NON-NLS-1$//$NON-NLS-2$
+ new String[]{Messages.BTN_OK,Messages.BTN_CANCEL},
null,
ServiceDialog.WARNING
);
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -1,37 +1,23 @@
package org.jboss.tools.seam.pages.xml;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
import org.eclipse.osgi.util.NLS;
public class SeamPagesXMLMessages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.seam.pages.xml.messages"; //$NON-NLS-1$
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
+ public static String SEAM_PAGES_XML_PLUGIN_NO_MESSAGE;
public static String WARNING;
public static String ATTRIBUTE_VIEW_ID_IS_NOT_CORRECT;
public static String TEMPLATE_IS_NOT_SPECIFIED;
public static String TEMPLATE_DOES_NOT_EXIST;
public static String THE_VIEW_WITH_PATH_IS_ALREADY_CREATED;
public static String TEMPLATE_IS_NOT_FOUND;
-
public static String PAGES_CONFIG_CHANGES;
public static String UPDATE_REFERENCE_TO_PAGE;
private SeamPagesXMLMessages() {
}
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-
static {
// load message values from bundle file
NLS.initializeMessages(BUNDLE_NAME, SeamPagesXMLMessages.class);
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLPlugin.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLPlugin.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/SeamPagesXMLPlugin.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -37,7 +37,7 @@
}
public static void log(Exception ex) {
- INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, SeamPagesXMLMessages.getString("SEAM_PAGES_XML_PLUGIN_NO_MESSAGE"), ex)); //$NON-NLS-1$
+ INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, SeamPagesXMLMessages.SEAM_PAGES_XML_PLUGIN_NO_MESSAGE, ex));
}
public static boolean isDebugEnabled() {
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLMessages.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLMessages.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -1,22 +1,18 @@
package org.jboss.tools.seam.xml;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
+import org.eclipse.osgi.util.NLS;
-public class SeamXMLMessages {
- private static final String BUNDLE_NAME = "org.jboss.tools.seam.xml.messages"; //$NON-NLS-1$
+public final class SeamXMLMessages extends NLS {
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
+ private static final String BUNDLE_NAME = "org.jboss.tools.seam.xml.messages";//$NON-NLS-1$
private SeamXMLMessages() {
+ // Do not instantiate
}
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
+ public static String SEAM_XML_PLUGIN_NO_MESSAGE;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, SeamXMLMessages.class);
}
-}
+}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLPlugin.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLPlugin.java 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/SeamXMLPlugin.java 2009-04-08 02:47:57 UTC (rev 14583)
@@ -37,7 +37,7 @@
}
public static void log(Exception ex) {
- INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, SeamXMLMessages.getString("SEAM_XML_PLUGIN_NO_MESSAGE"), ex)); //$NON-NLS-1$
+ INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, SeamXMLMessages.SEAM_XML_PLUGIN_NO_MESSAGE, ex));
}
public static boolean isDebugEnabled() {
Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/preferences.properties
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/preferences.properties 2009-04-08 01:56:28 UTC (rev 14582)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences/preferences.properties 2009-04-08 02:47:57 UTC (rev 14583)
@@ -1,5 +1,10 @@
# PD (PREFERENCE DESCRIPTION)
+# AutomationPreferencePage
AUTOMATION_PD=Here you can modify default text for the Tiles Struts plug-in element,\n\
the Validator Struts plug-in element, and error message resource files.
+# StrutsStudioPreferencesPage
XSTUDIO_PD=Struts Projects specific preferences.
+# START NON-TRANSLATABLE
+# suspected OBSOLETE
EDITORS_PD=Here you can control the behavior of the JBoss Tools JSP, XML, and Web Flow Configuration editors.
+# END NON-TRANSLATABLE
15 years, 8 months
JBoss Tools SVN: r14582 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-04-07 21:56:28 -0400 (Tue, 07 Apr 2009)
New Revision: 14582
Removed:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/Messages.java
Log:
Removed old, unused Messages class whose messages.properties file doesn't exist.
Deleted: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/Messages.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/Messages.java 2009-04-08 01:27:43 UTC (rev 14581)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/Messages.java 2009-04-08 01:56:28 UTC (rev 14582)
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jsf.ui;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
-
- private static final String RESOURCE_BUNDLE = "org.jboss.tools.jsf.ui.messages";
-
- private static ResourceBundle resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return resourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return "%" + key + "%";
- }
- }
-
- public static ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
-
-}
15 years, 8 months