JBoss.orgCommunity Documentation

Chapter 9. JBoss Tools Preferences

9.1. Project Archives
9.2. Editors
9.3. Visual Page Editor
9.4. Visual Page Editor Code Templates
9.5. EL Variables
9.6. JSF
9.7. JSF Project
9.8. JSF Flow Diagram
9.9. Label Decorations
9.10. Seam
9.11. Seam Validator
9.12. Seam Pages Diagram
9.13. Tiles Diagram
9.14. Server Preferences
9.15. XDoclet

Configuring the various JBoss Developer Studio features is done via the Preferences screen by selecting WindowPreferencesJBoss Tools from the menu bar.

Preferences are included in this dialog.

Figure 9.1. Preferences are included in this dialog.


From this screen, you can select these more specific sets of JBoss Tools preferences:

The Preferences dialog (WindowPreferences ) also allows to adjust settings for Section 9.14, “Server Preferences” and Section 9.15, “XDoclet” module.

Click on the Project Archives to open the page for changing Project Archives preferences.

Here you can determine settings for Core Preferences, Project Archives View, Project Explorer Preferences and Fileset Preferences.


The next table lists all available preferences for Project Archives and their description.


To adjust settings common for all editors supplied with JBoss Developer Studio you should select JBoss ToolsWebEditors.


On the Editors page the following preferences are available:


JBoss ToolsWebEditorsVisual Page Editor screen allows you to control some aspects of the behavior of the Visual Page Editor (VPE) for JSF/HTML files.


The next table lists the possible settings that you can adjust on the General tab of the VPE Preferences page.

Table 9.3. VPE General Preferences

Option Description Default
Show toolbar within the editor (otherwise in Eclipse's toolbar) The option allows to select where the Visual Page Editor toolbar appears. By default it appears as part of the Eclipse toolbar. Off
Show border for unknown tags The option allows to place the border around unknown tags or undo this On
Show non-visual tags Check this box, if you want the editor shows non-visual elements on the page you're editing Off
Show selection tag bar The option allows to show/hide the Selection Bar On
Show text formatting bar Check this box in order to show/hide the Text Formatting bar On
Show resource bundles usage as EL expressions If the option is checked, the editor will show EL expressions instead of the resource values Off
Ask for tag attributes during tag insert Having this option off, the dialog with possible attributes for inserting tag won't appear if all its attributes are optional On
Inform if the project is not configured properly to use Visual Page Editor If this option is deselected you will not be notified that a project is not configured for use with the Visual Page Editor. This may cause unexpected results. On
Synchronize scrolling between source and visual panes This option allows you to set the scrollbars of the source and visual panes of the editor to be synchronized by default. An option to activate and deactivate this option exists as part of the toolbar. Off
Select the default active editor's tab The option provides possibility to choose one of the following views - Visual/Source, Source or Preview, as default when opening the editor Visual/Source
Visual/Source editors splitting The option allows to choose one of the following Visual,Source layouts - Vertical Source on top, Vertical Visual on top,Horizontal Source to the left or Horizontal Visual to the left, as a default one when opening the Visual/Source view Vertical splitting with Source Editor on the top
Size of the Visual Editor pane (0 – 100%) With the help of this scroll bar you can adjust the percentage rating between the Source and Visual modes of the Visual/Source view 50%

On the Visual Templates tab you can add, edit or remove Section 3.2.3, “Visual Templates for Unknown Tags”.


Select a template for editing from the available list and press Edit button. It will pick up the Section 3.2.3, “Visual Templates for Unknown Tags” where you can adjust new settings.

On the JBoss ToolsWebEditorsVisual Page EditorCode Templates preferences page you can create new and edit existing XHTML templates. Such a template allows you to quickly insert an often used snippet of XHTML code.


VPE provides four predefined templates:

  • XHTML blank facelet page template

  • Common facelet page template

  • Form facelet page template

  • New JSF composite component template

The following table lists the configuration options for the code templates.


To specify necessary EL variables globally, i. e. for all projects and resources in your workspace, you should go to JBoss ToolsWebExpression LanguageVariables.


Click Add... to set value for a new EL variable. In the appeared wizard you should specify the global values and press Finish.


Tip:

If you specify an equal variable in Section 3.2.5.4, “Page Design Options” and in Preference EL dialog, variable from preference dialog will have priority.

Select JBoss ToolsWebJSF to get to the JSF Project specific preferences.


Select JBoss ToolsWebJSFProject to see JSF Project preferences page.

On the New Project tab you can set default values for New JSF Project wizard:


On the Import Project tab in the JSF Project screen you can determine the default Servlet version for the Import JSF Project wizard and also whether to register Web Context in server.xml or not.


Selecting JBoss ToolsWebEditorsEditorsJSF Flow Diagram allows you to specify some aspects of the Diagram mode of the JSF configuration file editor.


The first two items control the background grid for the diagram. The next two items allow you to control the appearance of the labels for views (pages) and the transitions between views. For these two items clicking the Change...button allows you to assign a font with a dialog box.

The first check box determines whether a view in the diagram that doesn't have a transition connecting it to another view yet should be written to the source code as a partial navigation rule. The next check box determines whether the diagram cursor reverts immediately to the standard selection mode after it's used in the transition-drawing mode to draw a transition. Finally the last two check boxes concern shortcuts. A shortcut is a transition that is there but isn't actually displayed in the diagram as going all the way to the target view it's connected to, in order to make the diagram clearer. With the check boxes you can decide whether to display a small shortcut icon as part of the shortcut and also whether to display the target view as a label or not.


Selecting the Add View tab in the JSF Flow Diagram screen allows you to determine the default template and file extension for views (pages) you add directly into the diagram using a context menu or the view-adding mode of the diagram cursor.

The Label Decorations page is opened from JBoss ToolsWebLabel Decorations.


On this page you can determine the format for a text output near to the decoration label for different Web resources. To change the value for selected element, click Add Variable... button next to Format field. Appeared wizard will prompt you to select one from the available list.


The following preferences can be changed on the JBoss ToolsWebSeam page.

On Seam screen you can add and remove Seam runtimes.

Here is what Seam preference page looks like:


The following preferences can be changed on the JBoss ToolsSeamValidator page.

In Validator panel you configure seam problems that will be processed by validator.


In order to customize the layout of the Diagram used for editing and composing page.xml file in Graphical mode of Seam Pages Editor you can go to WindowPreferencesJBoss ToolsWebEditorsSeam Pages Diagram.


JBoss ToolsWebEditorsTitle Diagram screen allows you control some settings for the placement of Tiles definitions in the Diagram mode of the JBoss Tools Tiles editor.


Preferences for JBoss Server and other servers can be changed on the Server page.


On the ServerRuntime Environments page you can add new or modify already defined Server Runtime.


Server Launching preferences can be configured on the ServerLaunching page.


Going to ServerAudio you can enable or disable the sound notification for different Server states and actions and set the sound volume as well.


The preferences for XDoclet can be changed if you click Java EEXDoclet on the left navigation bar.

On the XDoclet screen it is possible to enable or disable XDoclet builder by checking proper box, specify XDoclet home and determine XDoclet module version as well.


Switch to Java EEXDocletejbdoclet page in order to adjust settings for EJB-specific sub-tasks.


To configure settings for various web-specific XDoclet sub-tasks, follow to Java EEXDocletwebdoclet page.