Chapter 1. Workbench Basics

Set Workbench preferences

Organize imports

The following preferences define how the Organize Imports command generates the import statements in a compilation unit (default - java, javax, org, com).

Organize imports

Import order list - This list of prefixes shows the sequential order for packages imported into a Java compilation unit. Each entry defines a block. Different blocks are separated by a spacer line.

Step filters

Step filters prevent the debugger from suspending in specified classes and packages when stepping into code. Step filters are established in Window > Preferences > Java > Debug > Step Filtering:

Step Filtering

With step filters, you can avoid debugging external packages that your code depends on, so that you only debug your application. The step filters affect step into and step return - and are independent of the step-by-step filters.

When the Use Step Filters togggle (on the debug toolbar and menu) is on, step filters are applied to all step actions. In the Debug view, the selected stack frame's package or declaring type can be quickly added to the list of filters by selecting Filter Type or Filter Package from the stack frame's context menu:

Filter Type

TODO: Java and Mixed Language Debug ZZZZZZZZZ

Build path

Build path

  • Source and output folder

    • Project: Both source and output locations are set to the project's root.

    • Folders: Source and output locations can be set individually.

      To specify the source and output locations, set Source folder name and Output folder name.

  • As JRE library use - Specify which JRE library to use.

    • JRE container

      A JRE container.

    • JRE_LIB variable

      The JRE specified by the JRE_LIB variable.

Setting local history preferences

To indicate the level of local history that should be kept for each resource in the Workbench:

  1. Click Window > Preferences.

  2. Select the Workbench > Local History category in the left pane. The Local History preferences page opens:

    Local History

  3. In the Days to keep files field, type the number of days that you want to keep records for any one Workbench resource. For example, if you type 7, then a history of saved states from the last seven days will be kept.

  4. In the Entries per file field, type the number of states to keep for any one Workbench resource. Note that when you exceed the number of entries per file, the oldest changes are discarded to make room for the newer changes.

  5. In the Maximum file size (MB) field, type the maximum file size (in MB) of a resource for which a local history should be kept. If the size of the resource exceeds the maximum amount of file size allocated, no local history is kept for that resource.

  6. Click OK to set your preferences and close the Local History preferences page.

Specifying the default perspective

The default perspective always shows up on the Window > Open Perspective menu. The Resource perspective is the pre-defined default perspective.

To change the default perspective:

  1. From the main menu bar, select Window > Preferences.

  2. Expand the Workbench category on the left and select Perspectives. The Perspectives preferences page opens.

  3. Select the perspective that you want to define as the default, and click Make Default. The default indicator moves to the perspective that you selected.

    Make Default

  4. Click OK.

Professional hosting     Belorussian informational portal         Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     Free SCJP 5.0 (Tiger) Study Guide     Free Mock Exam Engine     Free SCWCD 1.4 Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide