From jbosstools-commits at lists.jboss.org Fri Jan 9 09:14:02 2009 Content-Type: multipart/mixed; boundary="===============5863901833293381127==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r12962 - trunk/smooks/docs/reference/en/modules. Date: Fri, 09 Jan 2009 09:14:02 -0500 Message-ID: --===============5863901833293381127== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-01-09 09:14:01 -0500 (Fri, 09 Jan 2009) New Revision: 12962 Modified: trunk/smooks/docs/reference/en/modules/introduction.xml trunk/smooks/docs/reference/en/modules/quick_start.xml trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpag= e.xml trunk/smooks/docs/reference/en/modules/smooksformeditor_graphicalpage.xml trunk/smooks/docs/reference/en/modules/smooksformeditor_sourcepage.xml Log: https://jira.jboss.org/jira/browse/JBIDE-3296 correcting language for Smook= s guide = all chapters are corrected Modified: trunk/smooks/docs/reference/en/modules/introduction.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en/modules/introduction.xml 2009-01-09 12:0= 2:48 UTC (rev 12961) +++ trunk/smooks/docs/reference/en/modules/introduction.xml 2009-01-09 14:1= 4:01 UTC (rev 12962) @@ -11,7 +11,7 @@ Introduction What is Smooks? - Smooks is a Java Framework/Engine for processing XML and non XML = data (CSV, EDI, Java, JSON etc). + Smooks is a Java Framework/Engine for processing XML and non XML d= ata (CSV, EDI, Java, JSON etc). @@ -52,7 +52,7 @@ What is Smooks dev tools? - Smooks dev tools is a set of graphical tools for editing Smooks c= onfiguration file base on Eclipse. + Smooks dev tools is a set of graphical tools for editing Smooks co= nfiguration file base on Eclipse.
Smooks form editor @@ -69,10 +69,10 @@ . - Smooks dev tools (JBossTools) run with the latest Eclipse and o= ther required plug-ins (GEF, EMF, etc.). - You should download the latest IDE for Java EE developers from = this + Smooks dev tools (JBossTools) run with the latest Eclipse and ot= her required plug-ins (GEF, EMF, etc.). + You should download the latest IDE for Java EE developers from t= his site - . It contains many plug-ins ( GEF, EMF, etc. ) required by Smook= s dev tools. + . It contains many plug-ins ( GEF, EMF, etc. ) required by Smook= s dev tools. Modified: trunk/smooks/docs/reference/en/modules/quick_start.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en/modules/quick_start.xml 2009-01-09 12:02= :48 UTC (rev 12961) +++ trunk/smooks/docs/reference/en/modules/quick_start.xml 2009-01-09 14:14= :01 UTC (rev 12962) @@ -11,29 +11,19 @@ Quick Start - This "Quick Start" will show how to use the Smooks tools to - create/edit the Smooks configuration file for Java2Java - data - transformation. + This "Quick Start" will show how to use the Smooks tools to create/edit = the Smooks configuration file for Java2Java data transformation. - This chapter should give you a brief understanding of - the - Smooks - dev tools. + This chapter should give you a brief understanding of the Smooks dev too= ls.
Download Smooks Java-to-Java example Visit - here to download the "java-to-jav= a" example project. + here to download the "java-= to-java" example project. Tip: - The example project is base on Maven, you suggest you to - create a new eclipse Java project and copy the example code and .jar - files from the example project paste them into the eclipse Java - project. + The example project is base on Maven, you suggest you to create a new = eclipse Java project and copy the example code and .jar files from the exam= ple project paste them into the eclipse Java project.
@@ -179,30 +169,30 @@ How to map it? First, you should know what to transform: - Bind the "customerName" property of the + Bind the "customerName" property of the Order#header to the "customerName" property of LineOrder. - Bind the + Bind the "customerNumber" property of the Order#header to the "customerId" property of LineOrder. - Bind the "price" property of the OrderItem + Bind the "price" property of the OrderItem to the "unitPrice" property of LineItem. - Bind the "productId" + Bind the "productId" property of the OrderItem to the "productCode" property of LineItem. - Bind the + Bind the "quantity" property of the OrderItem to the "unitQuantity" property of @@ -288,21 +278,11 @@ Why does the occur error? You will find that, if you only connect the property node withou= t connecting the parent node of the property, the "connection error&qu= ot; occur - The - connection of - the "price-to-unitPrice" is - the "Binding - Connection", - but it needs - a "Instance - Creation - Connection" -the - connection - of - the + The connection of the "price-to-unitPrice" is the "= ;Binding Connection", + but it needs a "Instance Creation Connection" -the connectio= n of the "OrderItem-to-LineItem". - After that, connect the quantity to the unitQuantity ; connect= the productId to the productCode: + After that, connect the quantity to the unitQuantity ; connect = the productId to the productCode:
Complete mapping Modified: trunk/smooks/docs/reference/en/modules/smooksformeditor_configura= tionpage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpa= ge.xml 2009-01-09 12:02:48 UTC (rev 12961) +++ trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpa= ge.xml 2009-01-09 14:14:01 UTC (rev 12962) @@ -22,26 +22,14 @@
- - The - "Date Decoder" - can - add/edit/remove on the - configuration editor - page. + The "Date Decoder"= can add/edit/remove on the configuration editor page. - The configuration also edit the - "Smooks parse type" - and manage - the - "Import File" - . + The configuration also edit the "Smooks parse type" and manage the "Import File" .
Smooks parse type - Open the "Other configuration" section, we will see there - is a set of radio buttons: + Open the "Other configuration" section, you will see there is a s= et of radio buttons:
Smooks parse type @@ -58,8 +46,7 @@
Import file - Open the "Other configuration" section, there is a "Import - File" list under the "Smooks parse type" buttons. + Open the "Other configuration" section, there is an "Import File" list = under the "Smooks parse type" buttons.
Import File @@ -70,30 +57,22 @@
- There are three buttons on the right side of the "File Import" - list. You can click those to add/edit/remove the import files. + There are three buttons on the right side of the "File Import" list. Y= ou can click those to add/edit/remove the import files. Tip - If the import file dosen't exist, the image of the import file - will change to "Error Image". - If you double-click the import file in - the "Import File" list, the file will be open with a new default - editor. + If the import file doesn't exist, the image of the import file will ch= ange to "Error Image". If you double-click the import file in the "Import F= ile" list, the file will be opened with a new default editor.
Date Decoder Detail Page - "Date Decoder" is a resourceConfig element in the Smooks - configuration - file.It describe how to transform the "Date" type. + "Date Decoder" is a resourceConfig element in the Smooks configuration = file.It describing how to transform the "Date" type. - Click "New" button to open the "New Resource Type" wizard - dialog. + Click "New" button to open the "New Resource Type" wizard dialog.
Resource Type Selection Wizard @@ -104,29 +83,23 @@
= - There are several resource type on the list. Select the - "Date - Decoder" and click "Finish" button, a new "Date Decoder" item - was - added and shown on the resource type list. + There are several resource types on the list. Select the "Date De= coder" and click "Finish" button, a new "Date Decoder" item was added and s= hown on the resource type list. - There are several parameters in the "Date Decoder" - resourceConfig element: + There are several parameters in the "Date Decoder" resourceConfig elem= ent: - locale-language + locale-language - format + format - locale-country + locale-country - You can modify the parameters of the "Date Decoder" item with the - left detail page. + You can modify the parameters of the "Date Decoder" item with the left = detail page.
Date Decoder Detail Page @@ -138,8 +111,8 @@
- When you defined new "Date Decoder", they can use the - "JavaBean Properties" GUI to set the them to be the "Java type". + When you define a new "Date Decoder", it becomes possible to use the + "JavaBean Properties" GUI to set it to the "Java type".