Using the Object Browser
See Also
The Object Browser allows you to flexibly browse, filter, and search for components that you may want to consume in your projects.
To invoke the Object Browser
-
On the View menu, click Other Windows.
-
Click Object Browser.
You can view any libraries or packages that can be referenced from the current project. Depending on the type of project and the language engine being used, this might include:
-
the current project’s source code
-
all Java Class Path packages and classes
-
type libraries for any referenced COM objects.
The left pane shows a list of all the packages or libraries. Each can be expanded to show the classes contained in the package. Members associated with those classes appear in the right pane.
Member type, access grouping, filtering, and display can be set to customize the view.
-
Switching Views - You can change the content and display of the left pane: showing classes and/or members, and whether they’d be grouped into packages or listed alphabetically. Expanding classes exposes their inheritance structure, grouped into Superclasses, Subclasses and Interfaces categories that, in turn, expand to show the inheritance tree of the respective type.
-
Changing Browsed Set - Click on the "Packages (Libraries)" button from the command bar to display the Libraries dialog box. The Libraries dialog contains a checked tree view pane that allows the user to select both the project and Java and COM components that are on the user's machine. The user checks the libraries he or she wants to browse and clicks OK. This becomes the active Library when you switch back to the main Object Browser dialog box. By default, only libraries that can be referenced from the current project or projects are browsed.
-
Searching - The Filter dropdown allows the user to type in strings that he or she wants to filter on in the left pane. For example, if the user typed "MyEvent" and pressed ENTER with the classes displayed, any classes containing the characters "MyEvent" would be displayed in the left pane. If the user then switched to view members, only member names containing the characters "MyEvent" would be displayed. To clear the filter, click on the Remove Filter button
-
Grouping and Sorting - Click on the Grouping and Sorting button to group or sort members and classes by type and access. For example, within the Grouping dialog, choosing Group by Access in the Members dropdown displays a list of access types such as Public, Private, and Protected. You can then set the sort order for these items. Additionally, you can check whether the grouped items are placed into a tree structure.
-
Persistence - The object browser persists any referenced libraries that are not part of the current projects. For instance, the user could add a library reference to a COM library that would always be available to be browsed no matter what projects were loaded. This extra library info is stored in the registry. The browsed set is persisted per solution. Should any of the packages in a browsed set no longer be registered on the machine, they are taken off the browsed set and are no longer persisted with it.