Selecting Packages and Libraries

By default, the Object Browser only displays the packages and libraries that can be referenced from the current solution, which include all packages in the solution, the packages installed by the Java Package Manager (JPM), and the packages on the classpath. You can also add additional packages and libraries to the Object Browser.

To select the packages and libraries to be browsed

  1. Right-click the Object Browser and click Select Current Packages/Libraries on the shortcut menu. You can also click the Select Current Packages/Libraries button on the Object Browser's command bar.

  2. The Select Packages/Libraries dialog box shows the packages and libraries that are available for browsing. The Solution node lists the Java projects that belong to your solution. The Other Libraries and Packages node contains the following subnodes:
  3. Select the packages and libraries that you want displayed in the Object Browser, and clear the items that you want removed. A package or library will be displayed in the Object Browser only if all of its parent nodes are also selected. (By default, selecting an item automatically selects all parent nodes.) A node that is selected with a gray checkmark indicates that some—but not all—of its child items are selected.

    Tip   The easiest way to identify which packages and libraries will be displayed in the Object Browser is that these items appear in bold.

  4. To add items to the COM Libraries and Other Java Packages nodes, click Add.
  5. Click OK to apply your selections.

The items that you select for browsing in the Select Packages/Libraries dialog box may persist after you close the Object Browser: