JBoss.orgCommunity Documentation

Chapter 1. JBoss Central and the JBoss Perspective

1.1. Overview of JBoss Central and the JBoss Perspective
1.1.1. About JBoss Central
1.1.2. About the JBoss Perspective
1.2. Features of JBoss Central and the JBoss Perspective
1.2.1. Features Overview
1.2.2. View JBoss Central
1.2.3. Access Project Wizards in JBoss Central
1.2.4. Meet the Requirements of JBoss Central Project Examples
1.2.5. Access Information in JBoss Central
1.2.6. Install Software in JBoss Central
1.2.7. Open the JBoss Perspective
1.2.8. Manage the JBoss Perspective
1.2.9. View Cheat Sheets
1.3. Customizing JBoss Central and the JBoss Perspective
1.3.1. Customizing Overview
1.3.2. Change the Behavior of JBoss Central on IDE Start
1.3.3. Customize the Default Views, Menus and Toolbars of the JBoss Perspective
1.3.4. Use Project Examples when Working Offline
1.3.5. Install Software when Working Offline
1.3.6. Set Cheat Sheet Behavior
1.3.7. Set Usage Reporting

JBoss Central provides access to wizards for generating projects. There are two types of project wizards available in JBoss Central: Start from scratch and Start from a sample.

To create a project from one of the wizards, in JBoss Central select the Getting Started tab. Click one of the links below Start from scratch or Start from a sample. Alternatively, click FileNew and select a project from the list. A wizard opens to guide you through the process of creating the project.

Additionally, access is provided to the comprehensive TicketMonster tutorial, part of JBoss Developer Framework. The tutorial guides you through developing a complex web application utilizing JBoss technologies from within the IDE. To view the tutorial, in JBoss Central select the Getting Started tab and click the TicketMonster link. The JBoss Developer Framework website opens in the default IDE browser.


The project wizards under Start from scratch and Start from a sample in JBoss Central generate projects that are designed to work best with specific platform and plug-in versions. Information about the platform and plug-in requirements is listed on the first page of each project wizard and, in the case that they are missing from your system, you can initiate downloading and installing of required components from within the wizard.


The Found? check box is selected when a requirement is met by your system. In the case that a required component is missing from your system, you must follow one of these options:

  • Click Install and follow the wizard instructions to inform the IDE about the availability of the required components on your system.

  • Click Download and Install and follow the wizard instructions to download missing components and subsequently inform the IDE about their availability.

Some of the common platform and plug-in requirements are detailed here:

  • JBoss Application Server, which is distributed separately from JBoss Tools, is supported for deploying and running many of the project examples

  • m2e and m2e-wtp, which are packaged as part of JBoss Central and provide core Apache Maven support in the IDE and connectors for configuring Java EE Maven projects as web projects

  • JBoss Maven Tools, which is packaged as part of JBoss Central and provides additional Maven support for developing Java EE applications deployed to JBoss Application Server

JBoss Central enables you to install and update a range of IDE plug-ins. The available plug-ins comprise JBoss and third-party plug-ins that have been specifically tested for use with the IDE. These plug-ins include ones for mobile and web development, source control management, utilities and Maven.

For all actions listed below, open JBoss Central and select the Software/Update tab.

View available software

The available software is listed in the table. To refresh the list of available plug-ins, click the Refresh icon .

View installed plug-ins

Select the Show Installed check box. The installed plug-ins are listed in the table as disabled.


Install available software

In the Find field, type the name of the software or scroll through the list to locate it. Select the check box corresponding to the software you want to install and click Install or click the Install icon .


In the Install wizard, ensure the check boxes are selected for the software you want to install and click Next.


Review the details of the items listed for installing and click Next. After reading and agreeing to the license(s), click I accept the terms of the license agreement(s) and click Finish. The Installing Software window opens and reports the installation progress.

During the installation process you may receive warnings about installing unsigned content. If this is the case, check the details of the content and if satisfied click OK to continue with the installation.


Once installing is complete, you are prompted to restart the IDE. Click Yes to restart now and No if you need to save any unsaved changes to open projects. Note that changes do not take effect until the IDE is restarted.

Check for software updates

Click the Check for Updates icon . The Contacting Software Sites window opens and reports the progress of checking. Once checking is complete, a prompt informs you of any new software found. Click OK to close the prompt.


You can customize the views, menus and toolbars displayed by the JBoss perspective, as with any perspective.

For all actions listed below, ensure the JBoss perspective is the current perspective.

Customize views

Open or close views as desired and click WindowSave Perspective As. From the Existing Perspectives list, select JBoss and click OK. At the prompt asking if you want to overwrite the existing JBoss perspective, click Yes.


Customize menu and toolbar elements

Click WindowCustomize Perspective. In the Tool Bar Visibility tab, select or clear the check boxes corresponding to the individual toolbars and icons visible in the global toolbar of the JBoss perspective as appropriate. In the Menu Visibility tab, select or clear the check boxes corresponding to the menus and menu items visible in the JBoss perspective as appropriate. Disabled items in the Tool Bar Visibility and Menu Visibility tabs can be activated in the Command Groups Availability tab. Click OK to save any changes and close the window.



Reorder the individual toolbars comprising the global toolbar

Click the vertical dashed line indicating the beginning of an individual toolbar and drag the toolbar to its new location in the global toolbar.


Revert all perspective customizations

Click WindowReset Perspective. At the prompt asking if you want to reset the JBoss perspective to its saved state, select the Also discard perspective's customization check box and click Yes.


When a project wizard in JBoss Central is used, the IDE searches online repositories for the most recent versions of project dependencies. JBoss Central enables you to create a cache of the necessary project dependencies when you are online so that you can still use the project wizards offline. As detailed below, this is achieved by first creating the cache and then informing the IDE to use that cache.

Important

Maven must be correctly configured for all of the project wizards before the cache script is run. The JBoss Public Maven repository must be specified in settings.xml.

To create the cache, click WindowPreferences. Expand JBoss ToolsProject Examples and select Offline Support. To run the cache generating script, click Copy to Clipboard and paste the selected text on a command line outside the IDE. The script downloads and builds all of the project examples in a new directory offline. The script may take some time to complete.

Once the cache is generated, copy offline/.jbosstools/cache to the directory where you want to keep the project examples cache. Copy the contents of offline/.m2/repository to your local maven repository.

To inform the IDE to use the generated project examples cache, click WindowPreferences. Expand JBoss ToolsProject Examples and select Offline Support. Select the Enable offline mode for project examples check box. Ensure the correct cache location is specified in the Offline directory field. Click Apply and click OK to close the Preferences window.


You can install the JBoss and third-party plug-ins listed in JBoss Central in offline mode using the JBoss Central .zip file, as detailed below. This feature is useful if you regularly work offline or if you are installing these auxiliary plug-ins in a number of JBoss Developer Studio installations as it removes the need to repeatedly download the same plug-ins.

Note that the JBoss Central .zip file is a snapshot of the plug-ins at the time of the given JBoss Developer Studio release and updated versions of the plug-ins must be installed from JBoss Central in online mode.

Procedure 1.1. Install from JBoss Central .zip File

  1. Click HelpInstall New Software.

  2. In the Work with field, enter the path of the JBoss Central .zip file. Alternatively, click Add and click Archive to locate the file.

  3. Clear the Group items by category check box. This action makes the contents of the JBoss Central .zip file visible in the table of components.

  4. From the table of components, select the software to be installed and click Next.

  5. Review the details of the items listed for install and click Next.

  6. After reading and agreeing to the license(s), click I accept the terms of the license agreement(s) and click Finish. The Installing Software window opens and reports the progress of the installation.

  7. During the installation process you may receive warnings about installing unsigned content. If this is the case, review the details of the content and if satisfied click OK to continue with the installation.

  8. Once installing is complete, you are prompted to restart the IDE. Click Yes to restart now and No if you need to save any unsaved changes to open projects. Note that changes do not take effect until the IDE is restarted.