JBoss Tools SVN: r14130 - branches/jbosstools-3.0.x/as/docs/reference/en.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-03-10 10:30:46 -0400 (Tue, 10 Mar 2009)
New Revision: 14130
Modified:
branches/jbosstools-3.0.x/as/docs/reference/en/master_output.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-655 - adding master_output.xml;
Modified: branches/jbosstools-3.0.x/as/docs/reference/en/master_output.xml
===================================================================
--- branches/jbosstools-3.0.x/as/docs/reference/en/master_output.xml 2009-03-10 13:58:17 UTC (rev 14129)
+++ branches/jbosstools-3.0.x/as/docs/reference/en/master_output.xml 2009-03-10 14:30:46 UTC (rev 14130)
@@ -22,2039 +22,2035 @@
<!ENTITY strutstutoriallink "../../struts_tools_tutorial/html_single/index.html">
-]><book xmlns:diffmk="http://diffmk.sf.net/ns/diff">
-
- <bookinfo>
- <title>JBoss Server Manager Reference Guide</title>
-
- <author><firstname>Anatoly</firstname><surname>Fedosik</surname></author>
- <author><firstname>Olga</firstname><surname>Chikvina</surname></author>
- <author><firstname>Rob</firstname><surname>Stryker</surname><email>rob.stryker(a)jboss.com</email></author>
- <author><firstname>Svetlana</firstname><surname>Mukhina</surname><email>smukhina(a)exadel.com</email></author>
-
- <pubdate>April 2008</pubdate>
- <copyright>
- <year>2007</year>
- <year>2009</year>
- <holder>JBoss, a division of Red Hat</holder>
- </copyright>
- <releaseinfo>
- Version: 2.0.0.GA
- </releaseinfo>
-<abstract>
- <title></title>
- <para>
- <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/as/pdf/AS_Reference_...">PDF version</ulink>
- </para>
-</abstract>
-
- </bookinfo>
-
-
- <toc></toc>
-
-<chapter id="quick_start" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/quick_start.xml">
- <title>Quick Start with JBoss Server</title>
-
- <para>This chapter covers the basics of working with the <property moreinfo="none">JBoss Server</property>. If you
- already have installed JBoss server and runtime you can quickly learn how to configure, start,
- stop the server, to know deployment and archiving processes. How to install runtimes and servers
- read in the <link linkend="runtimes_servers">Runtimes and Servers in the JBoss AS plugin</link>
- chapter.</para>
-
- <para>To start working with JBoss AS, select a <property moreinfo="none">JBoss AS Perspective</property> via
- <emphasis><property moreinfo="none">Window > Open Perspective > Other > JBoss
- AS</property>.</emphasis></para>
-
- <section id="starting">
- <title>Starting JBoss Server</title>
-
- <para>Starting <property moreinfo="none">JBoss Server</property> is quite simple. You can control the server
- behaviour with the help of a special toolbar in the <property moreinfo="none">JBoss Server View</property>
- where you could <emphasis>
- <property moreinfo="none">start</property>
- </emphasis> it in a regular or debug mode, <emphasis>
- <property moreinfo="none">stop</property>
- </emphasis> it or <emphasis>
- <property moreinfo="none">restart</property>
- </emphasis> it, <emphasis>
- <property moreinfo="none">publish</property>
- </emphasis> to the server, <emphasis>
- <property moreinfo="none">clean</property>
- </emphasis> the server.</para>
-
- <figure float="0">
- <title>JBoss Server Toolbar</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To launch the server click the green-with-white-arrow icon on the <property moreinfo="none">JBoss Server
- View </property>or right click server name in this view and select <emphasis>
- <property moreinfo="none">Start</property>. </emphasis> If this view is not open, select
- <emphasis><property moreinfo="none">Window > Show View > Other > Server >
- JBoss Server View</property>.</emphasis></para>
-
- <figure float="0">
- <title>Start JBoss Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <section id="stopping">
- <title>Stopping JBoss Server</title>
-
- <para>To stop the server, click the <emphasis>
- <property moreinfo="none">Stop</property>
- </emphasis> icon in the <property moreinfo="none">JBoss Server View</property> or right click the server name
- and press <emphasis><property moreinfo="none">Stop</property>.</emphasis></para>
-
- <figure float="0">
- <title>Stop JBoss Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>When the server is stopped you will see <emphasis>
- <property moreinfo="none">Stopped</property>
- </emphasis> state next to its name in the square brackets.</para>
- <para>Learn more about the <property moreinfo="none">JBoss Server View</property>
- <link linkend="JBossServerView">here</link>.</para>
- </section>
-
- <section id="archiving">
-
- <title>Project Archiving</title>
-
- <para><property moreinfo="none">JBoss Tools</property> comes with our own archives tool. The Project Archives
- plugin consists primarily of a view to set up each packaging configuration <emphasis>(
- <property moreinfo="none">Window > Show View > Other > JBoss Tools > Project archives</property>).
- </emphasis></para>
- <para>Right clicking in the <property moreinfo="none">Project archives view</property> you can create War,
- EJB War, EAR or JAR archive.</para>
-
- <figure float="0">
- <title>Archive Creating</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_7.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Using the context menu on the item you can initiate a <emphasis><property moreinfo="none">full build</property></emphasis> on
- archive, <emphasis><property moreinfo="none">edit</property>,</emphasis> <emphasis><property moreinfo="none">delete</property></emphasis> or
- <emphasis><property moreinfo="none">publish</property></emphasis> it.</para>
-
- <figure float="0">
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_8.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Learn more about the <property moreinfo="none">Project Archives View</property>
- <link linkend="Project_archivesView">here</link>.</para>
-
- </section>
- <section id="deployment">
- <title>Deploying an Application to a Server</title>
-
- <para>There are two times to deploy your application:</para>
- <itemizedlist>
- <listitem>
- <para>While creating it</para>
- </listitem>
- <listitem>
- <para>After it already exists</para>
- </listitem>
- </itemizedlist>
-
- <para>When you create a new project (Seam, JSF or Struts) with the New Project or Import Project
- wizards, the one of wizards steps has a <emphasis>
- <property moreinfo="none">Target Runtime</property>
- </emphasis> and <emphasis>
- <property moreinfo="none">Target Server</property>
- </emphasis> sections. You can deploy the application through the appropriate selection in
- these sections.</para>
-
- <figure float="0">
- <title>Runtime and Server Sections in the New Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_4a.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <figure float="0">
- <title>Runtime and Server Sections in the Import Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_4b.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can deploy an existing application to a server by right-clicking the target defined
- server in the <property moreinfo="none">JBoss Servers View</property> and then selecting <emphasis><property moreinfo="none">Add and
- Remove Projects</property></emphasis> from the context menu.</para>
-
- <figure float="0">
- <title>Add and Remove Projects From the Context Menu.</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If this application is not assigned to a server, it will be in the left-hand available
- projects list. Clicking on the <property moreinfo="none">Add ></property> button will add it to the right-hand
- configured projects list and deploy the application to this server.</para>
-
- <figure float="0">
- <title>Modifying The Projects that are Configured on the Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/quick_start/quick_start_6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Here, we have just performed the basic steps you should know to quick start with JBoss
- server. In fact, there are more functionalities which you can make use of. Further we will
- talk about them in detail.</para>
- </section>
-
-
- <section>
- <title>Other relevant resources on the topic</title>
-
- <para>All JBoss Developer Studio/JBoss Tools documentation you can find <ulink url="http://docs.jboss.org/tools/2.1.0.GA">here</ulink>.</para>
- <para>The latest documentation builds are available <ulink url="http://download.jboss.org/jbosstools/nightly-docs/">here</ulink>.</para>
-
- </section>
-
-</chapter>
-
-
-<chapter id="runtimes_servers" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/runtimes_servers.xml" xreflabel="runtimes_servers">
- <?dbhtml filename="runtimes_servers.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Deploy</keyword>
- <keyword>Deployment</keyword>
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
- <title>Runtimes and Servers in the JBoss AS plugin</title>
-
- <para>In this chapter we will discuss how to install runtimes and servers.</para>
-
- <para>First of all it's necessary to mention that the JBoss AS plugin makes use of WTP.
- This includes starting and stopping servers in run or debug mode. It also includes targeting WTP
- projects, such as Dynamic Web Projects, to certain server runtimes in order to ensure that the
- proper jars from a specific server are added to the project's classpath
- properly.</para>
- <para>In order to get started creating, running, and debugging J2EE applications, we should create
- our <property moreinfo="none">runtime</property> and <property moreinfo="none">server</property> instances.</para>
-
- <section>
- <title>Runtimes</title>
- <para>In <property moreinfo="none">JBoss Tools</property>, the main purpose of Server Runtimes is to point to a
- server installation somewhere on disk. In our case, this will be a JBoss installation, and it
- can then be used for two primary purposes:</para>
- <itemizedlist>
- <listitem>
- <para>it provides classpath additions to WTP projects that require them.</para>
- </listitem>
- <listitem>
- <para>for <property moreinfo="none">JBoss server</property> at least, it provides information necessary for
- the starting and stopping of the server, it tells which jars to run and which
- configuration to use.</para>
- </listitem>
- </itemizedlist>
-
- <section id="InstNewRuntime">
- <title>Installing a New Runtime</title>
- <para>You can install runtimes into eclipse from the <emphasis>
- <property moreinfo="none">Window > Preferences </property>
- </emphasis> menu, and then select <emphasis>
- <property moreinfo="none">Server > Runtime Environments</property>
- </emphasis> from the categories available on the left.</para>
- <figure float="0">
- <title>Installed Runtimes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/runtimes_servers/runtimes_servers_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>From this preference page you can see all declared runtimes and their types as well.
- Here, it's possible to edit or remove existing runtimes as well as add a new
- one.</para>
-
- <para>To create a JBoss runtime click <emphasis>
- <property moreinfo="none">Add</property>
- </emphasis> button and choose a necessary type of runtime from the <emphasis>
- <property moreinfo="none">JBoss Community</property>
- </emphasis> category.</para>
-
- <figure float="0">
- <title>Adding a Runtime</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/runtimes_servers/runtimes_servers_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <note>
- <title>Note:</title>
-
- <para>Now there is a separation between .org servers (the <emphasis>
- <property moreinfo="none">JBoss Community</property>
- </emphasis> category) and product server that comes with JBoss EAP in JBDS ( the <emphasis>
- <property moreinfo="none">JBoss Enterprise Middleware</property>
- </emphasis> category).</para>
- </note>
-
- <para>As you can see, <property moreinfo="none">JBoss Tools</property> provide its own adapters such as JBoss
- 3.2, 4.0, 4.2 and 5.0 as well. The last one comes with its own new feature, that is a safer
- incremental deployment, which prevents partial deployments to be picked up by the server. It
- means that scanning for auto-deployment is suspended while files are being copied to the
- deployment location and resumed when the copy is completed.</para>
-
- <note>
- <title>Note:</title>
- <para>Currently we recommend you to use a fully supported JBoss 4.2 server adapter.</para>
- </note>
-
- <para>You'll also note a Deploy-Only Runtime type. This type provides no classpath
- for WTP projects. It is used solely by its server type for the purpose of setting up a
- deploy directory for users who don't wish to make use of starting, stopping, or
- debugging their projects inside eclipse.</para>
-
- <figure float="0" id="add_runtime_figure">
- <title>Adding a JBoss 4.2 Runtime</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/runtimes_servers/runtimes_servers_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The following table describes all the available options of the currant wizard
- page.</para>
- <table>
- <title>Server Runtime Wizard Parameters</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec colnum="2" colwidth="3*"></colspec>
-
- <thead>
- <row>
- <entry align="center">
- <para>Name</para>
- </entry>
-
- <entry align="center">
- <para>Description</para>
- </entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>
- <para>Name</para>
- </entry>
- <entry>
- <para>The name of a new Runtime for a chosen server. We suggest that you
- don't leave a default value. It's better to give descriptive
- names that will help to distinguish one runtime from another.</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Home directory</para>
- </entry>
- <entry>
- <para>The path to a directory where the runtime is installed.</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>jRE</para>
- </entry>
- <entry>
- <para>The proper Java Runtime Environment. Because of the open-source nature of
- JBoss, a user is likely to want to modify and repackage some of the
- configuration-specific jboss jars and create their own configuration. Thus, rather
- than forcing you to copy his entire JBoss installation, the structure of the
- wizard allows to create only a new configuration instead.</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Configuration</para>
- </entry>
- <entry>
- <para>The list of configurations (all, default, minimal) that is updated as soon as
- you browse to a valid runtime installation folder. After the runtime is created
- the configuration becomes an unchanging property of that runtime. To compile
- against a different configuration's jars, you will need to create a new runtime
- from that configuration.</para>
- </entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
-
- <para>As a result of having each runtime represent a specific configuration rather than the
- server installation as a whole, it is very likely you'll create several different
- runtimes to test each of your configurations. It becomes important to ensure your runtimes,
- and later your servers, are given descriptive names that help you remember which is
- which.</para>
-
- <para>Press <emphasis>
- <property moreinfo="none">Finish</property>
- </emphasis> to see your new runtime in the list.</para>
- </section>
-
- </section>
-
- <section>
- <title>Servers</title>
- <para>WTP servers are eclipse-representations of a backing server installation. They are used to
- start or stop servers, deploy to servers, or debug code that will run on the server. They keep
- track of the modules (jars, wars, etc) you deploy to the server and also allow you to undeploy
- those modules (see <link linkend="run_on_server_wizard">Deploying with Run On Server
- Wizard</link> section). </para>
- <para>Servers can be started or stopped with different <link linkend="com_line_arg">command-line
- arguments</link>. They are often backed by a runtime object representing that server's
- location.</para>
-
- <section>
- <title>Creating a New Server</title>
-
- <para>There are many ways to get to the new server wizard. One way is to use the old standard <emphasis>
- <property moreinfo="none">File > New > Other... </property>
- </emphasis> and then <emphasis>
- <property moreinfo="none">Server</property>
- </emphasis>. This should show the wizard like below.</para>
- <figure float="0">
- <title>Adding a JBoss Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/runtimes_servers/runtimes_servers_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>A server object is that keeps track of things like command line arguments when starting
- or stopping, and runtimes keep track of the location of the installation. Thus, each server
- instance must be backed by an appropriate runtime. </para>
-
- <para>From the list of already declared runtimes in the combo box below the view it's
- possible to select which runtime you want your server to be backed by. If there is no
- runtime that matches your needs just press the <emphasis>
- <property moreinfo="none">Add...</property>
- </emphasis> link nearby to bring up the wizard for creating a new runtime (see the <link linkend="add_runtime_figure">previous section</link>). To configure the already installed
- runtimes you should go to server preferences that you can easily do by pressing the <emphasis>
- <property moreinfo="none">Configure runtime environments...</property></emphasis> link.</para>
-
- <para>If the server you want to create doesn't have any installed runtime yet, the combo box
- and the links are absent.</para>
-
- <figure float="0">
- <title>Installed Server Runtime Environments</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/runtimes_servers/runtimes_servers_6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In this case the next page in the wizard which has the same form as in <link linkend="add_runtime_figure">the previous section</link> will ask you to create the
- associated runtime.</para>
- <para>Either way, after targeting your server to a runtime, the final screen in this wizard is
- largely confirmational, giving you a chance to verify that you've selected the
- appropriate runtime. It also allows to name the server appropriately. </para>
-
- <figure float="0">
- <title>Installed Server Runtime Environments</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/runtimes_servers/runtimes_servers_7.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Press <emphasis>
- <property moreinfo="none">Finish</property>
- </emphasis> to complete the process of the server creation.</para>
- <para>Now that we've created our runtimes and servers, we can dwell on all services
- and tools that JBoss Server Manager provides.</para>
- </section>
-
- </section>
-
-</chapter>
-
-
-<chapter id="perspective" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/perspective.xml" xreflabel="perspective">
- <?dbhtml filename="perspective.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Deploy</keyword>
- <keyword>Deployment</keyword>
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
-
- <title>JBoss AS Perspective</title>
-
- <para>This chapter tells how to manage installed <property moreinfo="none">JBoss Server</property> via
- <property moreinfo="none">JBoss AS perspective</property>.</para>
-
- <para>The <property moreinfo="none">JBoss AS perspective</property> is similar to the <property moreinfo="none">Java
- perspective</property>, but it contains a few additional views. Two of the additional
- views are standard views, specifically the <property moreinfo="none">Console view</property> and the
- <property moreinfo="none">Properties view</property>. The other two views that are added are the
- <property moreinfo="none">Project archives view</property> and the <property moreinfo="none">JBoss Server
- View</property>.</para>
-
- <section id="JBossServerView" >
- <?dbhtml filename="JBossServerView.html"?>
- <title>The JBoss Server View</title>
-
- <para>The <property moreinfo="none">JBoss Server View</property> is built on Common Navigator Framework
- allowing extensions and is using label decorators what makes the UI enough compact
- without loosing the vital information.</para>
-
- <para>Let's have a look at the <property moreinfo="none">JBoss Server View</property> and inspect
- in detail all parts it consists of. </para>
- <figure float="0">
- <title>The JBoss Server View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <section id="jbossserver_view_toolbar">
- <title>JBoss Server View Toolbar</title>
- <para>In the right top corner of the <property moreinfo="none">JBoss Server View</property> there is a
- special toolbar which provides a quick access to starting a server (in debug mode,
- run mode, or profile mode), restarting a server, stopping a server, publishing to a
- server and a possibility to clean a server.</para>
-
- <figure float="0">
- <title>The JBoss Server View Toolbar</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In order to debug your applications or EJB's that are deployed to the server, you
- must start the server in debug mode. By starting the server in debug mode, eclipse
- will allow you to set breakpoints on code in your workspace and step through the
- code.</para>
-
- <para><emphasis>
- <property moreinfo="none">Start the server in profiling mode</property>
- </emphasis> button allows to enable profiling actions for your application. For more
- details on how to start using TPTP profiling with <property moreinfo="none">JBoss Tools</property>
- refer to <link linkend="tptp_support">TPTP Support</link> chapter.</para>
-
- <para><emphasis>
- <property moreinfo="none">Publish to the server</property>
- </emphasis> button will republish any modules where it has determined the workspace
- is out of sync with the server. It will attempt to do an incremental publish if it
- turns out that the module in question is capable of doing one.</para>
-
-
- <para>Press <emphasis>
- <property moreinfo="none">Clean</property>
- </emphasis> if you need to clean projects published on the server, i.e. remove
- invalid resources from the server.</para>
- </section>
-
- <section id="jbossserver_view_structure">
- <title>JBoss Server View Structure</title>
- <para>The <property moreinfo="none">JBoss Server View</property> displays all declared servers as well
- as their current states (that is whether they are started or stopped) and statuses
- in the square brackets next to a server name.</para>
-
- <figure float="0">
- <title>The JBoss Server View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The following table lists possible server statuses.</para>
-
- <table>
- <title>Server Publish Status</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec colnum="2" colwidth="3*"></colspec>
-
-
- <thead>
- <row>
- <entry align="center">Status</entry>
-
- <entry align="center">Description</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry align="center">
- <para>Republish</para>
- </entry>
-
- <entry align="center">
- <para>The status which allows you to see if changes are
- awaiting</para>
- </entry>
- </row>
- <row>
- <entry align="center">
- <para>Publishing...</para>
- </entry>
-
- <entry align="center">
- <para>The status which shows if changes are being updated</para>
- </entry>
- </row>
- <row>
- <entry align="center">
- <para>Synchronized</para>
- </entry>
-
- <entry align="center">
- <para>The status which allows you to see if changes are
- in-sync</para>
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>You can control a server behavior as well as adjust some server preferences with
- the help of the context menu commands.</para>
-
- <figure float="0">
- <title>Context Menu Commands</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_8.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>All available context menu commands are described in the following table.</para>
- <table>
- <title>Server Properties through the Context Menu</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec colnum="2" colwidth="3*"></colspec>
-
- <thead>
- <row>
- <entry align="center">
- <para>Name</para>
- </entry>
-
- <entry align="center">
- <para>Description</para>
- </entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>
- <para>New Server</para>
- </entry>
- <entry>
- <para>The option allows to define a new server</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Open</para>
- </entry>
- <entry>
- <para>The option opens the Server editor</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Show in</para>
- </entry>
- <entry>
- <para>This option gives an easy access to the next views: Console,
- Debug view, Server Log or MBean Explorer</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Delete</para>
- </entry>
- <entry>
- <para>Standard option that allows to delete the chosen server</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Start</para>
- </entry>
- <entry>
- <para>The action for stating a server in a run mode</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Debug</para>
- </entry>
- <entry>
- <para>The action for stating a server in a debug mode</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Stop</para>
- </entry>
- <entry>
- <para>The action for stopping a declared server</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Publish</para>
- </entry>
- <entry>
- <para>The action for synching the publish information between the
- server and workspace</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Clean</para>
- </entry>
- <entry>
- <para>The option for complete redeploying the resources</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Explore</para>
- </entry>
- <entry>
- <para>This action uses the native OS file explorer to browse the
- deploy destination. Note: The option is also available for
- deployed resources/projects (see the figure below).</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Add and Remove Projects</para>
- </entry>
- <entry>
- <para>The option allows to publish a new project to the server (if
- its type is supported)</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Monitoring</para>
- </entry>
- <entry>
- <para>Possibility to add ports to be monitored on the current
- server</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Properties</para>
- </entry>
- <entry>
- <para>Opens the window to adjust the current server
- preferences</para>
- </entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
-
- <para>Under the server element in the <property moreinfo="none">JBoss Server View</property>, you can
- see currently deployed to the server modules and some server extensions which
- provide the additional information on the server.</para>
-
- <para>The context menu for any module allows you to remove it from the server, force a
- full or incremental republish upon it.</para>
-
- <figure float="0">
- <title>Modules Action</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_11.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <section id="filesets">
- <title>Filesets</title>
-
- <para>The <emphasis>
- <property moreinfo="none">Filesets</property>
- </emphasis> category in the <property moreinfo="none">JBoss Server View</property> is intended
- for files filtering.</para>
-
- <para>To add a new file filter, right-click the <emphasis>
- <property moreinfo="none">Filesets</property>
- </emphasis> category and select <emphasis>
- <property moreinfo="none">Create File Filter</property>.</emphasis>The <property moreinfo="none">New File
- Filter wizard</property> should appear.</para>
-
- <figure float="0">
- <title>Creating a New File Filter</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/filesets1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The wizard asks you to enter the filter name and add includes and excludes
- patterns. The preview box underneath gives a list of files matched to the
- defined patterns.</para>
-
- <figure float="0">
- <title>New File Filter Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/filesets2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>After the filter is created, you can observe it by expanding the <emphasis>
- <property moreinfo="none">Filesets</property>
- </emphasis> category in the <property moreinfo="none">JBoss Server View</property>.</para>
-
- <para>It's possible now to edit files directly from the <emphasis>
- <property moreinfo="none">Filesets</property>
- </emphasis> category. Double clicking on a file from <emphasis>
- <property moreinfo="none">Filesets</property>
- </emphasis> opens up the editor automatically or you can use the <emphasis>
- <property moreinfo="none">Edit File</property>
- </emphasis> context menu command.</para>
-
- <figure float="0">
- <title>Direct Editing from the Filesets</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/filesets3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To delete a file filter (or just a file) from the <emphasis>
- <property moreinfo="none">Filesets</property>,</emphasis> right-click a file filter (or the
- unnecessary file) and select the <emphasis>
- <property moreinfo="none">Delete File Filter</property>
- </emphasis>
- <emphasis>(<property moreinfo="none">Delete File</property>)</emphasis> command.</para>
-
- <figure float="0">
- <title>Deleting the File from the Filesets</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/filesets4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="xml_configuration">
- <title>XML Configuration</title>
- <para>The <emphasis>
- <property moreinfo="none">XML Configuration</property>
- </emphasis> category allows you to quickly browse to descriptor files in your
- server's deploy directory and check or change the values. Basically, <emphasis>
- <property moreinfo="none">XML Configuration</property>
- </emphasis> includes XML XPaths where a xpath is a path used to access some
- specific part of an xml document. </para>
-
- <note>
- <title>Note:</title>
- <para>You are assumed to be familiar with XPath. If not, we highly suggested
- that you look through an appropriate manual or tutorial on the topic.</para>
- </note>
-
- <para>The <emphasis>
- <property moreinfo="none">XML Configuration</property>
- </emphasis> category itself contains only a list of categories. <emphasis>
- <property moreinfo="none">Ports</property>
- </emphasis> are provided by default and is filled with many of the most commonly
- used ports in the <property moreinfo="none">JBoss Server</property>.</para>
-
- <figure float="0">
- <title>XML Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_14.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <!--para>In the <property>Properties
- view</property> you can see an identifier and nested files underneath in which
- that xpath can be found as well as its current value. The details of the xpath are
- hidden as all you need to see is only which file you're referring to and
- what its current value is.</para-->
-
- <para>By right-clicking on <emphasis>
- <property moreinfo="none">XML Configuration</property>, </emphasis> you can create a new
- category. Besides, context menu for <emphasis>
- <property moreinfo="none">XML Configuration</property>
- </emphasis> category makes possible to disable it. You can disable any category
- in the bottom part of the <emphasis>
- <property moreinfo="none">JBoss Server View</property>.</emphasis> Look for them in the <emphasis>
- <property moreinfo="none">Inactive Categories</property>
- </emphasis> afterwards to re-enable.</para>
-
- <figure float="0">
- <title>Adding New Category</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_15.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>By right-clicking on <emphasis>
- <property moreinfo="none">Ports</property>
- </emphasis> or any other category in <emphasis>
- <property moreinfo="none">XML Configuration</property>
- </emphasis>, you can create a new xpath.</para>
-
- <figure float="0">
- <title>Adding New XPath</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_16.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>After that, the dialog shown below will appear.</para>
-
- <figure float="0">
- <title>Adding New XPath</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_17.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The goal here is to get an end result where the XPath matches up with a
- necessary property. With that in mind, let's look how it works. If the
- property you want to reach is the value of the <emphasis>name</emphasis>
- attribute in the element <emphasis><mbean></emphasis>, then your <emphasis>
- <property moreinfo="none">XPath Patten</property>
- </emphasis>should end with <emphasis>mbean</emphasis> and your <emphasis>
- <property moreinfo="none">Attribute Name</property>
- </emphasis> should be <emphasis>name</emphasis> like on the next figure.</para>
-
- <programlisting format="linespecific" role="XML"><![CDATA[...
-<server>
-...
- <mbean code="org.jboss.ejb.EJBDeployer"
- name="jboss.ejb:service=EJBDeployer" xmbean-dd="">
-
- <!-- Inline XMBean Descriptor BEGIN -->
- <xmbean>
- <description>
- The EJBDeployer responsible for ejb jar deployment</description>
- ...
- </xmbean>
- </mbean>
-</server>
-]]></programlisting>
-
- <figure float="0">
- <title>XPath Preview</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_18.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <tip>
- <title>Tip:</title>
- <para>Notice, when you type the fields autocomplete to help you locate exactly
- what xpath you're looking for.</para>
- </tip>
-
- <para>Then, on the other hand, if your desired field is the text of an element
- <emphasis><description></emphasis>, your <emphasis>
- <property moreinfo="none">XPath Patten</property>
- </emphasis> should end with <emphasis>description</emphasis> and <emphasis>
- <property moreinfo="none">Attribute Name</property>
- </emphasis> field should be left blank. When finished, click <emphasis>
- <property moreinfo="none">Preview</property>
- </emphasis> to see how many matches you have for that particular XPath.</para>
-
- <figure float="0">
- <title>XPath Preview</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_19.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
- </section>
-
- <section id="dragndrop_to_jboss_server_view">
- <title>Drag-n-Drop to JBoss Server View</title>
-
- <para>Starting from 2.0.0.CR2 version of <property moreinfo="none">JBoss AS Tools</property> the
- <property moreinfo="none">JBoss Server View</property> supports drag-n-drop of deployable and
- runnable projects/resources.</para>
-
- <figure float="0">
- <title>Dragging to the JBoss Server View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/dnd_toJBossServerView.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>With drag-n-drop the following actions can be performed:</para>
-
- <itemizedlist>
- <listitem>
- <para>dragging a project to a server will deploy it to the server and run it by
- showing the main page in a browser</para>
- </listitem>
-
- <listitem>
- <para>dragging an <emphasis>
- <property moreinfo="none">.xhtml</property>
- </emphasis> file from <emphasis>
- <property moreinfo="none">WebContent</property>
- </emphasis> will do the same and show the corresponding page in a
- browser</para>
- </listitem>
-
- <listitem>
- <para>dragging a deployable resource (i.e. a datasource (<emphasis>
- <property moreinfo="none">-ds.xml</property></emphasis>) file that has
- been made deployable) will simply deploy that resource directly to the
- server</para>
- </listitem>
- </itemizedlist>
-
- <para>In short, the feature does the same thing as if you used the <emphasis>
- <property moreinfo="none">Run On Server</property>
- </emphasis> option or <emphasis>
- <property moreinfo="none">Add and Remove Projects</property>
- </emphasis> option in the context menu of the server.</para>
- </section>
-
- <section id="server_log">
- <title>Server Log View</title>
-
- <para>You can monitor the current server behavior with the help of the <property moreinfo="none">Server
- Log</property>. To open a server in the <property moreinfo="none">Server Log view</property> you
- should right-click on the server and follow to <emphasis>
- <property moreinfo="none">Open in > Server Log</property>.</emphasis></para>
-
- <para>The <emphasis>
- <property moreinfo="none">Server Log</property>
- </emphasis> shows relevant information to your server's startup, shutdown,
- and publish processes. This allows you to keep an eye on what's going on
- (such as automatic incremental deployment if you have it enabled).</para>
-
- <figure float="0">
- <title>Event Log Actions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_12.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The <property moreinfo="none">Server Log</property> toolbar contains several icons that perform
- the following actions:</para>
-
- <table>
- <title>Server Log Toolbar Icons</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec colnum="2" colwidth="3*"></colspec>
-
- <thead>
- <row>
- <entry align="center">
- <para>Name</para>
- </entry>
-
- <entry align="center">
- <para>Description</para>
- </entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>
- <para>Export Log</para>
- </entry>
- <entry>
- <para>Possibility to export the log into a text file</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Clear Log Viewer</para>
- </entry>
- <entry>
- <para>The option clears the current server log</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Delete Log</para>
- </entry>
- <entry>
- <para>Click to delete the server log</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Open Log</para>
- </entry>
- <entry>
- <para>Click to open the server log text file</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Restore Log</para>
- </entry>
- <entry>
- <para>Click to restore the server log</para>
- </entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- <section id="server_editor">
- <title>Server Editor</title>
- <para>By double-clicking on any server, an editor window will appear allowing you to
- edit parts of that server.</para>
-
- <figure float="0">
- <title>Preferences Page for the Chosen Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <tip>
- <title>Tip:</title>
- <para>On the figure you can see that a username/password is available in the UI when
- configuring the server. If you get an SecurityException when trying to launch
- the server, it is most likely because your server is protected and hence you
- need to fill the username/password fields with appropriate values.</para>
- </tip>
-
- <para>It should be pointed out that our server adapter by default tries to automatically
- detect the ports it needs for integrating with a <property moreinfo="none">JBoss Server</property>.
- Sometimes it can though be relevant to override this automatic detection if you are
- using some custom configuration. For this purposes the <emphasis>
- <property moreinfo="none">Server Ports</property>
- </emphasis> section in the <property moreinfo="none">Server editor</property> is provided where the
- port settings are configurable. Click the <emphasis>
- <property moreinfo="none">Configure...</property>
- </emphasis> link to bring up the wizard for adjusting the settings for the
- ports.</para>
-
- <figure float="0">
- <title>Server Ports Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Press <emphasis>
- <property moreinfo="none">Edit XPath</property>
- </emphasis> button for the chosen port to configure its XPath's values.</para>
-
- <figure float="0">
- <title>XPath Pattern for a Server Port</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The settings related to <emphasis>
- <property moreinfo="none">Publishing</property>
- </emphasis>, <emphasis>
- <property moreinfo="none">Timeouts</property>
- </emphasis> or <emphasis>
- <property moreinfo="none">Server Polling</property>
- </emphasis> can be also adjusted in the <property moreinfo="none">Server editor</property>.</para>
-
- <para id="com_line_arg"><property moreinfo="none">Server editor</property> makes it also possible to
- modify the server's launch configuration. It's just after clicking <emphasis>
- <property moreinfo="none">Open launch configuration</property>
- </emphasis> link. In the open window there are the tabs for setting command line
- arguments and other things that are relevant to launching the server.</para>
-
- <figure float="0">
- <title>Launch Configuration Properties</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_7.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Look up <ulink url="http://docs.jboss.org/jbossas/guides/installguide/r1/en/html/start-stop.html">here</ulink> to find parameters which can be specified for <property moreinfo="none">JBoss
- Server</property>.</para>
- </section>
-
- <section>
- <title>Relevant Resources Links</title>
- <para>Find more about XPath in the <ulink url="http://www.w3.org/TR/xpath20/">XPath
- Documentation</ulink>.</para>
- </section>
- </section>
-
- <section id="Project_archivesView" >
- <title>Project Archives View</title>
- <para>Every application, whether Plain Old Java, J2EE, or some other language altogether,
- needs to be packaged in some way. In Java-related projects, many people use ANT. </para>
- <note>
- <title>Note:</title>
- <para>Those who use ANT will appreciate how the Project Archives Ant task is now
- improved: it supports variables and gives more informative error/logging messages
- when something goes wrong.</para>
- </note>
-
- <para>But <property moreinfo="none">JBoss Tools</property> come with our own Archives tool with a bit easier
- and less-verbose XML and a handy user interface. The Project Archives plugin consists
- primarily of a view, that is <property moreinfo="none">Project Archives view</property>, to set up each
- packaging configuration.</para>
- <para>So far, let's look through all functionality that the <property moreinfo="none">Project
- Archives view</property> provides.</para>
-
- <section id="archives_overview">
- <title>Overview</title>
-
- <para>The packaging configuration for each project is stored in the project's root
- folder, and is in a file named <emphasis>
- <property moreinfo="none">.packages</property>
- </emphasis>, which has a fairly simple XML structure. Modifying the file by hand is
- neither required nor recommended, and using the UI is the official way of modifying
- your packaging structure.</para>
-
- <figure float="0">
- <title>Archives View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_21.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>A project's configuration contains archives. As you can see on the image
- above a project can contain more than one archive. Internal archives and filesets
- can be directly inside of an archive, or in some sub-folder of that archive.</para>
-
- <para>In the upper right corner of the view you can see an icon which, when clicked,
- will build the selected top-level archive. Additionally, you can select <emphasis>
- <property moreinfo="none">Project > Build Packages</property>
- </emphasis> when a project is selected in the <property moreinfo="none">Packages View</property> to
- build all declared packages in that project's <emphasis>
- <property moreinfo="none">.packages</property>
- </emphasis> file. This will execute a full build on all declared archives.</para>
- </section>
-
- <section id="Creating_Archive">
- <title>Creating an Archive</title>
-
- <para>When you open the <property moreinfo="none">Project archives view</property> for the first time,
- it asks you to select the project for what you want to create an archive.</para>
-
- <figure float="0">
- <title>Archives View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_21a.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>When creating a new archive for selected project, you have some different options
- at your disposal. You need right-click inside the view and select <emphasis>
- <property moreinfo="none">New Archive</property>
- </emphasis> to see your archive type options.</para>
-
- <figure float="0">
- <title>Create an Archive</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_22.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <note>
- <title>Note:</title>
- <para>If you see only JAR from the list of available archive types, you should
- verify whether AS Tools plugins/features are in place. EAR, EJB JAR and WAR
- options are contributed by the AS Tools independently from webtools and the
- virtual project model. Thus, without them only JAR will show up.</para>
- </note>
-
- <para><property moreinfo="none">JAR</property> is the standard archive type, and does very little
- configuration, leaving most of the work up to you. You can customize the name, add
- folders, filesets, and inner jars to it.</para>
-
- <para>The other types, for the most part, simply start off with a default setting,
- usually the jar with some specific children based on an expected structure of the
- project. For example, if the project is a Dynamic Web Project, and you create a
- <property moreinfo="none">WAR</property> archive, the archive will be created with a few
- filesets relevant to the known structure of the project.</para>
-
- <para>Here is the first page of all New archive wizards. It is the same for any archive
- type and the only page in the <property moreinfo="none">New Jar wizard</property>.</para>
- <figure float="0">
- <title>New WAR Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_23.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The page is pretty simple. First it asks to set the name of your new archive and a
- destination.</para>
-
- <para>The destination of an archive can be anywhere on the file system, anywhere in the
- workspace, inside some other archive, or inside a folder declared inside an archive.
- Select the necessary checkbox (either <emphasis>
- <property moreinfo="none">workspace</property>
- </emphasis> or <emphasis>
- <property moreinfo="none"> file system</property>
- </emphasis>) for marking the destination as related to either workspace or file
- system. You can browse to workspace or filesystem destinations by clicking on their
- respective buttons. To select a destination inside some other archive, you'll need
- to press the <emphasis>
- <property moreinfo="none">Workspace</property>
- </emphasis> button. At the bottom of the list, you'll see archives that
- have been declared in the workspace.</para>
-
- <figure float="0">
- <title>Selecting the destination in the workspace</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_23a.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Also in the wizard for creating a new archive you can choose whether an archive to
- be compressed or exploded into a folder (without compression). You need just select
- proper chechbox in the <emphasis>
- <property moreinfo="none">Archive type</property>
- </emphasis> section.</para>
- <para>If a build or incremental update fails Project Archives will show an error
- dialog:</para>
- <figure float="0">
- <title>Selecting the destination in the workspace</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/projectarchives_error.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click in <emphasis>
- <property moreinfo="none">Details</property>
- </emphasis> to see detailed information about what caused the error.</para>
-
- <para>In the <property moreinfo="none">Package Explorer</property> you can observe the created
- archive.</para>
- <figure float="0">
- <title>The Archive in the Package Explorer</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_23b.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If you use the exploded type of archiving, instead of a single file archive the
- result put into a folder is displayed in the <property moreinfo="none">Package
- Explorer</property>.</para>
- <figure float="0">
- <title>The Exploded Archive in the Package Explorer</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_23c.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <section id="CreatingaFolder">
- <title>Creating a Folder</title>
- <para>Creating a folder is much easier. You simply right-click on an archive or
- folder you want your new folder to be a child under. The only piece of required
- information is naming the file.</para>
- </section>
- <section id="CreatingaFileSet">
- <title>Creating a FileSet</title>
- <para>To create a new fileset, you click on an available target location such as an
- archive, a nested archive, or a folder within an archive, and select <emphasis>
- <property moreinfo="none">New Fileset</property>. </emphasis></para>
- <para>The <property moreinfo="none">New Fileset wizard</property> requires a destination (where the
- files will go), and a root directory (or where the files are coming from). The
- source can be anywhere in the workspace or from the filesystem at large.</para>
-
- <figure float="0">
- <title>Adding a New FileSet</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_24.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Below that, the fileset requires only an includes pattern and an excludes
- pattern. As you type in either of these fields, the preview viewer should update
- itself with which files are matched.</para>
-
- <para>You can create a Fileset with flattenning or without it. Look at the
- difference on the figure below.</para>
-
- <figure float="0">
- <title>The FileSet with flattenning and without it</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_24a.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
- </section>
-
- <section id="View_Actions">
- <title>Archive Actions</title>
- <figure float="0">
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_25.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The context menu on the items in the view is extendable, but there are several
- that come standard.</para>
-
- <table>
- <title>Context Menu on the Item</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec colnum="2" colwidth="3*"></colspec>
-
-
- <thead>
- <row>
- <entry align="center">
- <para>Name</para>
- </entry>
-
- <entry align="center">
- <para>Description</para>
- </entry>
- </row>
- </thead>
-
- <tbody>
-
- <row>
- <entry>
- <para>Build Archive (Full)</para>
- </entry>
-
- <entry>
- <para>The action enabled only on top-level archives, which initiates
- a full build on that archive</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Edit Archive</para>
- </entry>
-
- <entry>
- <para>Standard action that brings up the wizard associated with that
- particular node type and allows the details to be changed</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Delete Archive</para>
- </entry>
-
- <entry>
- <para>Deleting node is standard action with deletion not needing an
- explanation</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Publish To Server</para>
- </entry>
-
- <entry>
- <para>The action means the ability to publish to a declared
- server</para>
- </entry>
- </row>
-
- <row>
- <entry>
- <para>Edit publish settings</para>
- </entry>
-
- <entry>
- <para>Gives possibility to edit an archive publish settings</para>
- </entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
- </section>
-
- <section id="PublishToServer">
- <title>Publishing to Server</title>
- <para>Finally, you'll need to publish your application to a server. Here, we
- show you how to do it with the help of <emphasis>
- <property moreinfo="none">Archives View</property>. </emphasis></para>
-
- <figure float="0">
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_26.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The dialog above appears after selecting <emphasis>
- <property moreinfo="none">Publish To Server</property>. </emphasis> To simply publish once, you
- just select the server(s) that you want, and finish. If you want the <emphasis>
- <property moreinfo="none">Publish to Server</property>
- </emphasis> action on that particular Archive to publish always to that set of
- servers, then check the appropriate checkbox. And finally, to enable automatic
- publishing upon build events, check the last checkbox.</para>
- <para>The automatic publishing feature is nice if, for example, your package's
- destination (where it is built) is a temporary folder and you want the archive
- published to several servers. If you only really want your archive published to one
- server, it might be easier to have the archive's destination folder be the deploy
- folder of the server.</para>
- </section>
- <section id="rel_res_links_archiving">
- <title>Relevant Resources Links</title>
- <para>Refer to <ulink url="http://ant.apache.org/manual/index.html">Ant manual</ulink>
- to find more on how to build your applications with help of Ant.</para>
-
- <para>We also recommend you to watch the <ulink url="http://docs.jboss.org/tools/movies/demos/archiving/archiving.htm">movie</ulink> which demonstrates a powerful archiving functionality in
- <property moreinfo="none">JBoss Tools</property>.</para>
-
- <para>At this point, you are guessed to be familiar with <property moreinfo="none">JBoss AS
- perspective</property> and your next step now is to explore how to work with
- different kinds of projects.</para>
- </section>
-
- </section>
-
-
-</chapter>
-
-
-<chapter id="webtools" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/webtools.xml">
- <title>Projects</title>
- <para>The most popular of the projects we deal with are the J2EE ones, such as Dynamic Web
- Project, EJB Project, or EAR project. Web projects of <property moreinfo="none">JBoss Tools</property> are
- Struts, JSF and Seam projects. All of them are called faceted projects. Thus, in this
- chapter we are going to tell you about facets the main benefit of which to provide proper
- structuring and packaging for any type of project.</para>
-
- <section>
- <title>Faceted Projects Overview</title>
- <para>The idea behind faceted projects is that each project can accept units of
- functionality, or facets, which can be added or removed by the user. Most often, these
- facets either add to the project's classpath, enable a builder, or watch the project in
- some other fashion. Generally, every project concerned has at least one facet when
- it's created. As an example, a Web project has a WebDoclet facet, or an EJB
- Project has an EJB Module facet as prerequisites.</para>
-
- <para> WTP projects have undergone some criticism as being
- <emphasis>over-engineered</emphasis> or too restrictive in their design. WTP projects
- are set up in a tree-relationship to each other, where one project can be a child of
- another. For example, an EAR project may have a Web Project child, an EJB project child,
- or other types.</para>
-
- <para> However, the benefit of this is that the structure of your projects is then known,
- and packaging it up *should* be trivial. Apparently, if your project is non-standard, or
- you feel too confined by such rigid structural requirements, you can still choose to
- package your project using the <link linkend="Project_archivesView">Archives
- plugin</link>.</para>
- </section>
-
-
- <section>
- <title>Adding Facets to a Project</title>
-
- <para>In this section we're going to consider the facets added by <property moreinfo="none">JBoss
- Tools</property> and show how you can configure them in a project: add new ones or
- modify already existing configuration of the facets.</para>
-
- <para>One way to configure the facets is doing it while organizing a new project. To
- demonstrate this let's create a new <property moreinfo="none">Dynamic Web Project</property> by
- selecting <emphasis>
- <property moreinfo="none">File > New > Other...</property>
- </emphasis> and then <emphasis>
- <property moreinfo="none">Web > Dynamic Web Project</property>. </emphasis></para>
- <figure float="0">
- <title>New Dynamic Web Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/webtools/webtools_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click <emphasis>
- <property moreinfo="none">Next</property>
- </emphasis> and you will see Dynamic Web Project page like on the figure below.</para>
-
- <para> The first page of most WTP projects allows you to target a specific runtime,
- representing a server's library location. It will also provide you the ability to add
- this project to an EAR project, and select a pre-selected default set of facets, called
- a configuration, rather than manually select each facet you might want.</para>
- <para> Selecting the runtime, again, allows the project to install the proper classpaths to
- the project so it knows what code to compile against.</para>
-
- <figure float="0" id="dyn_web_project">
- <title>New Dynamic Web Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/webtools/webtools_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click on the <emphasis>
- <property moreinfo="none">Modify</property>
- </emphasis> button next to <property moreinfo="none">Configuration</property> section in order to open
- the wizard which allows you to modify a chosen configuration. The wizard looks as
- follows.</para>
-
- <figure float="0" id="project_facets">
- <title>Project Facets Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/webtools/webtools_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Here part of the listed facets are those which are provided by WTP. Some of them are
- added by <property moreinfo="none">JBoss Tools</property>. They are:</para>
- <itemizedlist>
- <listitem>
- <para>BIRT Charting Runtime Component</para>
- </listitem>
- <listitem>
- <para>BIRT Reporting Runtime Component</para>
- </listitem>
- <listitem>
- <para>JBoss ESB</para>
- </listitem>
- <listitem>
- <para>JBoss Portlets</para>
- </listitem>
- <listitem>
- <para>JBoss Web Services</para>
- </listitem>
- <listitem>
- <para>Seam</para>
- </listitem>
- </itemizedlist>
-
- <para>On this wizard page you can enable or disable any facet as well as change it version.
- What you should note here is that some facets or facets versions may conflict with each
- other. In case of incompatibility you'll be prompted about this in the combo
- box underneath.</para>
- <figure float="0">
- <title>Facet Constraints</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/webtools/webtools_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>When switching on the <emphasis>
- <property moreinfo="none">Runtimes</property>
- </emphasis> tab on the right you'll see the current server Runtime.</para>
- <figure float="0">
- <title>Runtimes on the Project Facets Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/webtools/webtools_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>On this tab you can also create a new Server Runtime and make it primary by pressing <emphasis>
- <property moreinfo="none">Make Primary</property>
- </emphasis> button after enabling it.</para>
-
- <para>Clicking on <emphasis>
- <property moreinfo="none">OK</property>
- </emphasis> will save the chosen configuration of the facets and return you to the <link linkend="dyn_web_project">Dynamic Web Project wizard</link>. Further pages in the
- wizard are specific to either the project type or the facets selected.</para>
-
-
- <para>If you need to configure the facets for the existing project, you should bring up the
- context menu for selected project and click <emphasis>
- <property moreinfo="none">Properties</property>
- </emphasis> and then <emphasis>
- <property moreinfo="none">Project Facets</property>. </emphasis> This will bring up the familiar
- <link linkend="project_facets">Project Facets wizard</link>, where you can create
- your own custom facets configuration.</para>
-
- <para></para>
-
- </section>
- <section id="rel_resources_links">
- <title>Relevant Resources Links</title>
-
- <para>More on the WTP facets you can read in the <ulink url="http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.jst.j2ee.do...">eclipse help</ulink>.</para>
- </section>
-</chapter>
-
-
-<chapter id="modules" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/modules.xml">
- <title>Deploying Modules</title>
-
- <para>In this chapter it will be described how to deploy modules onto the server.</para>
- <para> First of all it is necessary to say that deploying to a server is mostly painless. There
- are several ways to do it provided by WTP, and some additional methods provided by JBoss
- Tools. These methods are described further in this chapter.</para>
-
- <section>
- <title>Deploying on the Package Explorer</title>
-
- <para>On the package explorer it is possible to publish either a project to a server or just
- a signal file. Let's look at how to do this.</para>
- <section id="run_on_server_wizard">
- <title>Deploying with Run On Server Wizard</title>
- <para> The first WTP method is to right-click on a project, such as a Dynamic Web
- project, EJB project, or EAR project and then select <emphasis>
- <property moreinfo="none">Run As > Run on Server</property>
- </emphasis>. The resulting dialog allows you to select which supporting server the
- project can be published to.</para>
- <figure float="0">
- <title>Define a New Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click <emphasis>
- <property moreinfo="none">Next</property>
- </emphasis> button to see add or remove projects page where you can choose projects
- to configure them on server.</para>
- <figure float="0" id="add_rem_proj">
- <title>Add or Remove Projects</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>This page of the wizard also allows to undeploy modules from the server. For that
- choose proper module(s) from the right and click <emphasis>
- <property moreinfo="none"> < Remove</property>
- </emphasis>. The modules will be completely undeployed after restarting your server
- or republishing.</para>
- <para>Generally, for the JBoss AS Server Adapters, publishing using this method will
- force a default, best-guess, packaging configuration for your project. This
- best-guess does not publish incrementally, but instead repackages your entire
- project into a <emphasis>
- <property moreinfo="none">.war</property>
- </emphasis>, <emphasis>
- <property moreinfo="none">.jar</property>
- </emphasis>, or <emphasis>
- <property moreinfo="none">.ear</property>
- </emphasis> as appropriate, and then copies that file into the proper deploy
- directory. For quicker smarter deployment, you will need to create archives using
- the <link linkend="Project_archivesView">Project Archives view</link> and customize
- packaging yourself.</para>
- </section>
-
- <section id="single_file_deployment">
- <?dbhtml filename="DeployToServer.html"?>
- <title>Deploying single files</title>
-
- <para>Sometimes it becomes necessary to deploy one or more files to a server. For
- that in order not to do a full republish in the context menu of files a <emphasis><property moreinfo="none">Deploy To Server</property></emphasis>
- option is provided that allows a single file deployment. To deploy these non-WTP files/projects
- right click on the file (<emphasis>
- <property moreinfo="none">-ds.xml</property></emphasis>, <emphasis>
- <property moreinfo="none">.ear</property></emphasis>, <emphasis>
- <property moreinfo="none">.jar</property></emphasis> etc.) and select <emphasis>
- <property moreinfo="none">Deploy To Server</property>
- </emphasis> and it will be automatically deployed.</para>
- <figure float="0">
- <title>Deploy to Sever</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The deployed files are listed side-by-side with other modules that are deployed to
- the server.</para>
-
- <figure float="0">
- <title>Deployed files on the Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_7.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- </section>
- <section>
- <title>Deploying with JBoss Server View</title>
- <para>As it has been already mentioned <property moreinfo="none">JBoss Server View</property> contains two
- parts: the top part that displays all defined servers and the bottom part which provides
- categories with additional information. Thus, in this section we suggest two more ways
- to deploy resources onto the server.</para>
- <section>
- <title>Top part of JBoss Server View</title>
- <para>In the top part of the <property moreinfo="none">JBoss Servers View</property> like in the Servers
- View you should right click on a server and select the <emphasis>
- <property moreinfo="none">Add and Remove Projects</property>
- </emphasis> menu item.</para>
- <figure float="0">
- <title>Add and Remove Projects</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>This will bring up a <link linkend="add_rem_proj">familiar dialog</link> allowing
- you to either publish projects or modules to a server, or remove them from the
- server. If the selected module is a project like a Dynamic Web project, EJB project,
- or EAR project, it will be published as through <emphasis>
- <property moreinfo="none">Run on Server</property>
- </emphasis> wizard, with a best-guess full package. If, however, the selected
- element is an archive from the <link linkend="Project_archivesView">Project Archives
- view</link>, it will be published according to the rules of that module
- type.</para>
- </section>
-
- <section>
- <title>Bottom part of JBoss Server View</title>
- <para>In the bottom part of <emphasis>
- <property moreinfo="none">JBoss Server View</property>
- </emphasis> there is a category called <emphasis>
- <property moreinfo="none">Modules</property>
- </emphasis> which should display all currently-published modules on the server.
- Right-clicking on the desired module and selecting <emphasis>
- <property moreinfo="none">Full Publish</property>
- </emphasis> will force a full rebuild of the entire module.</para>
- <figure float="0">
- <title>Full Publish</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Here, <emphasis>
- <property moreinfo="none">Incremental Publish</property>
- </emphasis> is meant to enable publishing of only those parts where changes have
- been made.</para>
- </section>
- </section>
- <section>
- <title>Deploying with Project Archives View</title>
- <para>In the <property moreinfo="none">Project Archives View</property> you can right-click on any declared
- archive and select the <emphasis>
- <property moreinfo="none">Publish To Server</property>
- </emphasis> element. For more on this subject, see <link linkend="PublishToServer">Publishing to Server</link> in the Project Archives View section.</para>
- <figure float="0">
- <title>Publish to Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/modules/modules_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para> The only way to ensure an <emphasis>
- <property moreinfo="none">Incremental Build</property>
- </emphasis>, such as changes to one <emphasis>
- <property moreinfo="none">.jsp</property>, </emphasis>
- <emphasis>
- <property moreinfo="none">.html</property>, </emphasis> or <emphasis>
- <property moreinfo="none">.class</property>
- </emphasis> file, is to enable the builder for that project. This is done by either
- changing the global preferences for the <property moreinfo="none">Archives View</property>, or by
- enabling project-specific preferences and ensuring the builder is on.</para>
- <para>The last chapter covers a variety of methods on how you can deploy needed modules onto a
- server.</para>
- </section>
-</chapter>
-
-
-<chapter id="tptp_support" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/tptp_support.xml">
- <title>TPTP Support</title>
- <para>This chapter provides an overview on how to enable TPTP Profiling for <property moreinfo="none">JBoss
- AS</property> adapters in <property moreinfo="none">JBoss Tools</property>.</para>
-
- <section>
- <title>TPTP Profiling</title>
-
- <para>To get TPTP profiling work on <property moreinfo="none">JBoss Application Server</property> you should
- first download <ulink url="http://www.eclipse.org/downloads/download.php?file=/tptp/4.5.0/TPTP-4.5.0...">TPTP 4.5.0 Runtime</ulink> and install it, i. e. just add the content of <emphasis>
- <property moreinfo="none">plugins/features</property>
- </emphasis> folders from downloaded directory to the same folders in your eclipse
- installation directory.</para>
-
- <para>And now all profile actions should work for you. To start <property moreinfo="none">JBoss
- AS</property> in profiling mode use <emphasis>
- <property moreinfo="none">Start the server in profiling mode</property>
- </emphasis> button or <emphasis>
- <property moreinfo="none">Profile As > Profile on Server</property>
- </emphasis> option in the context menu of the project.</para>
-
- <figure float="0">
- <title>Start the Server in Profiling mode</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/tptp_support/tptp_support_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To enable TPTP features in your workbench use <property moreinfo="none">Profiling and Logging
- Perspective</property> that you can find in the list of proposed perspectives: <emphasis>
- <property moreinfo="none">Window > Open Perspective > Other…</property>
- </emphasis>
- </para>
-
- <figure float="0">
- <title>Profiling and Logging Perspective</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/tptp_support/tptp_support_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section>
- <title>Relevant Resources Links</title>
- <para>All additional information on TPTP(Test and Performance Tools Platform) you can find
- in <ulink url="http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/quicktour/quic...">eclipse documentation</ulink>.</para>
- <para>In summary, this reference should help you to start with <ulink url="http://www.jboss.org/jbossas">JBoss AS</ulink> and get to know with functionality
- for work with it.</para>
- </section>
-</chapter>
-
-
-</book>
+]><book xmlns:diffmk="http://diffmk.sf.net/ns/diff">
+
+ <bookinfo>
+ <title>JBoss Server Manager Reference Guide</title>
+
+ <author><firstname>Anatoly</firstname><surname>Fedosik</surname></author>
+ <author><firstname>Olga</firstname><surname>Chikvina</surname></author>
+ <author><firstname>Rob</firstname><surname>Stryker</surname><email>rob.stryker(a)jboss.com</email></author>
+ <author><firstname>Svetlana</firstname><surname>Mukhina</surname><email>smukhina(a)exadel.com</email></author>
+
+ <pubdate>April 2008</pubdate>
+ <copyright>
+ <year>2007</year>
+ <year><diffmk:wrapper diffmk:change="changed">2009</diffmk:wrapper></year>
+ <holder><diffmk:wrapper diffmk:change="changed">JBoss, a division of Red Hat</diffmk:wrapper></holder>
+ </copyright>
+ <releaseinfo><diffmk:wrapper diffmk:change="changed">
+ Version: 2.0.0.GA
+ </diffmk:wrapper></releaseinfo>
+<abstract>
+ <title></title>
+ <para>
+ <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/as/pdf/AS_Reference_...">PDF version</ulink>
+ </para>
+</abstract>
+
+ </bookinfo>
+
+
+ <toc></toc>
+
+<chapter id="quick_start" role="updated" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/quick_start.xml">
+ <title>Quick Start with JBoss Server</title>
+
+ <para>This chapter covers the basics of working with the <property moreinfo="none">JBoss Server</property>. If you
+ already have installed JBoss server and runtime you can quickly learn how to configure, start,
+ stop the server, to know deployment and archiving processes. How to install runtimes and servers
+ read in the <link linkend="runtimes_servers">Runtimes and Servers in the JBoss AS plugin</link>
+ chapter.</para>
+
+ <para>To start working with JBoss AS, select a <property moreinfo="none">JBoss AS Perspective</property> via
+ <emphasis><property moreinfo="none">Window > Open Perspective > Other > JBoss
+ AS</property>.</emphasis></para>
+
+ <section id="starting">
+ <title>Starting JBoss Server</title>
+
+ <para>Starting <property moreinfo="none">JBoss Server</property> is quite simple. You can control the server
+ behaviour with the help of a special toolbar in the <property moreinfo="none">JBoss Server View</property>
+ where you could <emphasis>
+ <property moreinfo="none">start</property>
+ </emphasis> it in a regular or debug mode, <emphasis>
+ <property moreinfo="none">stop</property>
+ </emphasis> it or <emphasis>
+ <property moreinfo="none">restart</property>
+ </emphasis> it, <emphasis>
+ <property moreinfo="none">publish</property>
+ </emphasis> to the server, <emphasis>
+ <property moreinfo="none">clean</property>
+ </emphasis> the server.</para>
+
+ <figure float="0">
+ <title>JBoss Server Toolbar</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To launch the server click the green-with-white-arrow icon on the <property moreinfo="none">JBoss Server
+ View </property>or right click server name in this view and select <emphasis>
+ <property moreinfo="none">Start</property>. </emphasis> If this view is not open, select
+ <emphasis><property moreinfo="none">Window > Show View > Other > Server >
+ JBoss Server View</property>.</emphasis></para>
+
+ <figure float="0">
+ <title>Start JBoss Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ <section id="stopping">
+ <title>Stopping JBoss Server</title>
+
+ <para>To stop the server, click the <emphasis>
+ <property moreinfo="none">Stop</property>
+ </emphasis> icon in the <property moreinfo="none">JBoss Server View</property> or right click the server name
+ and press <emphasis><property moreinfo="none">Stop</property>.</emphasis></para>
+
+ <figure float="0">
+ <title>Stop JBoss Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>When the server is stopped you will see <emphasis>
+ <property moreinfo="none">Stopped</property>
+ </emphasis> state next to its name in the square brackets.</para>
+ <para>Learn more about the <property moreinfo="none">JBoss Server View</property>
+ <link linkend="JBossServerView">here</link>.</para>
+ </section>
+
+ <section id="archiving">
+
+ <title>Project Archiving</title>
+
+ <para><property moreinfo="none">JBoss Tools</property> comes with our own archives tool. The Project Archives
+ plugin consists primarily of a view to set up each packaging configuration <emphasis>(
+ <property moreinfo="none">Window > Show View > Other > JBoss Tools > Project archives</property>).
+ </emphasis></para>
+ <para>Right clicking in the <property moreinfo="none">Project archives view</property> you can create War,
+ EJB War, EAR or JAR archive.</para>
+
+ <figure float="0">
+ <title>Archive Creating</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_7.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Using the context menu on the item you can initiate a <emphasis><property moreinfo="none">full build</property></emphasis> on
+ archive, <emphasis><property moreinfo="none">edit</property>,</emphasis> <emphasis><property moreinfo="none">delete</property></emphasis> or
+ <emphasis><property moreinfo="none">publish</property></emphasis> it.</para>
+
+ <figure float="0">
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_8.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Learn more about the <property moreinfo="none">Project Archives View</property>
+ <link linkend="Project_archivesView">here</link>.</para>
+
+ </section>
+ <section id="deployment">
+ <title>Deploying an Application to a Server</title>
+
+ <para>There are two times to deploy your application:</para>
+ <itemizedlist>
+ <listitem>
+ <para>While creating it</para>
+ </listitem>
+ <listitem>
+ <para>After it already exists</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>When you create a new project (Seam, JSF or Struts) with the New Project or Import Project
+ wizards, the one of wizards steps has a <emphasis>
+ <property moreinfo="none">Target Runtime</property>
+ </emphasis> and <emphasis>
+ <property moreinfo="none">Target Server</property>
+ </emphasis> sections. You can deploy the application through the appropriate selection in
+ these sections.</para>
+
+ <figure float="0">
+ <title>Runtime and Server Sections in the New Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_4a.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure float="0">
+ <title>Runtime and Server Sections in the Import Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_4b.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You can deploy an existing application to a server by right-clicking the target defined
+ server in the <property moreinfo="none">JBoss Servers View</property> and then selecting <emphasis><property moreinfo="none">Add and
+ Remove Projects</property></emphasis> from the context menu.</para>
+
+ <figure float="0">
+ <title>Add and Remove Projects From the Context Menu.</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>If this application is not assigned to a server, it will be in the left-hand available
+ projects list. Clicking on the <property moreinfo="none">Add ></property> button will add it to the right-hand
+ configured projects list and deploy the application to this server.</para>
+
+ <figure float="0">
+ <title>Modifying The Projects that are Configured on the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/quick_start/quick_start_6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Here, we have just performed the basic steps you should know to quick start with JBoss
+ server. In fact, there are more functionalities which you can make use of. Further we will
+ talk about them in detail.</para>
+ </section>
+
+
+ <section>
+ <title>Other relevant resources on the topic</title>
+
+ <para>All JBoss Developer Studio/JBoss Tools documentation you can find <ulink url="http://docs.jboss.org/tools/2.1.0.GA">here</ulink>.</para>
+ <para>The latest documentation builds are available <ulink url="http://download.jboss.org/jbosstools/nightly-docs/">here</ulink>.</para>
+
+ </section>
+
+</chapter>
+
+
+<chapter id="runtimes_servers" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/runtimes_servers.xml" xreflabel="runtimes_servers">
+ <?dbhtml filename="runtimes_servers.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Deploy</keyword>
+ <keyword>Deployment</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Runtimes and Servers in the JBoss AS plugin</title>
+
+ <para>In this chapter we will discuss how to install runtimes and servers.</para>
+
+ <para><diffmk:wrapper diffmk:change="changed">First of all it's necessary to mention that the JBoss AS plugin makes use of WTP.
+ This includes starting and stopping servers in run or debug mode. It also includes targeting WTP
+ projects, such as Dynamic Web Projects, to certain server runtimes in order to ensure that the
+ proper jars from a specific server are added to the project's classpath
+ properly.</diffmk:wrapper></para>
+ <para>In order to get started creating, running, and debugging J2EE applications, we should create
+ our <property moreinfo="none">runtime</property> and <property moreinfo="none">server</property> instances.</para>
+
+ <section>
+ <title>Runtimes</title>
+ <para><diffmk:wrapper diffmk:change="added">In </diffmk:wrapper><property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Tools</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added">, the main purpose of Server Runtimes is to point to a
+ server installation somewhere on disk. In our case, this will be a JBoss installation, and it
+ can then be used for two primary purposes:</diffmk:wrapper></para>
+ <itemizedlist>
+ <listitem>
+ <para>it provides classpath additions to WTP projects that require them.</para>
+ </listitem>
+ <listitem>
+ <para>for <property moreinfo="none">JBoss server</property> at least, it provides information necessary for
+ the starting and stopping of the server, it tells which jars to run and which
+ configuration to use.</para>
+ </listitem>
+ </itemizedlist>
+
+ <section id="InstNewRuntime">
+ <title><diffmk:wrapper diffmk:change="changed">Installing a New Runtime</diffmk:wrapper></title>
+ <para>You can install runtimes into eclipse from the <emphasis>
+ <property moreinfo="none"><diffmk:wrapper diffmk:change="changed">Window > Preferences </diffmk:wrapper></property>
+ </emphasis> menu, and then select <emphasis>
+ <property moreinfo="none"><diffmk:wrapper diffmk:change="changed">Server > Runtime Environments</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> from the categories available on the left.</diffmk:wrapper></para>
+ <figure float="0">
+ <title>Installed Runtimes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para><diffmk:wrapper diffmk:change="changed">From this preference page you can see all declared runtimes and their types as well.
+ Here, it's possible to edit or remove existing runtimes as well as add a new
+ one.</diffmk:wrapper></para>
+
+ <para>To create a JBoss runtime click <emphasis>
+ <property moreinfo="none">Add</property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> button and choose a necessary type of runtime from the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Community</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category.</diffmk:wrapper></para>
+
+ <figure float="0">
+ <title>Adding a Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <note diffmk:change="added">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">Note:</diffmk:wrapper></title>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">Now there is a separation between .org servers (the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Community</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category) and product server that comes with JBoss EAP in JBDS ( the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Enterprise Middleware</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category).</diffmk:wrapper></para>
+ </note>
+
+ <para>As you can see, <property moreinfo="none">JBoss Tools</property> provide its own adapters such as JBoss
+ 3.2, 4.0, 4.2 and 5.0 as well. The last one comes with its own new feature, that is a safer
+ incremental deployment, which prevents partial deployments to be picked up by the server. It
+ means that scanning for auto-deployment is suspended while files are being copied to the
+ deployment location and resumed when the copy is completed.</para>
+
+ <note>
+ <title>Note:</title>
+ <para>Currently we recommend you to use a fully supported JBoss 4.2 server adapter.</para>
+ </note>
+
+ <para>You'll also note a Deploy-Only Runtime type. This type provides no classpath
+ for WTP projects. It is used solely by its server type for the purpose of setting up a
+ deploy directory for users who don't wish to make use of starting, stopping, or
+ debugging their projects inside eclipse.</para>
+
+ <figure float="0" id="add_runtime_figure">
+ <title>Adding a JBoss 4.2 Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para><diffmk:wrapper diffmk:change="changed">The following table describes all the available options of the currant wizard
+ page.</diffmk:wrapper></para>
+ <table>
+ <title>Server Runtime Wizard Parameters</title>
+ <tgroup cols="2">
+ <colspec align="left" colnum="1" colwidth="1*"></colspec>
+ <colspec colnum="2" colwidth="3*"></colspec>
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>Name</para>
+ </entry>
+ <entry>
+ <para>The name of a new Runtime for a chosen server. We suggest that you
+ don't leave a default value. It's better to give descriptive
+ names that will help to distinguish one runtime from another.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Home directory</para>
+ </entry>
+ <entry>
+ <para>The path to a directory where the runtime is installed.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>jRE</para>
+ </entry>
+ <entry>
+ <para>The proper Java Runtime Environment. Because of the open-source nature of
+ JBoss, a user is likely to want to modify and repackage some of the
+ configuration-specific jboss jars and create their own configuration. Thus, rather
+ than forcing you to copy his entire JBoss installation, the structure of the
+ wizard allows to create only a new configuration instead.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Configuration</para>
+ </entry>
+ <entry>
+ <para>The list of configurations (all, default, minimal) that is updated as soon as
+ you browse to a valid runtime installation folder. After the runtime is created
+ the configuration becomes an unchanging property of that runtime. To compile
+ against a different configuration's jars, you will need to create a new runtime
+ from that configuration.</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para><diffmk:wrapper diffmk:change="changed">As a result of having each runtime represent a specific configuration rather than the
+ server installation as a whole, it is very likely you'll create several different
+ runtimes to test each of your configurations. It becomes important to ensure your runtimes,
+ and later your servers, are given descriptive names that help you remember which is
+ which.</diffmk:wrapper></para>
+
+ <para>Press <emphasis>
+ <property moreinfo="none">Finish</property>
+ </emphasis> to see your new runtime in the list.</para>
+ </section>
+
+ </section>
+
+ <section>
+ <title>Servers</title>
+ <para>WTP servers are eclipse-representations of a backing server installation. They are used to
+ start or stop servers, deploy to servers, or debug code that will run on the server. They keep
+ track of the modules (jars, wars, etc) you deploy to the server and also allow you to undeploy
+ those modules (see <link linkend="run_on_server_wizard"><diffmk:wrapper diffmk:change="changed">Deploying with Run On Server
+ Wizard</diffmk:wrapper></link> section). </para>
+ <para>Servers can be started or stopped with different <link linkend="com_line_arg">command-line
+ arguments</link><diffmk:wrapper diffmk:change="changed">. They are often backed by a runtime object representing that server's
+ location.</diffmk:wrapper></para>
+
+ <section>
+ <title>Creating a New Server</title>
+
+ <para>There are many ways to get to the new server wizard. One way is to use the old standard <emphasis>
+ <property moreinfo="none">File > New > Other... </property>
+ </emphasis> and then <emphasis>
+ <property moreinfo="none">Server</property>
+ </emphasis>. This should show the wizard like below.</para>
+ <figure float="0">
+ <title>Adding a JBoss Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>A server object is that keeps track of things like command line arguments when starting
+ or stopping, and runtimes keep track of the location of the installation. Thus, each server
+ instance must be backed by an appropriate runtime. </para>
+
+ <para><diffmk:wrapper diffmk:change="changed">From the list of already declared runtimes in the combo box below the view it's
+ possible to select which runtime you want your server to be backed by. If there is no
+ runtime that matches your needs just press the </diffmk:wrapper><emphasis>
+ <property moreinfo="none"><diffmk:wrapper diffmk:change="changed">Add...</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> link nearby to bring up the wizard for creating a new runtime (see the </diffmk:wrapper><link diffmk:change="added" linkend="add_runtime_figure"><diffmk:wrapper diffmk:change="added">previous section</diffmk:wrapper></link><diffmk:wrapper diffmk:change="added">). To configure the already installed
+ runtimes you should go to server preferences that you can easily do by pressing the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Configure runtime environments...</diffmk:wrapper></property></emphasis><diffmk:wrapper diffmk:change="added"> link.</diffmk:wrapper></para>
+
+ <para><diffmk:wrapper diffmk:change="changed">If the server you want to create doesn't have any installed runtime yet, the combo box
+ and the links are absent.</diffmk:wrapper></para>
+
+ <figure float="0">
+ <title>Installed Server Runtime Environments</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In this case the next page in the wizard which has the same form as in <link linkend="add_runtime_figure">the previous section</link> will ask you to create the
+ associated runtime.</para>
+ <para>Either way, after targeting your server to a runtime, the final screen in this wizard is
+ largely confirmational, giving you a chance to verify that you've selected the
+ appropriate runtime. It also allows to name the server appropriately. </para>
+
+ <figure float="0">
+ <title>Installed Server Runtime Environments</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_7.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Press <emphasis>
+ <property moreinfo="none">Finish</property>
+ </emphasis> to complete the process of the server creation.</para>
+ <para>Now that we've created our runtimes and servers, we can dwell on all services
+ and tools that JBoss Server Manager provides.</para>
+ </section>
+
+ </section>
+
+</chapter>
+
+
+<chapter id="perspective" role="updated" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/perspective.xml" xreflabel="perspective">
+ <?dbhtml filename="perspective.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Deploy</keyword>
+ <keyword>Deployment</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>JBoss AS Perspective</title>
+
+ <para>This chapter tells how to manage installed <property moreinfo="none">JBoss Server</property> via
+ <property moreinfo="none">JBoss AS perspective</property>.</para>
+
+ <para>The <property moreinfo="none">JBoss AS perspective</property> is similar to the <property moreinfo="none">Java
+ perspective</property>, but it contains a few additional views. Two of the additional
+ views are standard views, specifically the <property moreinfo="none">Console view</property> and the
+ <property moreinfo="none">Properties view</property>. The other two views that are added are the
+ <property moreinfo="none">Project archives view</property> and the <property moreinfo="none">JBoss Server
+ View</property>.</para>
+
+ <section id="JBossServerView" role="updated">
+ <?dbhtml filename="JBossServerView.html"?>
+ <title>The JBoss Server View</title>
+
+ <para>The <property moreinfo="none">JBoss Server View</property> is built on Common Navigator Framework
+ allowing extensions and is using label decorators what makes the UI enough compact
+ without loosing the vital information.</para>
+
+ <para>Let's have a look at the <property moreinfo="none">JBoss Server View</property> and inspect
+ in detail all parts it consists of. </para>
+ <figure float="0">
+ <title>The JBoss Server View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <section id="jbossserver_view_toolbar">
+ <title>JBoss Server View Toolbar</title>
+ <para>In the right top corner of the <property moreinfo="none">JBoss Server View</property> there is a
+ special toolbar which provides a quick access to starting a server (in debug mode,
+ run mode, or profile mode), restarting a server, stopping a server, publishing to a
+ server and a possibility to clean a server.</para>
+
+ <figure float="0">
+ <title>The JBoss Server View Toolbar</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In order to debug your applications or EJB's that are deployed to the server, you
+ must start the server in debug mode. By starting the server in debug mode, eclipse
+ will allow you to set breakpoints on code in your workspace and step through the
+ code.</para>
+
+ <para><emphasis>
+ <property moreinfo="none">Start the server in profiling mode</property>
+ </emphasis> button allows to enable profiling actions for your application. For more
+ details on how to start using TPTP profiling with <property moreinfo="none">JBoss Tools</property>
+ refer to <link linkend="tptp_support">TPTP Support</link> chapter.</para>
+
+ <para><emphasis>
+ <property moreinfo="none">Publish to the server</property>
+ </emphasis> button will republish any modules where it has determined the workspace
+ is out of sync with the server. It will attempt to do an incremental publish if it
+ turns out that the module in question is capable of doing one.</para>
+
+
+ <para>Press <emphasis>
+ <property moreinfo="none">Clean</property>
+ </emphasis> if you need to clean projects published on the server, i.e. remove
+ invalid resources from the server.</para>
+ </section>
+
+ <section id="jbossserver_view_structure">
+ <title>JBoss Server View Structure</title>
+ <para>The <property moreinfo="none">JBoss Server View</property> displays all declared servers as well
+ as their current states (that is whether they are started or stopped) and statuses
+ in the square brackets next to a server name.</para>
+
+ <figure float="0">
+ <title>The JBoss Server View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The following table lists possible server statuses.</para>
+
+ <table>
+ <title>Server Publish Status</title>
+ <tgroup cols="2">
+ <colspec align="left" colnum="1" colwidth="1*"></colspec>
+ <colspec colnum="2" colwidth="3*"></colspec>
+
+
+ <thead>
+ <row>
+ <entry align="center">Status</entry>
+
+ <entry align="center">Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry align="center">
+ <para>Republish</para>
+ </entry>
+
+ <entry align="center">
+ <para>The status which allows you to see if changes are
+ awaiting</para>
+ </entry>
+ </row>
+ <row>
+ <entry align="center">
+ <para>Publishing...</para>
+ </entry>
+
+ <entry align="center">
+ <para>The status which shows if changes are being updated</para>
+ </entry>
+ </row>
+ <row>
+ <entry align="center">
+ <para>Synchronized</para>
+ </entry>
+
+ <entry align="center">
+ <para>The status which allows you to see if changes are
+ in-sync</para>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>You can control a server behavior as well as adjust some server preferences with
+ the help of the context menu commands.</para>
+
+ <figure float="0">
+ <title><diffmk:wrapper diffmk:change="changed">Context Menu Commands</diffmk:wrapper></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_8.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>All available context menu commands are described in the following table.</para>
+ <table>
+ <title>Server Properties through the Context Menu</title>
+ <tgroup cols="2">
+ <colspec align="left" colnum="1" colwidth="1*"></colspec>
+ <colspec colnum="2" colwidth="3*"></colspec>
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>New Server</para>
+ </entry>
+ <entry>
+ <para>The option allows to define a new server</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Open</para>
+ </entry>
+ <entry>
+ <para>The option opens the Server editor</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Show in</para>
+ </entry>
+ <entry>
+ <para><diffmk:wrapper diffmk:change="changed">This option gives an easy access to the next views: Console,
+ Debug view, Server Log or MBean Explorer</diffmk:wrapper></para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Delete</para>
+ </entry>
+ <entry>
+ <para>Standard option that allows to delete the chosen server</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Start</para>
+ </entry>
+ <entry>
+ <para>The action for stating a server in a run mode</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Debug</para>
+ </entry>
+ <entry>
+ <para>The action for stating a server in a debug mode</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Stop</para>
+ </entry>
+ <entry>
+ <para>The action for stopping a declared server</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Publish</para>
+ </entry>
+ <entry>
+ <para>The action for synching the publish information between the
+ server and workspace</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Clean</para>
+ </entry>
+ <entry>
+ <para>The option for complete redeploying the resources</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><diffmk:wrapper diffmk:change="added">Explore</diffmk:wrapper></para>
+ </entry>
+ <entry diffmk:change="added">
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">This action uses the native OS file explorer to browse the
+ deploy destination. Note: The option is also available for
+ deployed resources/projects (see the figure below).</diffmk:wrapper></para>
+ </entry>
+ </row>
+
+ <row diffmk:change="added">
+ <entry diffmk:change="added">
+ <para diffmk:change="added">Add and Remove Projects</para>
+ </entry>
+ <entry>
+ <para>The option allows to publish a new project to the server (if
+ its type is supported)</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Monitoring</para>
+ </entry>
+ <entry>
+ <para><diffmk:wrapper diffmk:change="changed">Possibility to add ports to be monitored on the current
+ server</diffmk:wrapper></para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Properties</para>
+ </entry>
+ <entry>
+ <para><diffmk:wrapper diffmk:change="changed">Opens the window to adjust the current server
+ preferences</diffmk:wrapper></para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>Under the server element in the <property moreinfo="none">JBoss Server View</property>, you can
+ see currently deployed to the server modules and some server extensions which
+ provide the additional information on the server.</para>
+
+ <para>The context menu for any module allows you to remove it from the server, force a
+ full or incremental republish upon it.</para>
+
+ <figure float="0">
+ <title>Modules Action</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_11.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <section diffmk:change="added" id="filesets">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></title>
+
+ <para>The <emphasis>
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category in the </diffmk:wrapper><property moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Server View</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added"> is intended
+ for files filtering.</diffmk:wrapper></para>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">To add a new file filter, right-click the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category and select </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Create File Filter</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added">.</diffmk:wrapper></emphasis><diffmk:wrapper diffmk:change="added">The </diffmk:wrapper><property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">New File
+ Filter wizard</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added"> should appear.</diffmk:wrapper></para>
+
+ <figure diffmk:change="added" float="0">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">Creating a New File Filter</diffmk:wrapper></title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata diffmk:change="added" fileref="images/perspective/filesets1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">The wizard asks you to enter the filter name and add includes and excludes
+ patterns. The preview box underneath gives a list of files matched to the
+ defined patterns.</diffmk:wrapper></para>
+
+ <figure diffmk:change="added" float="0">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">New File Filter Wizard</diffmk:wrapper></title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata diffmk:change="added" fileref="images/perspective/filesets2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">After the filter is created, you can observe it by expanding the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category in the </diffmk:wrapper><property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Server View</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added">.</diffmk:wrapper></para>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">It's possible now to edit files directly from the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> category. Double clicking on a file from </diffmk:wrapper><emphasis>
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> opens up the editor automatically or you can use the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property moreinfo="none"><diffmk:wrapper diffmk:change="changed">Edit File</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> context menu command.</diffmk:wrapper></para>
+
+ <figure diffmk:change="added" float="0">
+ <title><diffmk:wrapper diffmk:change="changed">Direct Editing from the Filesets</diffmk:wrapper></title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata diffmk:change="added" fileref="images/perspective/filesets3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para><diffmk:wrapper diffmk:change="added">To delete a file filter (or just a file) from the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Filesets</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added">,</diffmk:wrapper></emphasis><diffmk:wrapper diffmk:change="added"> right-click a file filter (or the
+ unnecessary file) and select the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Delete File Filter</diffmk:wrapper></property>
+ </emphasis>
+ <emphasis diffmk:change="added"><diffmk:wrapper diffmk:change="added">(</diffmk:wrapper><property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Delete File</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added">)</diffmk:wrapper></emphasis><diffmk:wrapper diffmk:change="added"> command.</diffmk:wrapper></para>
+
+ <figure diffmk:change="added" float="0">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">Deleting the File from the Filesets</diffmk:wrapper></title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata diffmk:change="added" fileref="images/perspective/filesets4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section diffmk:change="added" id="xml_configuration">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">XML Configuration</diffmk:wrapper></title>
+ <para>The <emphasis>
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">XML Configuration</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> category allows you to quickly browse to descriptor files in your
+ server's deploy directory and check or change the values. Basically, </diffmk:wrapper><emphasis diffmk:change="added">
+ <property moreinfo="none">XML Configuration</property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> includes XML XPaths where a xpath is a path used to access some
+ specific part of an xml document. </diffmk:wrapper></para>
+
+ <note diffmk:change="added">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">Note:</diffmk:wrapper></title>
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">You are assumed to be familiar with XPath. If not, we highly suggested
+ that you look through an appropriate manual or tutorial on the topic.</diffmk:wrapper></para>
+ </note>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">The </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">XML Configuration</diffmk:wrapper></property>
+ </emphasis> category itself contains only a list of categories. <emphasis>
+ <property moreinfo="none">Ports</property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> are provided by default and is filled with many of the most commonly
+ used ports in the </diffmk:wrapper><property moreinfo="none">JBoss Server</property>.</para>
+
+ <figure float="0">
+ <title>XML Configuration</title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata fileref="images/perspective/perspective_14.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+
+
+ <para>By right-clicking on <emphasis>
+ <property moreinfo="none">XML Configuration</property>, </emphasis><diffmk:wrapper diffmk:change="changed"> you can create a new
+ category. Besides, context menu for </diffmk:wrapper><emphasis>
+ <property moreinfo="none">XML Configuration</property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> category makes possible to disable it. You can disable any category
+ in the bottom part of the </diffmk:wrapper><emphasis>
+ <property moreinfo="none">JBoss Server View</property>.</emphasis> Look for them in the <emphasis>
+ <property moreinfo="none">Inactive Categories</property>
+ </emphasis> afterwards to re-enable.</para>
+
+ <figure float="0">
+ <title>Adding New Category</title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata fileref="images/perspective/perspective_15.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>By right-clicking on <emphasis>
+ <property moreinfo="none">Ports</property>
+ </emphasis> or any other category in <emphasis>
+ <property moreinfo="none">XML Configuration</property>
+ </emphasis>, you can create a new xpath.</para>
+
+ <figure float="0">
+ <title>Adding New XPath</title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata fileref="images/perspective/perspective_16.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After that, the dialog shown below will appear.</para>
+
+ <figure float="0">
+ <title>Adding New XPath</title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata fileref="images/perspective/perspective_17.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para><diffmk:wrapper diffmk:change="changed">The goal here is to get an end result where the XPath matches up with a
+ necessary property. With that in mind, let's look how it works. If the
+ property you want to reach is the value of the </diffmk:wrapper><emphasis>name</emphasis><diffmk:wrapper diffmk:change="changed">
+ attribute in the element </diffmk:wrapper><emphasis><mbean></emphasis>, then your <emphasis>
+ <property moreinfo="none">XPath Patten</property>
+ </emphasis>should end with <emphasis>mbean</emphasis> and your <emphasis>
+ <property moreinfo="none">Attribute Name</property>
+ </emphasis> should be <emphasis>name</emphasis> like on the next figure.</para>
+
+ <programlisting format="linespecific" role="XML"><![CDATA[...
+<server>
+...
+ <mbean code="org.jboss.ejb.EJBDeployer"
+ name="jboss.ejb:service=EJBDeployer" xmbean-dd="">
+
+ <!-- Inline XMBean Descriptor BEGIN -->
+ <xmbean>
+ <description>
+ The EJBDeployer responsible for ejb jar deployment</description>
+ ...
+ </xmbean>
+ </mbean>
+</server>
+]]></programlisting>
+
+ <figure float="0">
+ <title>XPath Preview</title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata fileref="images/perspective/perspective_18.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para><diffmk:wrapper diffmk:change="changed">Notice, when you type the fields autocomplete to help you locate exactly
+ what xpath you're looking for.</diffmk:wrapper></para>
+ </tip>
+
+ <para><diffmk:wrapper diffmk:change="changed">Then, on the other hand, if your desired field is the text of an element
+ </diffmk:wrapper><emphasis><description></emphasis>, your <emphasis>
+ <property moreinfo="none">XPath Patten</property>
+ </emphasis> should end with <emphasis>description</emphasis> and <emphasis>
+ <property moreinfo="none">Attribute Name</property>
+ </emphasis> field should be left blank. When finished, click <emphasis>
+ <property moreinfo="none">Preview</property>
+ </emphasis> to see how many matches you have for that particular XPath.</para>
+
+ <figure diffmk:change="added" float="0">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">XPath Preview</diffmk:wrapper></title>
+ <mediaobject diffmk:change="added">
+ <imageobject diffmk:change="added">
+ <imagedata diffmk:change="added" fileref="images/perspective/perspective_19.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ </section>
+
+ <section diffmk:change="added" id="dragndrop_to_jboss_server_view">
+ <title diffmk:change="added"><diffmk:wrapper diffmk:change="added">Drag-n-Drop to JBoss Server View</diffmk:wrapper></title>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">Starting from 2.0.0.CR2 version of </diffmk:wrapper><property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss AS Tools</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added"> the
+ </diffmk:wrapper><property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">JBoss Server View</diffmk:wrapper></property><diffmk:wrapper diffmk:change="added"> supports drag-n-drop of deployable and
+ runnable projects/resources.</diffmk:wrapper></para>
+
+ <figure float="0">
+ <title><diffmk:wrapper diffmk:change="changed">Dragging to the JBoss Server View</diffmk:wrapper></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/dnd_toJBossServerView.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">With drag-n-drop the following actions can be performed:</diffmk:wrapper></para>
+
+ <itemizedlist diffmk:change="added">
+ <listitem diffmk:change="added">
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">dragging a project to a server will deploy it to the server and run it by
+ showing the main page in a browser</diffmk:wrapper></para>
+ </listitem>
+
+ <listitem diffmk:change="added">
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">dragging an </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">.xhtml</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> file from </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">WebContent</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> will do the same and show the corresponding page in a
+ browser</diffmk:wrapper></para>
+ </listitem>
+
+ <listitem diffmk:change="added">
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">dragging a deployable resource (i.e. a datasource (</diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">-ds.xml</diffmk:wrapper></property></emphasis><diffmk:wrapper diffmk:change="added">) file that has
+ been made deployable) will simply deploy that resource directly to the
+ server</diffmk:wrapper></para>
+ </listitem>
+ </itemizedlist>
+
+ <para diffmk:change="added"><diffmk:wrapper diffmk:change="added">In short, the feature does the same thing as if you used the </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Run On Server</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> option or </diffmk:wrapper><emphasis diffmk:change="added">
+ <property diffmk:change="added" moreinfo="none"><diffmk:wrapper diffmk:change="added">Add and Remove Projects</diffmk:wrapper></property>
+ </emphasis><diffmk:wrapper diffmk:change="added"> option in the context menu of the server.</diffmk:wrapper></para>
+ </section>
+
+ <section id="server_log">
+ <title>Server Log View</title>
+
+ <para><diffmk:wrapper diffmk:change="changed">You can monitor the current server behavior with the help of the </diffmk:wrapper><property moreinfo="none">Server
+ Log</property>. To open a server in the <property moreinfo="none"><diffmk:wrapper diffmk:change="changed">Server Log view</diffmk:wrapper></property><diffmk:wrapper diffmk:change="changed"> you
+ should right-click on the server and follow to </diffmk:wrapper><emphasis>
+ <property moreinfo="none">Open in > Server Log</property>.</emphasis></para>
+
+ <para>The <emphasis>
+ <property moreinfo="none">Server Log</property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> shows relevant information to your server's startup, shutdown,
+ and publish processes. This allows you to keep an eye on what's going on
+ (such as automatic incremental deployment if you have it enabled).</diffmk:wrapper></para>
+
+ <figure float="0">
+ <title>Event Log Actions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_12.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The <property moreinfo="none">Server Log</property><diffmk:wrapper diffmk:change="changed"> toolbar contains several icons that perform
+ the following actions:</diffmk:wrapper></para>
+
+ <table>
+ <title>Server Log Toolbar Icons</title>
+ <tgroup cols="2">
+ <colspec align="left" colnum="1" colwidth="1*"></colspec>
+ <colspec colnum="2" colwidth="3*"></colspec>
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>Export Log</para>
+ </entry>
+ <entry>
+ <para>Possibility to export the log into a text file</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Clear Log Viewer</para>
+ </entry>
+ <entry>
+ <para><diffmk:wrapper diffmk:change="changed">The option clears the current server log</diffmk:wrapper></para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Delete Log</para>
+ </entry>
+ <entry>
+ <para>Click to delete the server log</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Open Log</para>
+ </entry>
+ <entry>
+ <para>Click to open the server log text file</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Restore Log</para>
+ </entry>
+ <entry>
+ <para>Click to restore the server log</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="server_editor">
+ <title>Server Editor</title>
+ <para>By double-clicking on any server, an editor window will appear allowing you to
+ edit parts of that server.</para>
+
+ <figure float="0">
+ <title>Preferences Page for the Chosen Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para>On the figure you can see that a username/password is available in the UI when
+ configuring the server. If you get an SecurityException when trying to launch
+ the server, it is most likely because your server is protected and hence you
+ need to fill the username/password fields with appropriate values.</para>
+ </tip>
+
+ <para>It should be pointed out that our server adapter by default tries to automatically
+ detect the ports it needs for integrating with a <property moreinfo="none">JBoss Server</property>.
+ Sometimes it can though be relevant to override this automatic detection if you are
+ using some custom configuration. For this purposes the <emphasis>
+ <property moreinfo="none">Server Ports</property>
+ </emphasis> section in the <property moreinfo="none">Server editor</property> is provided where the
+ port settings are configurable. Click the <emphasis>
+ <property moreinfo="none">Configure...</property>
+ </emphasis> link to bring up the wizard for adjusting the settings for the
+ ports.</para>
+
+ <figure float="0">
+ <title>Server Ports Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Press <emphasis>
+ <property moreinfo="none">Edit XPath</property>
+ </emphasis> button for the chosen port to configure its XPath's values.</para>
+
+ <figure float="0">
+ <title>XPath Pattern for a Server Port</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The settings related to <emphasis>
+ <property moreinfo="none">Publishing</property>
+ </emphasis>, <emphasis>
+ <property moreinfo="none">Timeouts</property>
+ </emphasis> or <emphasis>
+ <property moreinfo="none">Server Polling</property>
+ </emphasis> can be also adjusted in the <property moreinfo="none">Server editor</property>.</para>
+
+ <para id="com_line_arg"><property moreinfo="none">Server editor</property> makes it also possible to
+ modify the server's launch configuration. It's just after clicking <emphasis>
+ <property moreinfo="none">Open launch configuration</property>
+ </emphasis> link. In the open window there are the tabs for setting command line
+ arguments and other things that are relevant to launching the server.</para>
+
+ <figure float="0">
+ <title>Launch Configuration Properties</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_7.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Look up <ulink url="http://docs.jboss.org/jbossas/guides/installguide/r1/en/html/start-stop.html">here</ulink> to find parameters which can be specified for <property moreinfo="none">JBoss
+ Server</property>.</para>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>Find more about XPath in the <ulink url="http://www.w3.org/TR/xpath20/">XPath
+ Documentation</ulink>.</para>
+ </section>
+ </section>
+
+ <section id="Project_archivesView" role="updated">
+ <title>Project Archives View</title>
+ <para>Every application, whether Plain Old Java, J2EE, or some other language altogether,
+ needs to be packaged in some way. In Java-related projects, many people use ANT. </para>
+ <note>
+ <title>Note:</title>
+ <para>Those who use ANT will appreciate how the Project Archives Ant task is now
+ improved: it supports variables and gives more informative error/logging messages
+ when something goes wrong.</para>
+ </note>
+
+ <para>But <property moreinfo="none">JBoss Tools</property> come with our own Archives tool with a bit easier
+ and less-verbose XML and a handy user interface. The Project Archives plugin consists
+ primarily of a view, that is <property moreinfo="none">Project Archives view</property>, to set up each
+ packaging configuration.</para>
+ <para>So far, let's look through all functionality that the <property moreinfo="none">Project
+ Archives view</property> provides.</para>
+
+ <section id="archives_overview">
+ <title>Overview</title>
+
+ <para>The packaging configuration for each project is stored in the project's root
+ folder, and is in a file named <emphasis>
+ <property moreinfo="none">.packages</property>
+ </emphasis>, which has a fairly simple XML structure. Modifying the file by hand is
+ neither required nor recommended, and using the UI is the official way of modifying
+ your packaging structure.</para>
+
+ <figure float="0">
+ <title>Archives View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_21.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>A project's configuration contains archives. As you can see on the image
+ above a project can contain more than one archive. Internal archives and filesets
+ can be directly inside of an archive, or in some sub-folder of that archive.</para>
+
+ <para>In the upper right corner of the view you can see an icon which, when clicked,
+ will build the selected top-level archive. Additionally, you can select <emphasis>
+ <property moreinfo="none">Project > Build Packages</property>
+ </emphasis> when a project is selected in the <property moreinfo="none">Packages View</property> to
+ build all declared packages in that project's <emphasis>
+ <property moreinfo="none">.packages</property>
+ </emphasis> file. This will execute a full build on all declared archives.</para>
+ </section>
+
+ <section id="Creating_Archive">
+ <title>Creating an Archive</title>
+
+ <para>When you open the <property moreinfo="none">Project archives view</property> for the first time,
+ it asks you to select the project for what you want to create an archive.</para>
+
+ <figure float="0">
+ <title>Archives View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_21a.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>When creating a new archive for selected project, you have some different options
+ at your disposal. You need right-click inside the view and select <emphasis>
+ <property moreinfo="none">New Archive</property>
+ </emphasis> to see your archive type options.</para>
+
+ <figure float="0">
+ <title>Create an Archive</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_22.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <note>
+ <title>Note:</title>
+ <para>If you see only JAR from the list of available archive types, you should
+ verify whether AS Tools plugins/features are in place. EAR, EJB JAR and WAR
+ options are contributed by the AS Tools independently from webtools and the
+ virtual project model. Thus, without them only JAR will show up.</para>
+ </note>
+
+ <para><property moreinfo="none">JAR</property> is the standard archive type, and does very little
+ configuration, leaving most of the work up to you. You can customize the name, add
+ folders, filesets, and inner jars to it.</para>
+
+ <para>The other types, for the most part, simply start off with a default setting,
+ usually the jar with some specific children based on an expected structure of the
+ project. For example, if the project is a Dynamic Web Project, and you create a
+ <property moreinfo="none">WAR</property> archive, the archive will be created with a few
+ filesets relevant to the known structure of the project.</para>
+
+ <para>Here is the first page of all New archive wizards. It is the same for any archive
+ type and the only page in the <property moreinfo="none">New Jar wizard</property>.</para>
+ <figure float="0">
+ <title>New WAR Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_23.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The page is pretty simple. First it asks to set the name of your new archive and a
+ destination.</para>
+
+ <para>The destination of an archive can be anywhere on the file system, anywhere in the
+ workspace, inside some other archive, or inside a folder declared inside an archive.
+ Select the necessary checkbox (either <emphasis>
+ <property moreinfo="none">workspace</property>
+ </emphasis> or <emphasis>
+ <property moreinfo="none"> file system</property>
+ </emphasis>) for marking the destination as related to either workspace or file
+ system. You can browse to workspace or filesystem destinations by clicking on their
+ respective buttons. To select a destination inside some other archive, you'll need
+ to press the <emphasis>
+ <property moreinfo="none">Workspace</property>
+ </emphasis> button. At the bottom of the list, you'll see archives that
+ have been declared in the workspace.</para>
+
+ <figure float="0">
+ <title>Selecting the destination in the workspace</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_23a.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Also in the wizard for creating a new archive you can choose whether an archive to
+ be compressed or exploded into a folder (without compression). You need just select
+ proper chechbox in the <emphasis>
+ <property moreinfo="none">Archive type</property>
+ </emphasis> section.</para>
+ <para>If a build or incremental update fails Project Archives will show an error
+ dialog:</para>
+ <figure float="0">
+ <title>Selecting the destination in the workspace</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/projectarchives_error.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click in <emphasis>
+ <property moreinfo="none">Details</property>
+ </emphasis> to see detailed information about what caused the error.</para>
+
+ <para>In the <property moreinfo="none">Package Explorer</property> you can observe the created
+ archive.</para>
+ <figure float="0">
+ <title>The Archive in the Package Explorer</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_23b.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>If you use the exploded type of archiving, instead of a single file archive the
+ result put into a folder is displayed in the <property moreinfo="none">Package
+ Explorer</property>.</para>
+ <figure float="0">
+ <title>The Exploded Archive in the Package Explorer</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_23c.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <section id="CreatingaFolder">
+ <title>Creating a Folder</title>
+ <para>Creating a folder is much easier. You simply right-click on an archive or
+ folder you want your new folder to be a child under. The only piece of required
+ information is naming the file.</para>
+ </section>
+ <section id="CreatingaFileSet">
+ <title>Creating a FileSet</title>
+ <para>To create a new fileset, you click on an available target location such as an
+ archive, a nested archive, or a folder within an archive, and select <emphasis>
+ <property moreinfo="none">New Fileset</property>. </emphasis></para>
+ <para>The <property moreinfo="none">New Fileset wizard</property> requires a destination (where the
+ files will go), and a root directory (or where the files are coming from). The
+ source can be anywhere in the workspace or from the filesystem at large.</para>
+
+ <figure float="0">
+ <title>Adding a New FileSet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_24.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Below that, the fileset requires only an includes pattern and an excludes
+ pattern. As you type in either of these fields, the preview viewer should update
+ itself with which files are matched.</para>
+
+ <para>You can create a Fileset with flattenning or without it. Look at the
+ difference on the figure below.</para>
+
+ <figure float="0">
+ <title>The FileSet with flattenning and without it</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_24a.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ </section>
+
+ <section id="View_Actions">
+ <title>Archive Actions</title>
+ <figure float="0">
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_25.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The context menu on the items in the view is extendable, but there are several
+ that come standard.</para>
+
+ <table>
+ <title>Context Menu on the Item</title>
+ <tgroup cols="2">
+ <colspec align="left" colnum="1" colwidth="1*"></colspec>
+ <colspec colnum="2" colwidth="3*"></colspec>
+
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>
+ <para>Build Archive (Full)</para>
+ </entry>
+
+ <entry>
+ <para>The action enabled only on top-level archives, which initiates
+ a full build on that archive</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Edit Archive</para>
+ </entry>
+
+ <entry>
+ <para>Standard action that brings up the wizard associated with that
+ particular node type and allows the details to be changed</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Delete Archive</para>
+ </entry>
+
+ <entry>
+ <para>Deleting node is standard action with deletion not needing an
+ explanation</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Publish To Server</para>
+ </entry>
+
+ <entry>
+ <para>The action means the ability to publish to a declared
+ server</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Edit publish settings</para>
+ </entry>
+
+ <entry>
+ <para>Gives possibility to edit an archive publish settings</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section id="PublishToServer">
+ <title>Publishing to Server</title>
+ <para>Finally, you'll need to publish your application to a server. Here, we
+ show you how to do it with the help of <emphasis>
+ <property moreinfo="none">Archives View</property>. </emphasis></para>
+
+ <figure float="0">
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_26.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The dialog above appears after selecting <emphasis>
+ <property moreinfo="none">Publish To Server</property>. </emphasis> To simply publish once, you
+ just select the server(s) that you want, and finish. If you want the <emphasis>
+ <property moreinfo="none">Publish to Server</property>
+ </emphasis> action on that particular Archive to publish always to that set of
+ servers, then check the appropriate checkbox. And finally, to enable automatic
+ publishing upon build events, check the last checkbox.</para>
+ <para>The automatic publishing feature is nice if, for example, your package's
+ destination (where it is built) is a temporary folder and you want the archive
+ published to several servers. If you only really want your archive published to one
+ server, it might be easier to have the archive's destination folder be the deploy
+ folder of the server.</para>
+ </section>
+ <section id="rel_res_links_archiving">
+ <title>Relevant Resources Links</title>
+ <para>Refer to <ulink url="http://ant.apache.org/manual/index.html">Ant manual</ulink>
+ to find more on how to build your applications with help of Ant.</para>
+
+ <para>We also recommend you to watch the <ulink url="http://docs.jboss.org/tools/movies/demos/archiving/archiving.htm">movie</ulink> which demonstrates a powerful archiving functionality in
+ <property moreinfo="none">JBoss Tools</property>.</para>
+
+ <para>At this point, you are guessed to be familiar with <property moreinfo="none">JBoss AS
+ perspective</property> and your next step now is to explore how to work with
+ different kinds of projects.</para>
+ </section>
+
+ </section>
+
+
+</chapter>
+
+
+<chapter id="webtools" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/webtools.xml">
+ <title>Projects</title>
+ <para>The most popular of the projects we deal with are the J2EE ones, such as Dynamic Web
+ Project, EJB Project, or EAR project. Web projects of <property moreinfo="none">JBoss Tools</property> are
+ Struts, JSF and Seam projects. All of them are called faceted projects. Thus, in this
+ chapter we are going to tell you about facets the main benefit of which to provide proper
+ structuring and packaging for any type of project.</para>
+
+ <section>
+ <title>Faceted Projects Overview</title>
+ <para>The idea behind faceted projects is that each project can accept units of
+ functionality, or facets, which can be added or removed by the user. Most often, these
+ facets either add to the project's classpath, enable a builder, or watch the project in
+ some other fashion. Generally, every project concerned has at least one facet when
+ it's created. As an example, a Web project has a WebDoclet facet, or an EJB
+ Project has an EJB Module facet as prerequisites.</para>
+
+ <para> WTP projects have undergone some criticism as being
+ <emphasis>over-engineered</emphasis> or too restrictive in their design. WTP projects
+ are set up in a tree-relationship to each other, where one project can be a child of
+ another. For example, an EAR project may have a Web Project child, an EJB project child,
+ or other types.</para>
+
+ <para> However, the benefit of this is that the structure of your projects is then known,
+ and packaging it up *should* be trivial. Apparently, if your project is non-standard, or
+ you feel too confined by such rigid structural requirements, you can still choose to
+ package your project using the <link linkend="Project_archivesView">Archives
+ plugin</link>.</para>
+ </section>
+
+
+ <section>
+ <title>Adding Facets to a Project</title>
+
+ <para>In this section we're going to consider the facets added by <property moreinfo="none">JBoss
+ Tools</property> and show how you can configure them in a project: add new ones or
+ modify already existing configuration of the facets.</para>
+
+ <para>One way to configure the facets is doing it while organizing a new project. To
+ demonstrate this let's create a new <property moreinfo="none">Dynamic Web Project</property> by
+ selecting <emphasis>
+ <property moreinfo="none">File > New > Other...</property>
+ </emphasis> and then <emphasis>
+ <property moreinfo="none">Web > Dynamic Web Project</property>. </emphasis></para>
+ <figure float="0">
+ <title>New Dynamic Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webtools/webtools_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click <emphasis>
+ <property moreinfo="none">Next</property>
+ </emphasis> and you will see Dynamic Web Project page like on the figure below.</para>
+
+ <para> The first page of most WTP projects allows you to target a specific runtime,
+ representing a server's library location. It will also provide you the ability to add
+ this project to an EAR project, and select a pre-selected default set of facets, called
+ a configuration, rather than manually select each facet you might want.</para>
+ <para> Selecting the runtime, again, allows the project to install the proper classpaths to
+ the project so it knows what code to compile against.</para>
+
+ <figure float="0" id="dyn_web_project">
+ <title>New Dynamic Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webtools/webtools_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click on the <emphasis>
+ <property moreinfo="none">Modify</property>
+ </emphasis> button next to <property moreinfo="none">Configuration</property> section in order to open
+ the wizard which allows you to modify a chosen configuration. The wizard looks as
+ follows.</para>
+
+ <figure float="0" id="project_facets">
+ <title>Project Facets Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webtools/webtools_3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Here part of the listed facets are those which are provided by WTP. Some of them are
+ added by <property moreinfo="none">JBoss Tools</property>. They are:</para>
+ <itemizedlist>
+ <listitem>
+ <para>BIRT Charting Runtime Component</para>
+ </listitem>
+ <listitem>
+ <para>BIRT Reporting Runtime Component</para>
+ </listitem>
+ <listitem>
+ <para>JBoss ESB</para>
+ </listitem>
+ <listitem>
+ <para>JBoss Portlets</para>
+ </listitem>
+ <listitem>
+ <para>JBoss Web Services</para>
+ </listitem>
+ <listitem>
+ <para>Seam</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>On this wizard page you can enable or disable any facet as well as change it version.
+ What you should note here is that some facets or facets versions may conflict with each
+ other. In case of incompatibility you'll be prompted about this in the combo
+ box underneath.</para>
+ <figure float="0">
+ <title>Facet Constraints</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webtools/webtools_4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>When switching on the <emphasis>
+ <property moreinfo="none">Runtimes</property>
+ </emphasis><diffmk:wrapper diffmk:change="changed"> tab on the right you'll see the current server Runtime.</diffmk:wrapper></para>
+ <figure float="0">
+ <title>Runtimes on the Project Facets Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/webtools/webtools_5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On this tab you can also create a new Server Runtime and make it primary by pressing <emphasis>
+ <property moreinfo="none">Make Primary</property>
+ </emphasis> button after enabling it.</para>
+
+ <para>Clicking on <emphasis>
+ <property moreinfo="none">OK</property>
+ </emphasis> will save the chosen configuration of the facets and return you to the <link linkend="dyn_web_project">Dynamic Web Project wizard</link>. Further pages in the
+ wizard are specific to either the project type or the facets selected.</para>
+
+
+ <para>If you need to configure the facets for the existing project, you should bring up the
+ context menu for selected project and click <emphasis>
+ <property moreinfo="none">Properties</property>
+ </emphasis> and then <emphasis>
+ <property moreinfo="none">Project Facets</property>. </emphasis> This will bring up the familiar
+ <link linkend="project_facets">Project Facets wizard</link>, where you can create
+ your own custom facets configuration.</para>
+
+ <para></para>
+
+ </section>
+ <section id="rel_resources_links">
+ <title>Relevant Resources Links</title>
+
+ <para>More on the WTP facets you can read in the <ulink url="http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.jst.j2ee.do...">eclipse help</ulink>.</para>
+ </section>
+</chapter>
+
+
+<chapter id="modules" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/modules.xml">
+ <title>Deploying Modules</title>
+
+ <para>In this chapter it will be described how to deploy modules onto the server.</para>
+ <para> First of all it is necessary to say that deploying to a server is mostly painless. There
+ are several ways to do it provided by WTP, and some additional methods provided by JBoss
+ Tools. These methods are described further in this chapter.</para>
+
+ <section>
+ <title>Deploying on the Package Explorer</title>
+
+ <para>On the package explorer it is possible to publish either a project to a server or just
+ a signal file. Let's look at how to do this.</para>
+ <section id="run_on_server_wizard">
+ <title>Deploying with Run On Server Wizard</title>
+ <para> The first WTP method is to right-click on a project, such as a Dynamic Web
+ project, EJB project, or EAR project and then select <emphasis>
+ <property moreinfo="none">Run As > Run on Server</property>
+ </emphasis>. The resulting dialog allows you to select which supporting server the
+ project can be published to.</para>
+ <figure float="0">
+ <title>Define a New Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click <emphasis>
+ <property moreinfo="none">Next</property>
+ </emphasis> button to see add or remove projects page where you can choose projects
+ to configure them on server.</para>
+ <figure float="0" id="add_rem_proj">
+ <title>Add or Remove Projects</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>This page of the wizard also allows to undeploy modules from the server. For that
+ choose proper module(s) from the right and click <emphasis>
+ <property moreinfo="none"> < Remove</property>
+ </emphasis>. The modules will be completely undeployed after restarting your server
+ or republishing.</para>
+ <para>Generally, for the JBoss AS Server Adapters, publishing using this method will
+ force a default, best-guess, packaging configuration for your project. This
+ best-guess does not publish incrementally, but instead repackages your entire
+ project into a <emphasis>
+ <property moreinfo="none">.war</property>
+ </emphasis>, <emphasis>
+ <property moreinfo="none">.jar</property>
+ </emphasis>, or <emphasis>
+ <property moreinfo="none">.ear</property>
+ </emphasis> as appropriate, and then copies that file into the proper deploy
+ directory. For quicker smarter deployment, you will need to create archives using
+ the <link linkend="Project_archivesView">Project Archives view</link> and customize
+ packaging yourself.</para>
+ </section>
+
+ <section id="single_file_deployment">
+ <?dbhtml filename="DeployToServer.html"?>
+ <title>Deploying single files</title>
+
+ <para>Sometimes it becomes necessary to deploy one or more files to a server. For
+ that in order not to do a full republish in the context menu of files a <emphasis><property moreinfo="none">Deploy To Server</property></emphasis>
+ option is provided that allows a single file deployment. To deploy these non-WTP files/projects
+ right click on the file (<emphasis>
+ <property moreinfo="none">-ds.xml</property></emphasis>, <emphasis>
+ <property moreinfo="none">.ear</property></emphasis>, <emphasis>
+ <property moreinfo="none">.jar</property></emphasis> etc.) and select <emphasis>
+ <property moreinfo="none">Deploy To Server</property>
+ </emphasis> and it will be automatically deployed.</para>
+ <figure float="0">
+ <title>Deploy to Sever</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The deployed files are listed side-by-side with other modules that are deployed to
+ the server.</para>
+
+ <figure float="0">
+ <title>Deployed files on the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_7.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ </section>
+ <section>
+ <title>Deploying with JBoss Server View</title>
+ <para>As it has been already mentioned <property moreinfo="none">JBoss Server View</property> contains two
+ parts: the top part that displays all defined servers and the bottom part which provides
+ categories with additional information. Thus, in this section we suggest two more ways
+ to deploy resources onto the server.</para>
+ <section>
+ <title>Top part of JBoss Server View</title>
+ <para>In the top part of the <property moreinfo="none">JBoss Servers View</property> like in the Servers
+ View you should right click on a server and select the <emphasis>
+ <property moreinfo="none">Add and Remove Projects</property>
+ </emphasis> menu item.</para>
+ <figure float="0">
+ <title>Add and Remove Projects</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>This will bring up a <link linkend="add_rem_proj">familiar dialog</link> allowing
+ you to either publish projects or modules to a server, or remove them from the
+ server. If the selected module is a project like a Dynamic Web project, EJB project,
+ or EAR project, it will be published as through <emphasis>
+ <property moreinfo="none">Run on Server</property>
+ </emphasis> wizard, with a best-guess full package. If, however, the selected
+ element is an archive from the <link linkend="Project_archivesView">Project Archives
+ view</link>, it will be published according to the rules of that module
+ type.</para>
+ </section>
+
+ <section>
+ <title>Bottom part of JBoss Server View</title>
+ <para>In the bottom part of <emphasis>
+ <property moreinfo="none">JBoss Server View</property>
+ </emphasis> there is a category called <emphasis>
+ <property moreinfo="none">Modules</property>
+ </emphasis> which should display all currently-published modules on the server.
+ Right-clicking on the desired module and selecting <emphasis>
+ <property moreinfo="none">Full Publish</property>
+ </emphasis> will force a full rebuild of the entire module.</para>
+ <figure float="0">
+ <title>Full Publish</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Here, <emphasis>
+ <property moreinfo="none">Incremental Publish</property>
+ </emphasis> is meant to enable publishing of only those parts where changes have
+ been made.</para>
+ </section>
+ </section>
+ <section>
+ <title>Deploying with Project Archives View</title>
+ <para>In the <property moreinfo="none">Project Archives View</property> you can right-click on any declared
+ archive and select the <emphasis>
+ <property moreinfo="none">Publish To Server</property>
+ </emphasis> element. For more on this subject, see <link linkend="PublishToServer">Publishing to Server</link> in the Project Archives View section.</para>
+ <figure float="0">
+ <title>Publish to Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para> The only way to ensure an <emphasis>
+ <property moreinfo="none">Incremental Build</property>
+ </emphasis>, such as changes to one <emphasis>
+ <property moreinfo="none">.jsp</property>, </emphasis>
+ <emphasis>
+ <property moreinfo="none">.html</property>, </emphasis> or <emphasis>
+ <property moreinfo="none">.class</property>
+ </emphasis> file, is to enable the builder for that project. This is done by either
+ changing the global preferences for the <property moreinfo="none">Archives View</property>, or by
+ enabling project-specific preferences and ensuring the builder is on.</para>
+ <para>The last chapter covers a variety of methods on how you can deploy needed modules onto a
+ server.</para>
+ </section>
+</chapter>
+
+
+<chapter id="tptp_support" xml:base="file:///home/ochikvina/WORK/for_compare/trunk/as/docs/reference/en/modules/tptp_support.xml">
+ <title>TPTP Support</title>
+ <para>This chapter provides an overview on how to enable TPTP Profiling for <property moreinfo="none">JBoss
+ AS</property> adapters in <property moreinfo="none">JBoss Tools</property>.</para>
+
+ <section>
+ <title>TPTP Profiling</title>
+
+ <para>To get TPTP profiling work on <property moreinfo="none">JBoss Application Server</property> you should
+ first download <ulink url="http://www.eclipse.org/downloads/download.php?file=/tptp/4.5.0/TPTP-4.5.0...">TPTP 4.5.0 Runtime</ulink> and install it, i. e. just add the content of <emphasis>
+ <property moreinfo="none">plugins/features</property>
+ </emphasis> folders from downloaded directory to the same folders in your eclipse
+ installation directory.</para>
+
+ <para>And now all profile actions should work for you. To start <property moreinfo="none">JBoss
+ AS</property> in profiling mode use <emphasis>
+ <property moreinfo="none">Start the server in profiling mode</property>
+ </emphasis> button or <emphasis>
+ <property moreinfo="none">Profile As > Profile on Server</property>
+ </emphasis> option in the context menu of the project.</para>
+
+ <figure float="0">
+ <title>Start the Server in Profiling mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tptp_support/tptp_support_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To enable TPTP features in your workbench use <property moreinfo="none">Profiling and Logging
+ Perspective</property> that you can find in the list of proposed perspectives: <emphasis>
+ <property moreinfo="none">Window > Open Perspective > Other…</property>
+ </emphasis>
+ </para>
+
+ <figure float="0">
+ <title>Profiling and Logging Perspective</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tptp_support/tptp_support_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>All additional information on TPTP(Test and Performance Tools Platform) you can find
+ in <ulink url="http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/quicktour/quic...">eclipse documentation</ulink>.</para>
+ <para>In summary, this reference should help you to start with <ulink url="http://www.jboss.org/jbossas">JBoss AS</ulink> and get to know with functionality
+ for work with it.</para>
+ </section>
+</chapter>
+
+
+</book>
15 years, 4 months
JBoss Tools SVN: r14129 - trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-03-10 09:58:17 -0400 (Tue, 10 Mar 2009)
New Revision: 14129
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta
Log:
JBIDE-3961
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta 2009-03-10 13:12:15 UTC (rev 14128)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta 2009-03-10 13:58:17 UTC (rev 14129)
@@ -633,7 +633,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -691,7 +692,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -817,7 +819,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -875,7 +878,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -1002,13 +1006,15 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent20">
<AttributeData AttributeName="type"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Import..." kind="action" name="AddImport">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Import..." kind="action" name="AddImport">
<EntityData EntityName="SeamImport">
<AttributeData AttributeName="import"/>
</EntityData>
@@ -1138,13 +1144,15 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent20">
<AttributeData AttributeName="type"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Import..." kind="action" name="AddImport">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Import..." kind="action" name="AddImport">
<EntityData EntityName="SeamImport">
<AttributeData AttributeName="import"/>
</EntityData>
15 years, 4 months
JBoss Tools SVN: r14128 - trunk/ws/docs/reference.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-03-10 09:12:15 -0400 (Tue, 10 Mar 2009)
New Revision: 14128
Modified:
trunk/ws/docs/reference/pom.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-655 - adding profiles;
Modified: trunk/ws/docs/reference/pom.xml
===================================================================
--- trunk/ws/docs/reference/pom.xml 2009-03-10 13:11:49 UTC (rev 14127)
+++ trunk/ws/docs/reference/pom.xml 2009-03-10 13:12:15 UTC (rev 14128)
@@ -12,9 +12,40 @@
<profiles>
<profile>
+ <id>release</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseTest</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-release-nomarker.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-release-nomarker.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseJBDS</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ </properties>
+ </profile>
+ <profile>
<id>diffmk</id>
<properties>
- <master>master_output.xml</master>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-diff.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-diff.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf-diff.xsl</xsl-pdf>
</properties>
</profile>
</profiles>
@@ -27,9 +58,24 @@
<version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
<extensions>true</extensions>
-
- <dependencies>
+ <dependencies>
<dependency>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>jbosstools-docbook-xslt</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-docbook-xslt</artifactId>
<version>1.1.0</version>
@@ -55,25 +101,25 @@
<directory>${pom.basedir}/${cssdir}</directory>
</cssResource>
- <formats>
+ <formats>
<format>
<formatName>pdf</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/pdf.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-pdf}</stylesheetResource>
<finalName>${pom.name}.pdf</finalName>
</format>
<format>
<formatName>html</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-chunked}</stylesheetResource>
<finalName>index.html</finalName>
</format>
<format>
<formatName>html_single</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml-single.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-single}</stylesheetResource>
<finalName>index.html</finalName>
</format>
<format>
<formatName>eclipse</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/eclipse.xsl</stylesheetResource>
+ <stylesheetResource>classpath:/xslt/org/jboss/eclipse.xsl</stylesheetResource>
<finalName>index.html</finalName>
</format>
</formats>
@@ -108,7 +154,9 @@
</distributionManagement>
<properties>
- <stylesdir>../../../documentation/jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
<cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/org/css/</cssdir>
<master>master.xml</master>
<translation>en-US</translation>
15 years, 4 months
JBoss Tools SVN: r14127 - trunk/smooks/docs/reference.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-03-10 09:11:49 -0400 (Tue, 10 Mar 2009)
New Revision: 14127
Modified:
trunk/smooks/docs/reference/pom.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-655 - adding profiles;
Modified: trunk/smooks/docs/reference/pom.xml
===================================================================
--- trunk/smooks/docs/reference/pom.xml 2009-03-10 13:11:21 UTC (rev 14126)
+++ trunk/smooks/docs/reference/pom.xml 2009-03-10 13:11:49 UTC (rev 14127)
@@ -12,9 +12,40 @@
<profiles>
<profile>
+ <id>release</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseTest</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-release-nomarker.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-release-nomarker.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseJBDS</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ </properties>
+ </profile>
+ <profile>
<id>diffmk</id>
<properties>
- <master>master_output.xml</master>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-diff.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-diff.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf-diff.xsl</xsl-pdf>
</properties>
</profile>
</profiles>
@@ -27,8 +58,24 @@
<version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
<extensions>true</extensions>
- <dependencies>
+ <dependencies>
<dependency>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>jbosstools-docbook-xslt</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-docbook-xslt</artifactId>
<version>1.1.0</version>
@@ -54,25 +101,25 @@
<directory>${pom.basedir}/${cssdir}</directory>
</cssResource>
- <formats>
+ <formats>
<format>
<formatName>pdf</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/pdf.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-pdf}</stylesheetResource>
<finalName>${pom.name}.pdf</finalName>
</format>
<format>
<formatName>html</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-chunked}</stylesheetResource>
<finalName>index.html</finalName>
</format>
<format>
<formatName>html_single</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml-single.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-single}</stylesheetResource>
<finalName>index.html</finalName>
</format>
<format>
<formatName>eclipse</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/eclipse.xsl</stylesheetResource>
+ <stylesheetResource>classpath:/xslt/org/jboss/eclipse.xsl</stylesheetResource>
<finalName>index.html</finalName>
</format>
</formats>
@@ -105,7 +152,9 @@
</distributionManagement>
<properties>
- <stylesdir>../../../documentation/jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
<cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/org/css/</cssdir>
<master>master.xml</master>
<translation>en-US</translation>
15 years, 4 months
JBoss Tools SVN: r14126 - trunk/birt/docs.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-03-10 09:11:21 -0400 (Tue, 10 Mar 2009)
New Revision: 14126
Modified:
trunk/birt/docs/pom.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-655 - adding profiles;
Modified: trunk/birt/docs/pom.xml
===================================================================
--- trunk/birt/docs/pom.xml 2009-03-10 13:02:34 UTC (rev 14125)
+++ trunk/birt/docs/pom.xml 2009-03-10 13:11:21 UTC (rev 14126)
@@ -12,9 +12,40 @@
<profiles>
<profile>
+ <id>release</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseTest</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-release-nomarker.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-release-nomarker.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseJBDS</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <cssdir>../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ </properties>
+ </profile>
+ <profile>
<id>diffmk</id>
<properties>
- <master>master_output.xml</master>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single-diff.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml-diff.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf-diff.xsl</xsl-pdf>
</properties>
</profile>
</profiles>
@@ -27,8 +58,24 @@
<version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
<extensions>true</extensions>
- <dependencies>
- <dependency>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>jbosstools-docbook-xslt</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-docbook-xslt</artifactId>
<version>1.1.0</version>
@@ -55,19 +102,19 @@
</cssResource>
<formats>
- <format>
- <formatName>pdf</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/pdf.xsl</stylesheetResource>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>${xsl-pdf}</stylesheetResource>
<finalName>${pom.name}.pdf</finalName>
</format>
<format>
<formatName>html</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-chunked}</stylesheetResource>
<finalName>index.html</finalName>
</format>
<format>
<formatName>html_single</formatName>
- <stylesheetResource>file:${pom.basedir}/${stylesdir}/xslt/org/jboss/tools/xhtml-single.xsl</stylesheetResource>
+ <stylesheetResource>${xsl-single}</stylesheetResource>
<finalName>index.html</finalName>
</format>
<format>
@@ -105,7 +152,10 @@
<properties>
<stylesdir>../../documentation/jbosstools-docbook-xslt/src/main/resources</stylesdir>
- <cssdir>../../documentation/jbosstools-jdocbook-style/src/main/org/css</cssdir>
+ <xsl-single>classpath:/xslt/org/jboss/tools/xhtml-single.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/org/jboss/tools/xhtml.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/org/jboss/tools/pdf.xsl</xsl-pdf>
+ <cssdir>../../documentation/jbosstools-jdocbook-style/src/main/org/css/</cssdir>
<master>master.xml</master>
<translation>en-US</translation>
</properties>
15 years, 4 months
JBoss Tools SVN: r14125 - branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-03-10 09:02:34 -0400 (Tue, 10 Mar 2009)
New Revision: 14125
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-3979
Modified: branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java
===================================================================
--- branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java 2009-03-10 12:59:08 UTC (rev 14124)
+++ branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java 2009-03-10 13:02:34 UTC (rev 14125)
@@ -43,7 +43,7 @@
public class SeamProjectPropertyValidator implements IValidatorJob {
protected static final String VALIDATING_PROJECT = "VALIDATING_PROJECT";
- protected static final String INVALID_RUNTIME = "INVALID_RUNTIME";
+ protected static final String INVALID_SEAM_RUNTIME = "INVALID_SEAM_RUNTIME";
protected static final String INVALID_WEBFOLDER = "INVALID_WEBFOLDER";
protected static final String INVALID_PARENT_PROJECT = "INVALID_PARENT_PROJECT";
protected static final String INVALID_EJB_PROJECT = "INVALID_EJB_PROJECT";
@@ -247,7 +247,7 @@
String seamRuntimeName = pref.get(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME, null);
if(seamRuntimeName!=null && seamRuntimeName.length()>0 && (SeamRuntimeManager.getInstance().findRuntimeByName(seamRuntimeName) == null)) {
// Mark unknown runtime
- errorManager.addError(INVALID_RUNTIME, SeamPreferences.INVALID_PROJECT_SETTINGS, new String[]{seamRuntimeName!=null?seamRuntimeName:"", project.getName()}, project);
+ errorManager.addError(INVALID_SEAM_RUNTIME, SeamPreferences.INVALID_PROJECT_SETTINGS, new String[]{seamRuntimeName!=null?seamRuntimeName:"", project.getName()}, project);
}
if(ISeamFacetDataModelProperties.DEPLOY_AS_EAR.equals(pref.get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS, null))) {
Modified: branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties
===================================================================
--- branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties 2009-03-10 12:59:08 UTC (rev 14124)
+++ branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties 2009-03-10 13:02:34 UTC (rev 14125)
@@ -48,7 +48,7 @@
#Invalid seam project settings
INVALID_PARENT_PROJECT=Main Seam project "{0}" specified for Seam project "{1}" does not exist.
-INVALID_RUNTIME=Seam Runtime "{0}" specified for Seam project "{1}" does not exist.
+INVALID_SEAM_RUNTIME=Seam Runtime "{0}" specified for Seam project "{1}" does not exist.
INVALID_WEBFOLDER=View Folder "{0}" specified for Seam project "{1}" does not exist. Please correct this property in "Seam settings" page (Project->Properties->Seam Settings).
INVALID_EJB_PROJECT=EJB project "{0}" specified for Seam project "{1}" does not exist. Please correct this property in "Seam settings" page (Project->Properties->Seam Settings).
INVALID_TEST_PROJECT=Test project "{0}" specified for Seam project "{1}" does not exist. Please correct this property in "Seam settings" page (Project->Properties->Seam Settings).
15 years, 4 months
JBoss Tools SVN: r14124 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-03-10 08:59:08 -0400 (Tue, 10 Mar 2009)
New Revision: 14124
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-3979
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java 2009-03-10 10:00:06 UTC (rev 14123)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java 2009-03-10 12:59:08 UTC (rev 14124)
@@ -43,7 +43,7 @@
public class SeamProjectPropertyValidator implements IValidatorJob {
protected static final String VALIDATING_PROJECT = "VALIDATING_PROJECT";
- protected static final String INVALID_RUNTIME = "INVALID_RUNTIME";
+ protected static final String INVALID_SEAM_RUNTIME = "INVALID_SEAM_RUNTIME";
protected static final String INVALID_WEBFOLDER = "INVALID_WEBFOLDER";
protected static final String INVALID_PARENT_PROJECT = "INVALID_PARENT_PROJECT";
protected static final String INVALID_EJB_PROJECT = "INVALID_EJB_PROJECT";
@@ -247,7 +247,7 @@
String seamRuntimeName = pref.get(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME, null);
if(seamRuntimeName!=null && seamRuntimeName.length()>0 && (SeamRuntimeManager.getInstance().findRuntimeByName(seamRuntimeName) == null)) {
// Mark unknown runtime
- errorManager.addError(INVALID_RUNTIME, SeamPreferences.INVALID_PROJECT_SETTINGS, new String[]{seamRuntimeName!=null?seamRuntimeName:"", project.getName()}, project);
+ errorManager.addError(INVALID_SEAM_RUNTIME, SeamPreferences.INVALID_PROJECT_SETTINGS, new String[]{seamRuntimeName!=null?seamRuntimeName:"", project.getName()}, project);
}
if(ISeamFacetDataModelProperties.DEPLOY_AS_EAR.equals(pref.get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS, null))) {
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties 2009-03-10 10:00:06 UTC (rev 14123)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties 2009-03-10 12:59:08 UTC (rev 14124)
@@ -48,7 +48,7 @@
#Invalid seam project settings
INVALID_PARENT_PROJECT=Main Seam project "{0}" specified for Seam project "{1}" does not exist.
-INVALID_RUNTIME=Seam Runtime "{0}" specified for Seam project "{1}" does not exist.
+INVALID_SEAM_RUNTIME=Seam Runtime "{0}" specified for Seam project "{1}" does not exist.
INVALID_WEBFOLDER=View Folder "{0}" specified for Seam project "{1}" does not exist. Please correct this property in "Seam settings" page (Project->Properties->Seam Settings).
INVALID_EJB_PROJECT=EJB project "{0}" specified for Seam project "{1}" does not exist. Please correct this property in "Seam settings" page (Project->Properties->Seam Settings).
INVALID_TEST_PROJECT=Test project "{0}" specified for Seam project "{1}" does not exist. Please correct this property in "Seam settings" page (Project->Properties->Seam Settings).
15 years, 4 months
JBoss Tools SVN: r14123 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: ui/gef/model and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-03-10 06:00:06 -0400 (Tue, 10 Mar 2009)
New Revision: 14123
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/BeanPopulatorGraphicalModelListener.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanPropertiesSection.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/PropertyModel.java
Log:
JBIDE-3982
Fix it
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/BeanPopulatorGraphicalModelListener.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/BeanPopulatorGraphicalModelListener.java 2009-03-10 09:06:31 UTC (rev 14122)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/BeanPopulatorGraphicalModelListener.java 2009-03-10 10:00:06 UTC (rev 14123)
@@ -461,6 +461,10 @@
Object obj = event.getNewValue();
if (obj != null && obj instanceof PropertyModel && line != null) {
String name = ((PropertyModel) obj).getName();
+ if (name.equals(JavaBeanPropertiesSection.PRO_TYPE)) {
+ String value = (String) ((PropertyModel) obj).getValue();
+ modifyResourceConfigAdditionalProperties(line, name, value);
+ }
if (name
.equals(BeanPopulatorMappingAnalyzer.PRO_SELECTOR_ATTRIBUTES)) {
SelectorAttributes sa = (SelectorAttributes) ((PropertyModel) obj)
@@ -478,6 +482,34 @@
}
}
+ protected void modifyResourceConfigAdditionalProperties(
+ LineConnectionModel line, String proName, String value) {
+ ResourceConfigType resourceConfigType = getResourceConfig(line);
+ if (resourceConfigType != null) {
+ JavaBeanModel target = (JavaBeanModel) ((AbstractStructuredDataModel) line
+ .getTarget()).getReferenceEntityModel();
+ String name = target.getName();
+ List bindings = SmooksModelUtils
+ .getBindingListFromResourceConfigType(resourceConfigType);
+ if (bindings == null)
+ return;
+ for (Iterator iterator = bindings.iterator(); iterator.hasNext();) {
+ AnyType param = (AnyType) iterator.next();
+ String property = SmooksModelUtils
+ .getAttributeValueFromAnyType(param,
+ SmooksModelUtils.ATTRIBUTE_PROPERTY);
+ if (property == null)
+ return;
+ property = property.trim();
+ if (name.equalsIgnoreCase(property)) {
+ SmooksModelUtils.setPropertyValueToAnyType(value,
+ SmooksModelUtils.ATTRIBUTE_TYPE, param);
+ break;
+ }
+ }
+ }
+ }
+
protected void modifyResourceConfigSelector(LineConnectionModel line,
SelectorAttributes sa) {
ResourceConfigType resourceConfig = getResourceConfig(line);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanPropertiesSection.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanPropertiesSection.java 2009-03-10 09:06:31 UTC (rev 14122)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanPropertiesSection.java 2009-03-10 10:00:06 UTC (rev 14123)
@@ -65,7 +65,7 @@
*/
public class JavaBeanPropertiesSection extends AbstractSmooksPropertySection {
- private static final String PRO_TYPE = "type"; //$NON-NLS-1$
+ public static final String PRO_TYPE = "type"; //$NON-NLS-1$
private Text instanceClassText;
@@ -143,6 +143,7 @@
PropertyModel pro = getTypePropertyModel();
if (pro != null) {
pro.setValue(beanClassType);
+ getLineConnectionModel().addPropertyModel(pro);
fireDirty();
refresh();
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/PropertyModel.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/PropertyModel.java 2009-03-10 09:06:31 UTC (rev 14122)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/PropertyModel.java 2009-03-10 10:00:06 UTC (rev 14123)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.smooks.ui.gef.model;
+import javax.print.attribute.SupportedValuesAttribute;
+
/**
* @author Dart Peng<br>
* Date : Sep 4, 2008
15 years, 4 months
JBoss Tools SVN: r14122 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: ui/editors and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-03-10 05:06:31 -0400 (Tue, 10 Mar 2009)
New Revision: 14122
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/model/JavaBeanModel.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
Log:
JBIDE-3981
Add a new codes for loading input source when open the editor
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/model/JavaBeanModel.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/model/JavaBeanModel.java 2009-03-10 02:13:52 UTC (rev 14121)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/model/JavaBeanModel.java 2009-03-10 09:06:31 UTC (rev 14122)
@@ -23,7 +23,6 @@
import java.util.List;
import java.util.Properties;
-import org.eclipse.ui.internal.part.NullEditorInput;
import org.jboss.tools.smooks.analyzer.IValidatable;
import org.jboss.tools.smooks.javabean.uitils.JavaPropertyUtils;
import org.jboss.tools.smooks.ui.IXMLStructuredObject;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2009-03-10 02:13:52 UTC (rev 14121)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2009-03-10 09:06:31 UTC (rev 14122)
@@ -1336,6 +1336,22 @@
context);
}
}
+ if (sourceTreeViewerInputModel == null && sourceDataTypeID != null) {
+ SmooksConfigurationFileGenerateContext context = getSmooksConfigurationFileGenerateContext();
+ context.setSourceDataTypeID(sourceDataTypeID);
+ context.setTargetDataTypeID(targetDataTypeID);
+ sourceTreeViewerInputModel = selectSourceDataSource(
+ sourceDataTypeID, context);
+ if(sourceTreeViewerInputModel != null) setDirty(true);
+ }
+ if (targetTreeViewerInputModel == null && targetDataTypeID != null) {
+ SmooksConfigurationFileGenerateContext context = getSmooksConfigurationFileGenerateContext();
+ context.setSourceDataTypeID(sourceDataTypeID);
+ context.setTargetDataTypeID(targetDataTypeID);
+ targetTreeViewerInputModel = selectSourceDataSource(
+ targetDataTypeID, context);
+ if(targetTreeViewerInputModel != null) setDirty(true);
+ }
smooksResource = this.getSmooksResource();
if (smooksResource != null) {
smooksResource.load(Collections.EMPTY_MAP);
@@ -1429,8 +1445,10 @@
wizard1);
((Wizard) wizard1).setWindowTitle("Target Data Selection");
if (dialog1.open() == Dialog.OK) {
- context.getProperties().put("targetDataPath",
- wizard1.getStructuredDataSourcePath());
+ UIUtils
+ .addParamToGraphModel(graphinformations,
+ "targetDataPath", wizard1
+ .getStructuredDataSourcePath());
}
return wizard1.getTreeViewerInputContents();
}
@@ -1446,8 +1464,10 @@
wizard1);
((Wizard) wizard1).setWindowTitle("Source Data Selection");
if (dialog1.open() == Dialog.OK) {
- context.getProperties().put("sourceDataPath",
- wizard1.getStructuredDataSourcePath());
+ UIUtils
+ .addParamToGraphModel(graphinformations,
+ "sourceDataPath", wizard1
+ .getStructuredDataSourcePath());
}
return wizard1.getTreeViewerInputContents();
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2009-03-10 02:13:52 UTC (rev 14121)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2009-03-10 09:06:31 UTC (rev 14122)
@@ -32,12 +32,17 @@
import org.jboss.tools.smooks.analyzer.CompositeResolveCommand;
import org.jboss.tools.smooks.analyzer.DesignTimeAnalyzeResult;
import org.jboss.tools.smooks.analyzer.MappingModel;
+import org.jboss.tools.smooks.graphical.GraphInformations;
+import org.jboss.tools.smooks.graphical.GraphicalFactory;
+import org.jboss.tools.smooks.graphical.Param;
+import org.jboss.tools.smooks.graphical.Params;
import org.jboss.tools.smooks.javabean.analyzer.JavaModelConnectionResolveCommand;
import org.jboss.tools.smooks.javabean.analyzer.JavaModelResolveCommand;
import org.jboss.tools.smooks.javabean.model.JavaBeanModel;
import org.jboss.tools.smooks.javabean.model.SelectorAttributes;
import org.jboss.tools.smooks.javabean.ui.BeanPopulatorMappingAnalyzer;
import org.jboss.tools.smooks.model.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.ParamType;
import org.jboss.tools.smooks.model.ResourceConfigType;
import org.jboss.tools.smooks.model.SmooksPackage;
import org.jboss.tools.smooks.model.SmooksResourceListType;
@@ -750,7 +755,50 @@
}
return null;
}
+
+ public static void removeParamToGraphModel(GraphInformations graph,String paramName){
+ Params params = graph.getParams();
+ if(params == null){
+ return;
+ }
+ List<Param> paramList = params.getParam();
+ Param p = null;
+ for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
+ Param param = (Param) iterator.next();
+ if(paramName.equalsIgnoreCase(param.getName())){
+ p = param;
+ break;
+ }
+ }
+ if(p == null){
+ return;
+ }
+ params.getParam().remove(p);
+ }
+ public static void addParamToGraphModel(GraphInformations graph,String paramName,String paramValue){
+ Params params = graph.getParams();
+ if(params == null){
+ params = GraphicalFactory.eINSTANCE.createParams();
+ graph.setParams(params);
+ }
+ List<Param> paramList = params.getParam();
+ Param p = null;
+ for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
+ Param param = (Param) iterator.next();
+ if(paramName.equalsIgnoreCase(param.getName())){
+ p = param;
+ break;
+ }
+ }
+ if(p == null){
+ p = GraphicalFactory.eINSTANCE.createParam();
+ p.setName(paramName);
+ params.getParam().add(p);
+ }
+ p.setValue(paramValue);
+ }
+
public static IXMLStructuredObject localXMLNodeWithPath(String path,
IXMLStructuredObject contextNode) {
if(path == null) return null;
15 years, 4 months
JBoss Tools SVN: r14121 - in trunk: esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-03-09 22:13:52 -0400 (Mon, 09 Mar 2009)
New Revision: 14121
Added:
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Messages.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/messages.properties
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Constants.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/ImageManager.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Plugin.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ConfigurationManager.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/MacroLibrary.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ProjectClassLoader.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/dialogs/ContextValueDialog.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/CompletionProcessor.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/ContentScanner.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/Editor.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/FreemarkerMultiPageEditor.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/MacroHyperlink.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/PartitionScanner.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/XMLTagScanner.java
trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/preferences/PreferencePage.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossRuntimeListFieldEditor.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossWSLibraryListFieldEditor.java
Log:
JBIDE-3557 Externalise English strings in Java code
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties 2009-03-10 02:13:52 UTC (rev 14121)
@@ -37,6 +37,9 @@
JBoss_Runtime_List_Field_Editor_Name2=Name:
JBoss_Runtime_Check_Field_Default_Classpath=Customize JBoss ESB runtime jars
JBoss_Preference_Page_Runtimes=JBoss ESB Runtimes
+JBossLibraryListFieldEditor_ActionAdd=&Add
+JBossLibraryListFieldEditor_ActionRemove=&Remove
+JBossLibraryListFieldEditor_LIBRARY_JARS=Library Jars
JBossRuntimeListFieldEditor_ActionAdd=&Add
JBossRuntimeListFieldEditor_ActionEdit=&Edit
JBossRuntimeListFieldEditor_ActionRemove=&Remove
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -72,6 +72,12 @@
public static String JBoss_Runtime_Check_Field_Default_Classpath;
public static String JBoss_Preference_Page_Runtimes;
+ public static String JBossLibraryListFieldEditor_ActionAdd;
+
+ public static String JBossLibraryListFieldEditor_ActionRemove;
+
+ public static String JBossLibraryListFieldEditor_LIBRARY_JARS;
+
public static String JBossRuntimeListFieldEditor_ActionAdd;
public static String JBossRuntimeListFieldEditor_ActionEdit;
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossLibraryListFieldEditor.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -135,7 +135,7 @@
createCheckButton(root);
jarGroup = new Group(root, SWT.BORDER);
- jarGroup.setText("Library Jars");
+ jarGroup.setText(JBossESBUIMessages.JBossLibraryListFieldEditor_LIBRARY_JARS);
gd = new GridData(GridData.FILL_BOTH);
gd.horizontalAlignment = GridData.FILL;
gd.grabExcessHorizontalSpace = true;
@@ -254,7 +254,7 @@
public Image getImage(Object element) {
if (jarImg == null){
- ImageDescriptor jarImgDesc = JBossESBUIPlugin.getImageDescriptor("obj16/jar_obj.gif");
+ ImageDescriptor jarImgDesc = JBossESBUIPlugin.getImageDescriptor("obj16/jar_obj.gif"); //$NON-NLS-1$
jarImg = jarImgDesc.createImage();
}
return jarImg;
@@ -263,7 +263,7 @@
public String getText(Object element) {
String fullName = (String)element;
File jarFile = new File(fullName);
- return jarFile.getName() + " - " + jarFile.getParentFile().toString();
+ return jarFile.getName() + " - " + jarFile.getParentFile().toString(); //$NON-NLS-1$
}
});
@@ -500,13 +500,11 @@
*/
public class AddAction extends BaseAction {
- static final String ACTION_NAME = "&Add";
-
/**
* Constructor create Add action with default name
*/
public AddAction() {
- super(ACTION_NAME);
+ super(JBossESBUIMessages.JBossLibraryListFieldEditor_ActionAdd);
// This action is always available
setEnabled(true);
}
@@ -528,7 +526,7 @@
public void run() {
FileDialog dialog = new FileDialog(Display.getCurrent()
.getActiveShell(), SWT.MULTI);
- dialog.setFilterExtensions(new String[] { "*.jar;*.zip" });
+ dialog.setFilterExtensions(new String[] { "*.jar;*.zip" }); //$NON-NLS-1$
String fileName = dialog.open();
String[] fileNames = dialog.getFileNames();
if (fileName != null) {
@@ -556,13 +554,11 @@
*/
public class RemoveAction extends BaseAction {
- static final String ACTION_NAME = "&Remove";
-
/**
* Create DeleteAction action with default name
*/
public RemoveAction() {
- super(ACTION_NAME);
+ super(JBossESBUIMessages.JBossLibraryListFieldEditor_ActionRemove);
}
@Override
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Constants.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Constants.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Constants.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -23,13 +23,13 @@
public class Constants {
- public static final String COLOR_DIRECTIVE = "color.directive";
- public static final String COLOR_INTERPOLATION = "color.interpolation";
- public static final String COLOR_COMMENT = "color.comment";
- public static final String COLOR_TEXT = "color.text";
- public static final String COLOR_STRING = "color.string";
- public static final String COLOR_XML_TAG = "color.xmlTag";
- public static final String COLOR_XML_COMMENT = "color.xmlComment";
- public static final String COLOR_RELATED_ITEM = "color.oppositeRegion";
- public static final String HIGHLIGHT_RELATED_ITEMS = "boolean.highlightRelatedItems";
+ public static final String COLOR_DIRECTIVE = "color.directive"; //$NON-NLS-1$
+ public static final String COLOR_INTERPOLATION = "color.interpolation"; //$NON-NLS-1$
+ public static final String COLOR_COMMENT = "color.comment"; //$NON-NLS-1$
+ public static final String COLOR_TEXT = "color.text"; //$NON-NLS-1$
+ public static final String COLOR_STRING = "color.string"; //$NON-NLS-1$
+ public static final String COLOR_XML_TAG = "color.xmlTag"; //$NON-NLS-1$
+ public static final String COLOR_XML_COMMENT = "color.xmlComment"; //$NON-NLS-1$
+ public static final String COLOR_RELATED_ITEM = "color.oppositeRegion"; //$NON-NLS-1$
+ public static final String HIGHLIGHT_RELATED_ITEMS = "boolean.highlightRelatedItems"; //$NON-NLS-1$
}
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/ImageManager.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/ImageManager.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/ImageManager.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -28,10 +28,10 @@
*/
public class ImageManager {
- public static final String IMG_MACRO = "icons/userdefined_directive_call.gif";
- public static final String IMG_IMPORT = "icons/import.gif";
- public static final String IMG_IMPORT_COLLECTION = "icons/import_collection.gif";
- public static final String IMG_FUNCTION = "icons/function.gif";
+ public static final String IMG_MACRO = "icons/userdefined_directive_call.gif"; //$NON-NLS-1$
+ public static final String IMG_IMPORT = "icons/import.gif"; //$NON-NLS-1$
+ public static final String IMG_IMPORT_COLLECTION = "icons/import_collection.gif"; //$NON-NLS-1$
+ public static final String IMG_FUNCTION = "icons/function.gif"; //$NON-NLS-1$
public static Image getImage(String filename) {
Added: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Messages.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Messages.java (rev 0)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Messages.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -0,0 +1,47 @@
+package org.jboss.ide.eclipse.freemarker;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.ide.eclipse.freemarker.messages"; //$NON-NLS-1$
+ public static String ConfigurationManager_CHOOSE_NAMESPACE_FOR;
+ public static String ConfigurationManager_TITLE_CHOOSE_NAMESPACE;
+ public static String ContextValueDialog_BUTTON_BROWSE;
+ public static String ContextValueDialog_ERROR;
+ public static String ContextValueDialog_JAVA_PROJECT_ERROR;
+ public static String ContextValueDialog_LABEL_LIST_ENTRY_TYPE;
+ public static String ContextValueDialog_LABEL_NAME;
+ public static String ContextValueDialog_LABEL_TYPE;
+ public static String ContextValueDialog_MUST_BE_JAVA_PROJECT;
+ public static String ContextValueDialog_MUST_CHOOSE_CLASS;
+ public static String ContextValueDialog_MUST_CHOOSE_REFERENCE;
+ public static String ContextValueDialog_SHELL_CONTEXT_VALUE_CONFIG;
+ public static String FreemarkerMultiPageEditor_BUTTON_DELETE;
+ public static String FreemarkerMultiPageEditor_BUTTON_EDIT;
+ public static String FreemarkerMultiPageEditor_BUTTON_NEW;
+ public static String FreemarkerMultiPageEditor_COLUMN_NAME;
+ public static String FreemarkerMultiPageEditor_COLUMN_TYPE;
+ public static String FreemarkerMultiPageEditor_CONFIRMATION_TITLE;
+ public static String FreemarkerMultiPageEditor_CONFIRMATION_TO_DELETE_MESSAGE;
+ public static String FreemarkerMultiPageEditor_ERROR_CREATING_VEDITOR;
+ public static String FreemarkerMultiPageEditor_PAGE_TEXT_CONTEXT;
+ public static String FreemarkerMultiPageEditor_PAGE_TEXT_SOURCE;
+ public static String MacroHyperlink_TYPELABEL_MACRO_DEFINITION;
+ public static String PreferencePage_DESCRIPTION_FREEMARKER_SETTINGS;
+ public static String PreferencePage_FIELD_COMMENT;
+ public static String PreferencePage_FIELD_DIRECTIVE;
+ public static String PreferencePage_FIELD_HIGHLIGHT_RELATED_DIRECTIVES;
+ public static String PreferencePage_FIELD_HTML_XML_COMMENT;
+ public static String PreferencePage_FIELD_HTML_XML_TAG;
+ public static String PreferencePage_FIELD_INTERPOLATION;
+ public static String PreferencePage_FIELD_RELATED_DIRECTIVES;
+ public static String PreferencePage_FIELD_STRING;
+ public static String PreferencePage_FIELD_TEXT;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Plugin.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Plugin.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/Plugin.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -50,7 +50,7 @@
*/
public class Plugin extends AbstractUIPlugin {
- public static final String ID = "org.jboss.ide.eclipse.freemarker";
+ public static final String ID = "org.jboss.ide.eclipse.freemarker"; //$NON-NLS-1$
//The shared instance.
private static Plugin plugin;
@@ -61,7 +61,7 @@
super();
plugin = this;
try {
- resourceBundle = ResourceBundle.getBundle("org.jboss.ide.eclipse.freemarker.resources");
+ resourceBundle = ResourceBundle.getBundle("org.jboss.ide.eclipse.freemarker.resources"); //$NON-NLS-1$
} catch (MissingResourceException x) {
resourceBundle = null;
}
@@ -107,14 +107,14 @@
protected void initializeDefaultPluginPreferences() {
Preferences prefs = getPluginPreferences();
prefs.setDefault(Constants.HIGHLIGHT_RELATED_ITEMS, true);
- prefs.setDefault(Constants.COLOR_COMMENT, "170,0,0");
- prefs.setDefault(Constants.COLOR_TEXT, "0,0,0");
- prefs.setDefault(Constants.COLOR_INTERPOLATION, "255,0,128");
- prefs.setDefault(Constants.COLOR_DIRECTIVE, "0,0,255");
- prefs.setDefault(Constants.COLOR_STRING, "0,128,128");
- prefs.setDefault(Constants.COLOR_XML_COMMENT, "128,128,128");
- prefs.setDefault(Constants.COLOR_XML_TAG, "0,0,128");
- prefs.setDefault(Constants.COLOR_RELATED_ITEM, "255,255,128");
+ prefs.setDefault(Constants.COLOR_COMMENT, "170,0,0"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_TEXT, "0,0,0"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_INTERPOLATION, "255,0,128"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_DIRECTIVE, "0,0,255"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_STRING, "0,128,128"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_XML_COMMENT, "128,128,128"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_XML_TAG, "0,0,128"); //$NON-NLS-1$
+ prefs.setDefault(Constants.COLOR_RELATED_ITEM, "255,255,128"); //$NON-NLS-1$
}
public static void error (Throwable t) {
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ConfigurationManager.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ConfigurationManager.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ConfigurationManager.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -25,6 +25,7 @@
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
+import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -43,6 +44,7 @@
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.swt.widgets.Shell;
+import org.jboss.ide.eclipse.freemarker.Messages;
import org.jboss.ide.eclipse.freemarker.Plugin;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -86,11 +88,13 @@
if (obj instanceof IFile) {
IFile file = (IFile) obj;
String namespace = file.getName();
- int index = namespace.indexOf(".");
+ int index = namespace.indexOf("."); //$NON-NLS-1$
if (index >= 0) namespace = namespace.substring(0, index);
InputDialog inputDialog = new InputDialog(
- shell, "Choose Macro Library Namespace",
- "Please choose the namespace for '" + file.getName() + "'",
+ shell, Messages.ConfigurationManager_TITLE_CHOOSE_NAMESPACE,
+ MessageFormat.format(
+ Messages.ConfigurationManager_CHOOSE_NAMESPACE_FOR, file
+ .getName()),
namespace, null);
int rtn = inputDialog.open();
if (rtn == IDialogConstants.OK_ID) {
@@ -109,11 +113,13 @@
else if (obj instanceof JarEntryFile) {
JarEntryFile jef = (JarEntryFile) obj;
String namespace = jef.getName();
- int index = namespace.indexOf(".");
+ int index = namespace.indexOf("."); //$NON-NLS-1$
if (index >= 0) namespace = namespace.substring(0, index);
InputDialog inputDialog = new InputDialog(
- shell, "Choose Macro Library Namespace",
- "Please choose the namespace for '" + jef.getName() + "'",
+ shell, Messages.ConfigurationManager_TITLE_CHOOSE_NAMESPACE,
+ MessageFormat.format(
+ Messages.ConfigurationManager_CHOOSE_NAMESPACE_FOR, jef
+ .getName()),
namespace, null);
int rtn = inputDialog.open();
if (rtn == IDialogConstants.OK_ID) {
@@ -146,7 +152,7 @@
private void writeMacroLibrary(StringBuffer sb) {
for (Iterator i=macroLibrary.values().iterator(); i.hasNext(); ) {
MacroLibrary macroLibrary = (MacroLibrary) i.next();
- sb.append("\t\t" + macroLibrary.toXML() + "\n");
+ sb.append("\t\t" + macroLibrary.toXML() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
@@ -154,7 +160,7 @@
Map map = new HashMap();
try {
NodeList nl = element
- .getElementsByTagName("entry");
+ .getElementsByTagName("entry"); //$NON-NLS-1$
for (int i = 0; i < nl.getLength(); i++) {
try {
Node n = nl.item(i);
@@ -186,21 +192,21 @@
Map map = new HashMap();
try {
NodeList nl = element
- .getElementsByTagName("resource");
+ .getElementsByTagName("resource"); //$NON-NLS-1$
for (int i = 0; i < nl.getLength(); i++) {
try {
Node n = nl.item(i);
- String path = ((Element) n).getAttribute("path");
+ String path = ((Element) n).getAttribute("path"); //$NON-NLS-1$
List contextValues = new ArrayList();
NodeList nl2 = ((Element) n)
- .getElementsByTagName("value");
+ .getElementsByTagName("value"); //$NON-NLS-1$
for (int j = 0; j < nl2.getLength(); j++) {
Node n2 = nl2.item(j);
- String key = ((Element) n2).getAttribute("key");
+ String key = ((Element) n2).getAttribute("key"); //$NON-NLS-1$
Class value = getClass(((Element) n2)
- .getAttribute("object-class"));
+ .getAttribute("object-class")); //$NON-NLS-1$
String singularName = ((Element) n2)
- .getAttribute("item-class");
+ .getAttribute("item-class"); //$NON-NLS-1$
Class singularClass = null;
if (null != singularName && singularName.trim().length()>0)
singularClass = getClass(singularName);
@@ -235,15 +241,15 @@
private void save() {
StringBuffer sb = new StringBuffer();
- sb.append("<config>\n");
- sb.append("\t<context-values>\n");
+ sb.append("<config>\n"); //$NON-NLS-1$
+ sb.append("\t<context-values>\n"); //$NON-NLS-1$
writeContextValues(sb);
- sb.append("\t</context-values>\n");
- sb.append("\t<macro-library>\n");
+ sb.append("\t</context-values>\n"); //$NON-NLS-1$
+ sb.append("\t<macro-library>\n"); //$NON-NLS-1$
writeMacroLibrary(sb);
- sb.append("\t</macro-library>\n");
- sb.append("</config>");
- IFile file = project.getFile(".freemarker-ide.xml");
+ sb.append("\t</macro-library>\n"); //$NON-NLS-1$
+ sb.append("</config>"); //$NON-NLS-1$
+ IFile file = project.getFile(".freemarker-ide.xml"); //$NON-NLS-1$
try {
if (file.exists())
file.setContents(new ByteArrayInputStream(sb.toString()
@@ -259,7 +265,7 @@
public void reload() {
this.projectClassLoader = null;
- IFile file = project.getFile(".freemarker-ide.xml");
+ IFile file = project.getFile(".freemarker-ide.xml"); //$NON-NLS-1$
if (file.exists()) {
try { file.refreshLocal(1, null); } catch (CoreException e) {}
Map map = new HashMap();
@@ -267,13 +273,14 @@
Document document = DocumentBuilderFactory.newInstance()
.newDocumentBuilder().parse(file.getContents());
NodeList nl = document.getDocumentElement()
- .getElementsByTagName("context-values");
+ .getElementsByTagName("context-values"); //$NON-NLS-1$
if (nl.getLength() > 0)
this.contextValues = loadContextValues((Element) nl.item(0));
else
this.contextValues = new HashMap();
nl = document.getDocumentElement()
- .getElementsByTagName("macro-library");
+ .getElementsByTagName(
+ "macro-library"); //$NON-NLS-1$
List libraries = new ArrayList();
if (nl.getLength() > 0) {
this.macroLibrary = loadMacroTemplates((Element) nl.item(0));
@@ -296,17 +303,18 @@
String fileName = (String) entry.getKey();
ContextValue[] values = (ContextValue[]) entry.getValue();
if (null != values && values.length > 0) {
- sb.append("\t\t<resource path=\"" + fileName + "\">\n");
+ sb.append("\t\t<resource path=\"" + fileName + "\">\n"); //$NON-NLS-1$//$NON-NLS-2$
for (int j = 0; j < values.length; j++) {
- sb.append("\t\t\t<value key=\"" + values[j].name
- + "\" object-class=\"" + values[j].objClass.getName()
- + "\"");
+ sb
+ .append("\t\t\t<value key=\"" + values[j].name //$NON-NLS-1$
+ + "\" object-class=\"" + values[j].objClass.getName() //$NON-NLS-1$
+ + "\""); //$NON-NLS-1$
if (null != values[j].singularClass)
- sb.append(" item-class=\""
- + values[j].singularClass.getName() + "\"");
- sb.append("/>\n");
+ sb.append(" item-class=\"" //$NON-NLS-1$
+ + values[j].singularClass.getName() + "\""); //$NON-NLS-1$
+ sb.append("/>\n"); //$NON-NLS-1$
}
- sb.append("\t\t</resource>\n");
+ sb.append("\t\t</resource>\n"); //$NON-NLS-1$
}
}
}
@@ -323,7 +331,8 @@
key = resource.getProjectRelativePath().toString();
if (recurse) addRootContextValues(resource.getParent(), newValues, true);
}
- else key = "";
+ else
+ key = ""; //$NON-NLS-1$
if (null != resource.getProject()) {
ContextValue[] values = (ContextValue[]) contextValues.get(key);
if (null != values) {
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/MacroLibrary.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/MacroLibrary.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/MacroLibrary.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -43,8 +43,8 @@
*/
public class MacroLibrary {
- public static final String TYPE_FILE = "file";
- public static final String TYPE_JAR_ENTRY = "jarEntry";
+ public static final String TYPE_FILE = "file"; //$NON-NLS-1$
+ public static final String TYPE_JAR_ENTRY = "jarEntry"; //$NON-NLS-1$
private long lastUpdatedTime;
private IFile file;
@@ -88,7 +88,7 @@
private void load () {
try {
List macros = new ArrayList();
- String search = "#macro ";
+ String search = "#macro "; //$NON-NLS-1$
int index = content.indexOf(search);
int startIndex = index;
char startChar = content.charAt(index-1);
@@ -157,12 +157,12 @@
public String toXML () {
StringBuffer sb = new StringBuffer();
- sb.append("<entry namespace=\"" + getNamespace() + "\" ");
- sb.append("path=\"" + getPath() + "\" ");
+ sb.append("<entry namespace=\"" + getNamespace() + "\" "); //$NON-NLS-1$ //$NON-NLS-2$
+ sb.append("path=\"" + getPath() + "\" "); //$NON-NLS-1$ //$NON-NLS-2$
if (null != file) {
- sb.append("project=\"" + file.getProject().getName() + "\" ");
+ sb.append("project=\"" + file.getProject().getName() + "\" "); //$NON-NLS-1$ //$NON-NLS-2$
}
- sb.append("type=\"" + getType() + "\"/>");
+ sb.append("type=\"" + getType() + "\"/>"); //$NON-NLS-1$//$NON-NLS-2$
return sb.toString();
}
@@ -174,10 +174,10 @@
}
public static MacroLibrary fromXML (IProject project, Element node, ClassLoader classLoader) throws CoreException, IOException {
- String namespace = node.getAttribute("namespace");
- String path = node.getAttribute("path");
- String projectName = node.getAttribute("project");
- String type = node.getAttribute("type");
+ String namespace = node.getAttribute("namespace"); //$NON-NLS-1$
+ String path = node.getAttribute("path"); //$NON-NLS-1$
+ String projectName = node.getAttribute("project"); //$NON-NLS-1$
+ String type = node.getAttribute("type"); //$NON-NLS-1$
if (null == type || type.length() == 0 || type.equals(TYPE_FILE)) {
if (null != projectName && projectName.length() > 0)
project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ProjectClassLoader.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ProjectClassLoader.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/configuration/ProjectClassLoader.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -60,7 +60,7 @@
IPackageFragmentRoot[] roots = project.getAllPackageFragmentRoots();
String installLoc = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile().getAbsolutePath();
installLoc = installLoc.replace('\\', '/');
- if (installLoc.endsWith("/")) installLoc = installLoc.substring(0, installLoc.length()-1);
+ if (installLoc.endsWith("/")) installLoc = installLoc.substring(0, installLoc.length()-1); //$NON-NLS-1$
for (int i=0; i<roots.length; i++) {
try {
@@ -71,18 +71,18 @@
}
else {
String s = roots[i].getPath().toOSString().replace('\\', '/');
- if (!s.startsWith("/")) s = "/" + s;
+ if (!s.startsWith("/")) s = "/" + s; //$NON-NLS-1$ //$NON-NLS-2$
f = new File(installLoc + s);
if (f.exists()) {
list.add(f.toURL());
}
else {
- f = new File("c:" + installLoc + s);
+ f = new File("c:" + installLoc + s); //$NON-NLS-1$
if (f.exists()) {
list.add(f.toURL());
}
else {
- f = new File("d:" + installLoc + s);
+ f = new File("d:" + installLoc + s); //$NON-NLS-1$
if (f.exists()) {
list.add(f.toURL());
}
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/dialogs/ContextValueDialog.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/dialogs/ContextValueDialog.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/dialogs/ContextValueDialog.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -47,6 +47,7 @@
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.SelectionDialog;
+import org.jboss.ide.eclipse.freemarker.Messages;
import org.jboss.ide.eclipse.freemarker.configuration.ConfigurationManager;
import org.jboss.ide.eclipse.freemarker.configuration.ContextValue;
@@ -74,7 +75,7 @@
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
protected void configureShell(Shell newShell) {
- newShell.setText("Context Value Configuration");
+ newShell.setText(Messages.ContextValueDialog_SHELL_CONTEXT_VALUE_CONFIG);
super.configureShell(newShell);
}
@@ -84,7 +85,7 @@
composite.setLayout(new GridLayout(3, false));
Label label = new Label(composite, SWT.NULL);
- label.setText("Name:");
+ label.setText(Messages.ContextValueDialog_LABEL_NAME);
keyText = new Text(composite, SWT.BORDER);
if (null != contextValue) {
keyText.setText(contextValue.name);
@@ -96,7 +97,7 @@
keyText.setLayoutData(gd);
label = new Label(composite, SWT.NULL);
- label.setText("Type:");
+ label.setText(Messages.ContextValueDialog_LABEL_TYPE);
valueText = new Text(composite, SWT.BORDER);
valueText.setEnabled(false);
valueText.setBackground(new Color(null, 255, 255, 255));
@@ -105,7 +106,7 @@
valueText.setLayoutData(gd);
if (null != contextValue && null != contextValue.objClass) valueText.setText(contextValue.objClass.getName());
Button browse = new Button(composite, 8);
- browse.setText("Browse");
+ browse.setText(Messages.ContextValueDialog_BUTTON_BROWSE);
browse.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e)
{
@@ -124,10 +125,10 @@
valueText.setText(type.getFullyQualifiedName());
String[] interfaces = type.getSuperInterfaceNames();
boolean isList = false;
- if ("java.lang.Object".equals(fullyQualifiedName)) isList = true;
+ if ("java.lang.Object".equals(fullyQualifiedName)) isList = true; //$NON-NLS-1$
else {
for (int i=0; i<interfaces.length; i++) {
- if (interfaces[i].equals("java.util.Collection") || interfaces[i].equals("java.util.List") || interfaces[i].equals("java.util.Set")) {
+ if (interfaces[i].equals("java.util.Collection") || interfaces[i].equals("java.util.List") || interfaces[i].equals("java.util.Set")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
isList = true;
break;
}
@@ -142,12 +143,12 @@
singleBrowse.setEnabled(false);
singleLabel.setEnabled(false);
singleValueText.setEnabled(false);
- singleValueText.setText("");
+ singleValueText.setText(""); //$NON-NLS-1$
}
}
}
else {
- MessageDialog.openError(getShell(), "Java Project Error", "The project must be a java project.");
+ MessageDialog.openError(getShell(), Messages.ContextValueDialog_JAVA_PROJECT_ERROR, Messages.ContextValueDialog_MUST_BE_JAVA_PROJECT);
}
}
catch(JavaModelException _ex) { }
@@ -167,7 +168,7 @@
if (null != contextValue && null != contextValue.singularClass) enabled = true;
singleLabel = new Label(composite, SWT.NULL);
singleLabel.setEnabled(enabled);
- singleLabel.setText("List Entry Type:");
+ singleLabel.setText(Messages.ContextValueDialog_LABEL_LIST_ENTRY_TYPE);
singleValueText = new Text(composite, SWT.BORDER);
singleValueText.setEnabled(enabled);
singleValueText.setBackground(new Color(null, 255, 255, 255));
@@ -177,7 +178,7 @@
if (enabled) singleValueText.setText(contextValue.singularClass.getName());
singleBrowse = new Button(composite, 8);
singleBrowse.setEnabled(enabled);
- singleBrowse.setText("Browse");
+ singleBrowse.setText(Messages.ContextValueDialog_BUTTON_BROWSE);
singleBrowse.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e)
{
@@ -196,7 +197,7 @@
}
}
else {
- MessageDialog.openError(getShell(), "Java Project Error", "The project must be a java project.");
+ MessageDialog.openError(getShell(), Messages.ContextValueDialog_JAVA_PROJECT_ERROR, Messages.ContextValueDialog_MUST_BE_JAVA_PROJECT);
}
}
catch(JavaModelException _ex) { }
@@ -217,10 +218,10 @@
protected void okPressed() {
try {
String name = keyText.getText().trim();
- while (name.startsWith("$")) name = name.substring(1, name.length());
- if (name.length() == 0) MessageDialog.openError(getShell(), "Error", "You must choose the reference name");
+ while (name.startsWith("$")) name = name.substring(1, name.length()); //$NON-NLS-1$
+ if (name.length() == 0) MessageDialog.openError(getShell(), Messages.ContextValueDialog_ERROR, Messages.ContextValueDialog_MUST_CHOOSE_REFERENCE);
String className = valueText.getText().trim();
- if (className.length() == 0) MessageDialog.openError(getShell(), "Error", "You must choose the class name");
+ if (className.length() == 0) MessageDialog.openError(getShell(), Messages.ContextValueDialog_ERROR, Messages.ContextValueDialog_MUST_CHOOSE_CLASS);
String singularClassName = singleValueText.getText().trim();
Class singularClass = null;
if (null != singularClassName && singularClassName.trim().length() > 0) singularClass = ConfigurationManager.getInstance(resource.getProject()).getClass(singularClassName);
@@ -232,7 +233,7 @@
ConfigurationManager.getInstance(resource.getProject()).addContextValue(contextValue, resource);
}
catch (Exception e) {
- MessageDialog.openError(getShell(), "Error", e.getMessage());
+ MessageDialog.openError(getShell(), Messages.ContextValueDialog_ERROR, e.getMessage());
}
super.okPressed();
}
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/CompletionProcessor.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/CompletionProcessor.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/CompletionProcessor.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -106,9 +106,9 @@
Item stackItem = editor.getItemSet().getPreviousStartItem(offset);
StringBuffer value = new StringBuffer();
if (null != stackItem && stackItem instanceof MacroInstance)
- value.append("@");
+ value.append("@"); //$NON-NLS-1$
else
- value.append("#");
+ value.append("#"); //$NON-NLS-1$
String name = null;
if (null != stackItem) name = stackItem.getFirstToken();
if (null != name)
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/ContentScanner.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/ContentScanner.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/ContentScanner.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -72,10 +72,10 @@
this.tokens.clear();
}
- private static String TYPE_UNKNOWN = "UNKNOWN";
- private static String TYPE_INTERPOLATION = "INTERPOLATION";
- private static String TYPE_DIRECTIVE = "DIRECTIVE";
- private static String TYPE_STRING = "STRING";
+ private static String TYPE_UNKNOWN = "UNKNOWN"; //$NON-NLS-1$
+ private static String TYPE_INTERPOLATION = "INTERPOLATION"; //$NON-NLS-1$
+ private static String TYPE_DIRECTIVE = "DIRECTIVE"; //$NON-NLS-1$
+ private static String TYPE_STRING = "STRING"; //$NON-NLS-1$
private static IToken STRING_TOKEN;
private static IToken INTERPOLATION_TOKEN;
@@ -150,11 +150,11 @@
}
else if (c == '(') {
if (type.equals(TYPE_INTERPOLATION)) {
- push("(");
+ push("("); //$NON-NLS-1$
}
}
else if (c == ')') {
- if (type.equals("(")) {
+ if (type.equals("(")) { //$NON-NLS-1$
pop();
}
}
@@ -244,7 +244,7 @@
private IToken getToken (String type) {
if (type.equals(TYPE_DIRECTIVE)) return DIRECTIVE_TOKEN;
- else if (type.equals(TYPE_INTERPOLATION) || type.equals("(")) return INTERPOLATION_TOKEN;
+ else if (type.equals(TYPE_INTERPOLATION) || type.equals("(")) return INTERPOLATION_TOKEN; //$NON-NLS-1$
else if (type.equals(TYPE_STRING)) return STRING_TOKEN;
else return defaultToken;
}
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/Editor.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/Editor.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/Editor.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -54,6 +54,7 @@
import org.eclipse.ui.texteditor.MarkerUtilities;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import org.jboss.ide.eclipse.freemarker.Constants;
+import org.jboss.ide.eclipse.freemarker.Messages;
import org.jboss.ide.eclipse.freemarker.Plugin;
import org.jboss.ide.eclipse.freemarker.configuration.ConfigurationManager;
import org.jboss.ide.eclipse.freemarker.model.Item;
@@ -130,9 +131,9 @@
// Add content assist propsal action
ContentAssistAction action = new ContentAssistAction(
Plugin.getDefault().getResourceBundle(),
- "FreemarkerEditor.ContentAssist", this);
+ "FreemarkerEditor.ContentAssist", this); //$NON-NLS-1$
action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
- setAction("FreemarkerEditor.ContentAssist", action);
+ setAction("FreemarkerEditor.ContentAssist", action); //$NON-NLS-1$
action.setEnabled(true);
}
@@ -289,7 +290,7 @@
char c = getDocument().getChar(getCaretOffset());
if (c == ']') {
// remove this
- getDocument().replace(getCaretOffset(), 1, "");
+ getDocument().replace(getCaretOffset(), 1, ""); //$NON-NLS-1$
}
}
catch (BadLocationException e1) {}
@@ -299,7 +300,7 @@
char c = getDocument().getChar(getCaretOffset());
if (c == '}') {
// remove this
- getDocument().replace(getCaretOffset(), 1, "}");
+ getDocument().replace(getCaretOffset(), 1, "}"); //$NON-NLS-1$
}
}
catch (BadLocationException e1) {}
@@ -348,11 +349,11 @@
if (i == '}') return;
else if (i == '\n') break;
}
- getSourceViewer().getDocument().replace(offset, 0, "}");
+ getSourceViewer().getDocument().replace(offset, 0, "}"); //$NON-NLS-1$
}
}
else {
- getSourceViewer().getDocument().replace(offset, 0, "}");
+ getSourceViewer().getDocument().replace(offset, 0, "}"); //$NON-NLS-1$
}
}
}
@@ -400,13 +401,6 @@
}
}
- private void showMessage (String text) {
- MessageDialog.openError(
- getSourceViewer().getTextWidget().getShell(),
- "message",
- text);
- }
-
public static Validator VALIDATOR;
public synchronized void validateContents () {
if (null == VALIDATOR) {
@@ -452,10 +446,10 @@
errorLine = e.getLineNumber();
if (errorLine == 0) {
// sometimes they forget to put it in
- int index = e.getMessage().indexOf("line: ");
+ int index = e.getMessage().indexOf("line: "); //$NON-NLS-1$
if (index > 0) {
- int index2 = e.getMessage().indexOf(" ", index+6);
- int index3 = e.getMessage().indexOf(",", index+6);
+ int index2 = e.getMessage().indexOf(" ", index+6); //$NON-NLS-1$
+ int index3 = e.getMessage().indexOf(",", index+6); //$NON-NLS-1$
if (index3 < index2 && index3 > 0) index2 = index3;
String s = e.getMessage().substring(index+6, index2);
try {
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/FreemarkerMultiPageEditor.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/FreemarkerMultiPageEditor.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/FreemarkerMultiPageEditor.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -64,6 +64,7 @@
import org.eclipse.ui.texteditor.IStatusField;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.ui.texteditor.ITextEditorExtension;
+import org.jboss.ide.eclipse.freemarker.Messages;
import org.jboss.ide.eclipse.freemarker.Plugin;
import org.jboss.ide.eclipse.freemarker.configuration.ConfigurationManager;
import org.jboss.ide.eclipse.freemarker.configuration.ContextValue;
@@ -74,7 +75,7 @@
*/
public class FreemarkerMultiPageEditor extends MultiPageEditorPart implements ITextEditor, ITextEditorExtension {
- public static final String ID = "org.jboss.ide.eclipse.freemarker.editor.FreemarkerEditor";
+ public static final String ID = "org.jboss.ide.eclipse.freemarker.editor.FreemarkerEditor"; //$NON-NLS-1$
private Editor vEditor;
private String text;
@@ -98,11 +99,11 @@
vEditor.init(getEditorSite(), getEditorInput());
if (readOnly) vEditor.setReadOnly(readOnly);
int index = addPage(vEditor, getEditorInput());
- setPageText(index, "Source");
+ setPageText(index, Messages.FreemarkerMultiPageEditor_PAGE_TEXT_SOURCE);
setPartName(vEditor.getTitle());
}
catch (PartInitException e) {
- ErrorDialog.openError(getSite().getShell(), "Error creating nested text vEditor", null, e.getStatus());
+ ErrorDialog.openError(getSite().getShell(), Messages.FreemarkerMultiPageEditor_ERROR_CREATING_VEDITOR, null, e.getStatus());
}
}
@@ -143,8 +144,8 @@
// create the columns
TableColumn keyColumn = new TableColumn(contextValuesTable, SWT.LEFT);
TableColumn valueColumn = new TableColumn(contextValuesTable, SWT.LEFT);
- keyColumn.setText("Name");
- valueColumn.setText("Type");
+ keyColumn.setText(Messages.FreemarkerMultiPageEditor_COLUMN_NAME);
+ valueColumn.setText(Messages.FreemarkerMultiPageEditor_COLUMN_TYPE);
ColumnLayoutData keyColumnLayout = new ColumnWeightData(30, false);
ColumnLayoutData valueColumnLayout = new ColumnWeightData(70, false);
@@ -169,7 +170,7 @@
buttonComposite.setLayout(gl);
buttonComposite.setVisible(true);
addContextValueButton = new Button(buttonComposite, SWT.NATIVE);
- addContextValueButton.setText("New");
+ addContextValueButton.setText(Messages.FreemarkerMultiPageEditor_BUTTON_NEW);
addContextValueButton.setVisible(true);
addContextValueButton.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL));
addContextValueButton.addSelectionListener(new AddContextValueButtonListener());
@@ -178,7 +179,7 @@
data.grabExcessHorizontalSpace = true;
addContextValueButton.setLayoutData(data);
editContextValueButton = new Button(buttonComposite, SWT.NATIVE);
- editContextValueButton.setText("Edit");
+ editContextValueButton.setText(Messages.FreemarkerMultiPageEditor_BUTTON_EDIT);
editContextValueButton.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL));
editContextValueButton.addSelectionListener(new EditContextValueButtonListener());
data = new GridData();
@@ -186,7 +187,7 @@
data.grabExcessHorizontalSpace = true;
editContextValueButton.setLayoutData(data);
deleteContextValueButton = new Button(buttonComposite, SWT.NATIVE);
- deleteContextValueButton.setText("Delete");
+ deleteContextValueButton.setText(Messages.FreemarkerMultiPageEditor_BUTTON_DELETE);
deleteContextValueButton.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL));
deleteContextValueButton.addSelectionListener(new ContextValueDeleteKeyListener());
data = new GridData();
@@ -196,7 +197,7 @@
reloadContextValues();
int index = addPage(composite);
- setPageText(index, "Context");
+ setPageText(index, Messages.FreemarkerMultiPageEditor_PAGE_TEXT_CONTEXT);
}
@@ -278,7 +279,7 @@
int index = contextValuesTable.getSelectionIndex();
if (index >= 0) {
try {
- boolean confirm = MessageDialog.openConfirm(new Shell(), "Confirmation", "Are you sure you want to delete this context value?");
+ boolean confirm = MessageDialog.openConfirm(new Shell(), Messages.FreemarkerMultiPageEditor_CONFIRMATION_TITLE, Messages.FreemarkerMultiPageEditor_CONFIRMATION_TO_DELETE_MESSAGE);
if (confirm) {
String key = contextValuesTable.getSelection()[0].getText(0);
ContextValue value = ConfigurationManager.getInstance(vEditor.getFile().getProject()).getContextValue(key, vEditor.getFile(), false);
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/MacroHyperlink.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/MacroHyperlink.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/MacroHyperlink.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -28,6 +28,7 @@
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.ide.eclipse.freemarker.Messages;
import org.jboss.ide.eclipse.freemarker.Plugin;
import org.jboss.ide.eclipse.freemarker.model.MacroInstance;
@@ -67,6 +68,6 @@
}
public String getTypeLabel() {
- return "Macro Definition";
+ return Messages.MacroHyperlink_TYPELABEL_MACRO_DEFINITION;
}
}
\ No newline at end of file
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/PartitionScanner.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/PartitionScanner.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/PartitionScanner.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -45,42 +45,42 @@
*/
public class PartitionScanner extends RuleBasedPartitionScanner {
- public final static String FTL_COMMENT = "__ftl_comment";
- public final static String FTL_INCLUDE = "__ftl_include";
- public final static String FTL_IMPORT = "__ftl_import";
- public final static String FTL_ASSIGN = "__ftl_assign";
- public final static String FTL_ASSIGN_END = "__ftl_assign_end";
- public final static String FTL_LOCAL = "__ftl_local";
- public final static String FTL_LOCAL_END = "__ftl_local_end";
- public final static String FTL_GLOBAL = "__ftl_global";
- public final static String FTL_GLOBAL_END = "__ftl_global_end";
- public final static String FTL_BREAK = "__ftl_break";
- public final static String FTL_NESTED = "__ftl_nested";
- public final static String FTL_RETURN = "__ftl_return";
- public final static String FTL_STOP = "__ftl_stop";
- public final static String FTL_FTL_DIRECTIVE = "__ftl_ftl_directive";
- public final static String FTL_FUNCTION_DIRECTIVE_START = "__ftl_function_directive_start";
- public final static String FTL_FUNCTION_DIRECTIVE_END = "__ftl_function_directive_end";
- public final static String FTL_LIST_DIRECTIVE_START = "__ftl_list_directive_start";
- public final static String FTL_LIST_DIRECTIVE_END = "__ftl_list_directive_end";
- public final static String FTL_MACRO_DIRECTIVE_START = "__ftl_macro_directive_start";
- public final static String FTL_MACRO_DIRECTIVE_END = "__ftl_macro_directive_end";
- public final static String FTL_MACRO_INSTANCE_START = "__ftl_macro_instance_start";
- public final static String FTL_MACRO_INSTANCE_END = "__ftl_macro_instance_end";
- public final static String FTL_SWITCH_DIRECTIVE_START = "__ftl_switch_directive_start";
- public final static String FTL_SWITCH_DIRECTIVE_END = "__ftl_switch_directive_end";
- public final static String FTL_CASE_DIRECTIVE_START = "__ftl_case_directive_start";
- public final static String FTL_CASE_DEFAULT_START = "__ftl_case_default_start";
- public final static String FTL_IF_DIRECTIVE_START = "__ftl_if_directive_start";
- public final static String FTL_IF_DIRECTIVE_END = "__ftl_if_directive_end";
- public final static String FTL_IF_ELSE_DIRECTIVE = "__ftl_if_else_directive";
- public final static String FTL_ELSE_IF_DIRECTIVE = "__ftl_else_if_directive";
- public final static String FTL_INTERPOLATION = "__ftl_interpolation";
- public final static String FTL_DIRECTIVE = "__ftl_directive";
- public final static String FTL_DIRECTIVE_END = "__ftl_directive_end";
- public final static String XML_TAG = "__xml_tag";
- public final static String XML_COMMENT = "__xml_comment";
- public final static String STRING = "__string";
+ public final static String FTL_COMMENT = "__ftl_comment"; //$NON-NLS-1$
+ public final static String FTL_INCLUDE = "__ftl_include"; //$NON-NLS-1$
+ public final static String FTL_IMPORT = "__ftl_import"; //$NON-NLS-1$
+ public final static String FTL_ASSIGN = "__ftl_assign"; //$NON-NLS-1$
+ public final static String FTL_ASSIGN_END = "__ftl_assign_end"; //$NON-NLS-1$
+ public final static String FTL_LOCAL = "__ftl_local"; //$NON-NLS-1$
+ public final static String FTL_LOCAL_END = "__ftl_local_end"; //$NON-NLS-1$
+ public final static String FTL_GLOBAL = "__ftl_global"; //$NON-NLS-1$
+ public final static String FTL_GLOBAL_END = "__ftl_global_end"; //$NON-NLS-1$
+ public final static String FTL_BREAK = "__ftl_break"; //$NON-NLS-1$
+ public final static String FTL_NESTED = "__ftl_nested"; //$NON-NLS-1$
+ public final static String FTL_RETURN = "__ftl_return"; //$NON-NLS-1$
+ public final static String FTL_STOP = "__ftl_stop"; //$NON-NLS-1$
+ public final static String FTL_FTL_DIRECTIVE = "__ftl_ftl_directive"; //$NON-NLS-1$
+ public final static String FTL_FUNCTION_DIRECTIVE_START = "__ftl_function_directive_start"; //$NON-NLS-1$
+ public final static String FTL_FUNCTION_DIRECTIVE_END = "__ftl_function_directive_end"; //$NON-NLS-1$
+ public final static String FTL_LIST_DIRECTIVE_START = "__ftl_list_directive_start"; //$NON-NLS-1$
+ public final static String FTL_LIST_DIRECTIVE_END = "__ftl_list_directive_end"; //$NON-NLS-1$
+ public final static String FTL_MACRO_DIRECTIVE_START = "__ftl_macro_directive_start"; //$NON-NLS-1$
+ public final static String FTL_MACRO_DIRECTIVE_END = "__ftl_macro_directive_end"; //$NON-NLS-1$
+ public final static String FTL_MACRO_INSTANCE_START = "__ftl_macro_instance_start"; //$NON-NLS-1$
+ public final static String FTL_MACRO_INSTANCE_END = "__ftl_macro_instance_end"; //$NON-NLS-1$
+ public final static String FTL_SWITCH_DIRECTIVE_START = "__ftl_switch_directive_start"; //$NON-NLS-1$
+ public final static String FTL_SWITCH_DIRECTIVE_END = "__ftl_switch_directive_end"; //$NON-NLS-1$
+ public final static String FTL_CASE_DIRECTIVE_START = "__ftl_case_directive_start"; //$NON-NLS-1$
+ public final static String FTL_CASE_DEFAULT_START = "__ftl_case_default_start"; //$NON-NLS-1$
+ public final static String FTL_IF_DIRECTIVE_START = "__ftl_if_directive_start"; //$NON-NLS-1$
+ public final static String FTL_IF_DIRECTIVE_END = "__ftl_if_directive_end"; //$NON-NLS-1$
+ public final static String FTL_IF_ELSE_DIRECTIVE = "__ftl_if_else_directive"; //$NON-NLS-1$
+ public final static String FTL_ELSE_IF_DIRECTIVE = "__ftl_else_if_directive"; //$NON-NLS-1$
+ public final static String FTL_INTERPOLATION = "__ftl_interpolation"; //$NON-NLS-1$
+ public final static String FTL_DIRECTIVE = "__ftl_directive"; //$NON-NLS-1$
+ public final static String FTL_DIRECTIVE_END = "__ftl_directive_end"; //$NON-NLS-1$
+ public final static String XML_TAG = "__xml_tag"; //$NON-NLS-1$
+ public final static String XML_COMMENT = "__xml_comment"; //$NON-NLS-1$
+ public final static String STRING = "__string"; //$NON-NLS-1$
public final static String[] DIRECTIVES = {
FTL_INCLUDE, FTL_IMPORT, FTL_ASSIGN, FTL_ASSIGN_END, FTL_LOCAL, FTL_LOCAL_END, FTL_GLOBAL,
@@ -124,45 +124,45 @@
IToken ftlComment = new Token(FTL_COMMENT);
- rules.add(new MultiLineRule("<!--", "-->", new Token(XML_COMMENT)));
- rules.add(new MultiLineRule("<#--", "-->", ftlComment));
- rules.add(new MultiLineRule("[#--", "--]", ftlComment));
+ rules.add(new MultiLineRule("<!--", "-->", new Token(XML_COMMENT))); //$NON-NLS-1$ //$NON-NLS-2$
+ rules.add(new MultiLineRule("<#--", "-->", ftlComment)); //$NON-NLS-1$ //$NON-NLS-2$
+ rules.add(new MultiLineRule("[#--", "--]", ftlComment)); //$NON-NLS-1$ //$NON-NLS-2$
- rules.add(new DirectiveRule("ftl", new Token(FTL_FTL_DIRECTIVE)));
- rules.add(new DirectiveRule("if", new Token(FTL_IF_DIRECTIVE_START)));
- rules.add(new DirectiveRule("elseif", new Token(FTL_ELSE_IF_DIRECTIVE)));
- rules.add(new DirectiveRule("else", new Token(FTL_IF_ELSE_DIRECTIVE), true));
- rules.add(new DirectiveRuleEnd("if", new Token(FTL_IF_DIRECTIVE_END)));
+ rules.add(new DirectiveRule("ftl", new Token(FTL_FTL_DIRECTIVE))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("if", new Token(FTL_IF_DIRECTIVE_START))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("elseif", new Token(FTL_ELSE_IF_DIRECTIVE))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("else", new Token(FTL_IF_ELSE_DIRECTIVE), true)); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("if", new Token(FTL_IF_DIRECTIVE_END))); //$NON-NLS-1$
- rules.add(new DirectiveRule("function", new Token(FTL_FUNCTION_DIRECTIVE_START)));
- rules.add(new DirectiveRuleEnd("function", new Token(FTL_FUNCTION_DIRECTIVE_END)));
+ rules.add(new DirectiveRule("function", new Token(FTL_FUNCTION_DIRECTIVE_START))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("function", new Token(FTL_FUNCTION_DIRECTIVE_END))); //$NON-NLS-1$
- rules.add(new DirectiveRule("list", new Token(FTL_LIST_DIRECTIVE_START)));
- rules.add(new DirectiveRuleEnd("list", new Token(FTL_LIST_DIRECTIVE_END)));
+ rules.add(new DirectiveRule("list", new Token(FTL_LIST_DIRECTIVE_START))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("list", new Token(FTL_LIST_DIRECTIVE_END))); //$NON-NLS-1$
- rules.add(new DirectiveRule("macro", new Token(FTL_MACRO_DIRECTIVE_START)));
- rules.add(new DirectiveRuleEnd("macro", new Token(FTL_MACRO_DIRECTIVE_END)));
+ rules.add(new DirectiveRule("macro", new Token(FTL_MACRO_DIRECTIVE_START))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("macro", new Token(FTL_MACRO_DIRECTIVE_END))); //$NON-NLS-1$
rules.add(new MacroInstanceRule(new Token(FTL_MACRO_INSTANCE_START)));
rules.add(new MacroInstanceRuleEnd(new Token(FTL_MACRO_INSTANCE_END)));
- rules.add(new DirectiveRule("switch", new Token(FTL_SWITCH_DIRECTIVE_START)));
- rules.add(new DirectiveRuleEnd("switch", new Token(FTL_SWITCH_DIRECTIVE_END)));
- rules.add(new DirectiveRule("case", new Token(FTL_CASE_DIRECTIVE_START)));
- rules.add(new DirectiveRule("default", new Token(FTL_CASE_DEFAULT_START)));
+ rules.add(new DirectiveRule("switch", new Token(FTL_SWITCH_DIRECTIVE_START))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("switch", new Token(FTL_SWITCH_DIRECTIVE_END))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("case", new Token(FTL_CASE_DIRECTIVE_START))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("default", new Token(FTL_CASE_DEFAULT_START))); //$NON-NLS-1$
- rules.add(new DirectiveRule("assign", new Token(FTL_ASSIGN)));
- rules.add(new DirectiveRuleEnd("assign", new Token(FTL_ASSIGN_END)));
- rules.add(new DirectiveRule("local", new Token(FTL_LOCAL)));
- rules.add(new DirectiveRuleEnd("local", new Token(FTL_LOCAL_END)));
- rules.add(new DirectiveRule("global", new Token(FTL_GLOBAL)));
- rules.add(new DirectiveRuleEnd("global", new Token(FTL_GLOBAL_END)));
+ rules.add(new DirectiveRule("assign", new Token(FTL_ASSIGN))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("assign", new Token(FTL_ASSIGN_END))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("local", new Token(FTL_LOCAL))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("local", new Token(FTL_LOCAL_END))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("global", new Token(FTL_GLOBAL))); //$NON-NLS-1$
+ rules.add(new DirectiveRuleEnd("global", new Token(FTL_GLOBAL_END))); //$NON-NLS-1$
- rules.add(new DirectiveRule("include", new Token(FTL_INCLUDE)));
- rules.add(new DirectiveRule("import", new Token(FTL_IMPORT)));
- rules.add(new DirectiveRule("break", new Token(FTL_BREAK)));
- rules.add(new DirectiveRule("stop", new Token(FTL_STOP)));
- rules.add(new DirectiveRule("nested", new Token(FTL_NESTED)));
- rules.add(new DirectiveRule("return", new Token(FTL_RETURN)));
+ rules.add(new DirectiveRule("include", new Token(FTL_INCLUDE))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("import", new Token(FTL_IMPORT))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("break", new Token(FTL_BREAK))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("stop", new Token(FTL_STOP))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("nested", new Token(FTL_NESTED))); //$NON-NLS-1$
+ rules.add(new DirectiveRule("return", new Token(FTL_RETURN))); //$NON-NLS-1$
rules.add(new GenericDirectiveRule(new Token(FTL_DIRECTIVE)));
rules.add(new GenericDirectiveRuleEnd(new Token(FTL_DIRECTIVE_END)));
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/XMLTagScanner.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/XMLTagScanner.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/editor/XMLTagScanner.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -64,12 +64,12 @@
List l = new ArrayList();
- l.add(new StringSubRule("\"", "${", 2, string));
+ l.add(new StringSubRule("\"", "${", 2, string)); //$NON-NLS-1$ //$NON-NLS-2$
l.add(new InterpolationRule('$', interpolation));
l.add(new InterpolationRule('#', interpolation));
- l.add(new SingleLineRule("\"", "\"", string, '\\'));
- l.add(new SingleLineRule("'", "'", string, '\\'));
+ l.add(new SingleLineRule("\"", "\"", string, '\\')); //$NON-NLS-1$ //$NON-NLS-2$
+ l.add(new SingleLineRule("'", "'", string, '\\')); //$NON-NLS-1$ //$NON-NLS-2$
l.add(new WhitespaceRule(new WhitespaceDetector()));
setRules((IRule[]) l.toArray(new IRule[l.size()]));
Added: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/messages.properties
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/messages.properties (rev 0)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/messages.properties 2009-03-10 02:13:52 UTC (rev 14121)
@@ -0,0 +1,33 @@
+ConfigurationManager_CHOOSE_NAMESPACE_FOR=Please choose the namespace for '{0}'
+ConfigurationManager_TITLE_CHOOSE_NAMESPACE=Choose Macro Library Namespace
+ContextValueDialog_BUTTON_BROWSE=Browse
+ContextValueDialog_ERROR=Error
+ContextValueDialog_JAVA_PROJECT_ERROR=Java Project Error
+ContextValueDialog_LABEL_LIST_ENTRY_TYPE=List Entry Type:
+ContextValueDialog_LABEL_NAME=Name:
+ContextValueDialog_LABEL_TYPE=Type:
+ContextValueDialog_MUST_BE_JAVA_PROJECT=The project must be a java project.
+ContextValueDialog_MUST_CHOOSE_CLASS=You must choose the class name
+ContextValueDialog_MUST_CHOOSE_REFERENCE=You must choose the reference name
+ContextValueDialog_SHELL_CONTEXT_VALUE_CONFIG=Context Value Configuration
+FreemarkerMultiPageEditor_BUTTON_DELETE=Delete
+FreemarkerMultiPageEditor_BUTTON_EDIT=Edit
+FreemarkerMultiPageEditor_BUTTON_NEW=New
+FreemarkerMultiPageEditor_COLUMN_NAME=Name
+FreemarkerMultiPageEditor_COLUMN_TYPE=Type
+FreemarkerMultiPageEditor_CONFIRMATION_TITLE=Confirmation
+FreemarkerMultiPageEditor_CONFIRMATION_TO_DELETE_MESSAGE=Are you sure you want to delete this context value?
+FreemarkerMultiPageEditor_ERROR_CREATING_VEDITOR=Error creating nested text vEditor
+FreemarkerMultiPageEditor_PAGE_TEXT_CONTEXT=Context
+FreemarkerMultiPageEditor_PAGE_TEXT_SOURCE=Source
+MacroHyperlink_TYPELABEL_MACRO_DEFINITION=Macro Definition
+PreferencePage_DESCRIPTION_FREEMARKER_SETTINGS=FreeMarker Settings
+PreferencePage_FIELD_COMMENT=Comment:
+PreferencePage_FIELD_DIRECTIVE=Directive:
+PreferencePage_FIELD_HIGHLIGHT_RELATED_DIRECTIVES=Highlight Related Directives
+PreferencePage_FIELD_HTML_XML_COMMENT=HTML/XML Comment:
+PreferencePage_FIELD_HTML_XML_TAG=HTML/XML Tag:
+PreferencePage_FIELD_INTERPOLATION=Interpolation:
+PreferencePage_FIELD_RELATED_DIRECTIVES=Related Directives:
+PreferencePage_FIELD_STRING=String:
+PreferencePage_FIELD_TEXT=Text:
Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/preferences/PreferencePage.java
===================================================================
--- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/preferences/PreferencePage.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/src/org/jboss/ide/eclipse/freemarker/preferences/PreferencePage.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -28,6 +28,7 @@
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.jboss.ide.eclipse.freemarker.Constants;
+import org.jboss.ide.eclipse.freemarker.Messages;
import org.jboss.ide.eclipse.freemarker.Plugin;
/**
@@ -40,28 +41,28 @@
public PreferencePage() {
super(GRID);
setPreferenceStore(Plugin.getDefault().getPreferenceStore());
- setDescription("FreeMarker Settings");
+ setDescription(Messages.PreferencePage_DESCRIPTION_FREEMARKER_SETTINGS);
}
public void createFieldEditors() {
addField(new ColorFieldEditor(Constants.COLOR_DIRECTIVE,
- "Directive:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_DIRECTIVE, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_RELATED_ITEM,
- "Related Directives:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_RELATED_DIRECTIVES, getFieldEditorParent()));
addField(new BooleanFieldEditor(Constants.HIGHLIGHT_RELATED_ITEMS,
- "Highlight Related Directives", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_HIGHLIGHT_RELATED_DIRECTIVES, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_INTERPOLATION,
- "Interpolation:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_INTERPOLATION, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_TEXT,
- "Text:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_TEXT, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_COMMENT,
- "Comment:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_COMMENT, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_STRING,
- "String:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_STRING, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_XML_TAG,
- "HTML/XML Tag:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_HTML_XML_TAG, getFieldEditorParent()));
addField(new ColorFieldEditor(Constants.COLOR_XML_COMMENT,
- "HTML/XML Comment:", getFieldEditorParent()));
+ Messages.PreferencePage_FIELD_HTML_XML_COMMENT, getFieldEditorParent()));
}
public void init(IWorkbench workbench) {
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties 2009-03-10 02:13:52 UTC (rev 14121)
@@ -9,6 +9,10 @@
Error_JBossWS_Basic_Editor_Composite=Parent control should be Composite
Error_JBossWS_Basic_Editor_Support=Editor supports only grid layout
Error_JBossWS_Basic_Editor_Different=Parent for label is different
+JBossRuntimeListFieldEditor_ActionAdd=&Add
+JBossRuntimeListFieldEditor_ActionEdit=&Edit
+JBossRuntimeListFieldEditor_ActionRemove=&Remove
+JBossRuntimeListFieldEditor_ErrorMessageAtLeastOneJar=The library must contain at least one jar.
JBossWS_Runtime_List_Field_Editor_Name=Name
JBossWS_Runtime_List_Field_Editor_Version=Version
JBossWS_Runtime_List_Field_Editor_Path=Path
@@ -34,4 +38,7 @@
JBossWS_SWT_Field_Editor_Factory_Select_Home_Folder=Select JBossWS Home Folder
JBossWS_Runtime_List_Field_Editor_Name2=Name:
JBossWS_Runtime_Check_Field_Default_Classpath=Customize JBoss Web Service runtime jars
-JBossWS_Preference_Page_Runtimes=JBossWS Runtimes
\ No newline at end of file
+JBossWS_Preference_Page_Runtimes=JBossWS Runtimes
+JBossWSLibraryListFieldEditor_ActionAdd=&Add
+JBossWSLibraryListFieldEditor_ActionRemove=&Remove
+JBossWSLibraryListFieldEditor_LIBRARY_JARS=Library Jars
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -36,6 +36,14 @@
public static String Error_JBossWS_Basic_Editor_Composite;
public static String Error_JBossWS_Basic_Editor_Support;
public static String Error_JBossWS_Basic_Editor_Different;
+ public static String JBossRuntimeListFieldEditor_ActionAdd;
+
+ public static String JBossRuntimeListFieldEditor_ActionEdit;
+
+ public static String JBossRuntimeListFieldEditor_ActionRemove;
+
+ public static String JBossRuntimeListFieldEditor_ErrorMessageAtLeastOneJar;
+
public static String JBossWS_Runtime_List_Field_Editor_Name;
public static String JBossWS_Runtime_List_Field_Editor_Version;
public static String JBossWS_Runtime_List_Field_Editor_Path;
@@ -64,6 +72,13 @@
public static String JBossWS_Preference_Page_Runtimes;
+ public static String JBossWSLibraryListFieldEditor_ActionAdd;
+
+ public static String JBossWSLibraryListFieldEditor_ActionRemove;
+
+ public static String JBossWSLibraryListFieldEditor_LIBRARY_JARS;
+
+
static {
NLS.initializeMessages(BUNDLE_NAME, JBossWSUIMessages.class);
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossRuntimeListFieldEditor.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossRuntimeListFieldEditor.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossRuntimeListFieldEditor.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -409,9 +409,9 @@
public static class JBossWSRuntimeWizardPage extends WizardPage implements
PropertyChangeListener {
- private static final String SRT_NAME = "name";
- private static final String SRT_VERSION = "version";
- private static final String SRT_HOMEDIR = "homeDir";
+ private static final String SRT_NAME = "name"; //$NON-NLS-1$
+ private static final String SRT_VERSION = "version"; //$NON-NLS-1$
+ private static final String SRT_HOMEDIR = "homeDir"; //$NON-NLS-1$
private static final int GL_PARENT_COLUMNS = 1;
private static final int GL_CONTENT_COLUMNS = 3;
@@ -464,7 +464,7 @@
homeDir.doFillIntoGrid(root);
homeDir.addPropertyChangeListener(this);
- jars = new JBossWSLibraryListFieldEditor("", "", current);
+ jars = new JBossWSLibraryListFieldEditor("", "", current); //$NON-NLS-1$ //$NON-NLS-2$
jars.doFillIntoGrid(root);
jars.addPropertyChangeListener(this);
setPageComplete(false);
@@ -479,12 +479,12 @@
* PropertyChangeEvent describes changes in wizard
*/
public void propertyChange(java.beans.PropertyChangeEvent evt) {
- if ("homeDir".equals(evt.getPropertyName())) {
+ if ("homeDir".equals(evt.getPropertyName())) { //$NON-NLS-1$
if (name.getValueAsString() == null
- || "".equals(name.getValueAsString().trim())
+ || "".equals(name.getValueAsString().trim()) //$NON-NLS-1$
|| this.getErrorMessage() != null) {
String homeDirName = homeDir.getValueAsString();
- if (homeDirName != null && !"".equals(homeDirName.trim())) {
+ if (homeDirName != null && !"".equals(homeDirName.trim())) { //$NON-NLS-1$
File folder = new File(homeDirName);
homeDirName = folder.getName();
}
@@ -535,7 +535,7 @@
if (jarJbws.isUserConfigClasspath()
&& jarJbws.getLibraries().size() == 0) {
- setErrorMessage("The library must contian at least one jar.");
+ setErrorMessage(JBossWSUIMessages.JBossRuntimeListFieldEditor_ErrorMessageAtLeastOneJar);
setPageComplete(false);
return;
}
@@ -573,7 +573,7 @@
*/
private List<String> getESBFacetVersions(){
List<String> versions = new ArrayList<String>();
- IProjectFacet esbfacet = ProjectFacetsManager.getProjectFacet("jbossws.core");
+ IProjectFacet esbfacet = ProjectFacetsManager.getProjectFacet("jbossws.core"); //$NON-NLS-1$
for(IProjectFacetVersion version: esbfacet.getVersions()){
versions.add(version.getVersionString());
}
@@ -968,13 +968,11 @@
*/
public class AddAction extends BaseAction {
- static final String ACTION_NAME = "&Add";
-
/**
* Constructor create Add action with default name
*/
public AddAction() {
- super(ACTION_NAME);
+ super(JBossWSUIMessages.JBossRuntimeListFieldEditor_ActionAdd);
// This action is always available
setEnabled(true);
}
@@ -1012,15 +1010,13 @@
*/
public class EditAction extends BaseAction {
- static final String ACTION_NAME = "&Edit";
-
/**
* Create EditAction with default name
*
* @param text
*/
public EditAction() {
- super(ACTION_NAME);
+ super(JBossWSUIMessages.JBossRuntimeListFieldEditor_ActionEdit);
}
/**
@@ -1079,13 +1075,11 @@
*/
public class RemoveAction extends BaseAction {
- static final String ACTION_NAME = "&Remove";
-
/**
* Create DeleteAction action with default name
*/
public RemoveAction() {
- super(ACTION_NAME);
+ super(JBossWSUIMessages.JBossRuntimeListFieldEditor_ActionRemove);
}
@Override
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossWSLibraryListFieldEditor.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossWSLibraryListFieldEditor.java 2009-03-10 02:12:58 UTC (rev 14120)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JBossWSLibraryListFieldEditor.java 2009-03-10 02:13:52 UTC (rev 14121)
@@ -132,7 +132,7 @@
createCheckButton(root);
jarGroup = new Group(root, SWT.NONE);
- jarGroup.setText("Library Jars");
+ jarGroup.setText(JBossWSUIMessages.JBossWSLibraryListFieldEditor_LIBRARY_JARS);
gd = new GridData(GridData.FILL_BOTH);
gd.horizontalAlignment = GridData.FILL;
gd.grabExcessHorizontalSpace = true;
@@ -255,7 +255,7 @@
public Image getImage(Object element) {
if (jarImg == null) {
ImageDescriptor jarImgDesc = JBossWSUIPlugin
- .getImageDescriptor("obj16/jar_obj.gif");
+ .getImageDescriptor("obj16/jar_obj.gif"); //$NON-NLS-1$
jarImg = jarImgDesc.createImage();
}
return jarImg;
@@ -264,7 +264,7 @@
public String getText(Object element) {
String fullName = (String) element;
File jarFile = new File(fullName);
- return jarFile.getName() + " - "
+ return jarFile.getName() + " - " //$NON-NLS-1$
+ jarFile.getParentFile().toString();
}
});
@@ -498,13 +498,11 @@
*/
public class AddAction extends BaseAction {
- static final String ACTION_NAME = "&Add";
-
/**
* Constructor create Add action with default name
*/
public AddAction() {
- super(ACTION_NAME);
+ super(JBossWSUIMessages.JBossWSLibraryListFieldEditor_ActionAdd);
// This action is always available
setEnabled(true);
}
@@ -526,7 +524,7 @@
public void run() {
FileDialog dialog = new FileDialog(Display.getCurrent()
.getActiveShell(), SWT.MULTI);
- dialog.setFilterExtensions(new String[] { "*.jar;*.zip" });
+ dialog.setFilterExtensions(new String[] { "*.jar;*.zip" }); //$NON-NLS-1$
String fileName = dialog.open();
String[] fileNames = dialog.getFileNames();
if (fileName != null) {
@@ -553,13 +551,11 @@
*/
public class RemoveAction extends BaseAction {
- static final String ACTION_NAME = "&Remove";
-
/**
* Create DeleteAction action with default name
*/
public RemoveAction() {
- super(ACTION_NAME);
+ super(JBossWSUIMessages.JBossWSLibraryListFieldEditor_ActionRemove);
}
@Override
15 years, 4 months