Help: Exploring VisualAge For Java


Help is available for each task, or you can go straight to the solution source code.

Task 1

Finding elements within the workspace. Using the popup menu from within the project pane of the workbench (right-click the mouse), select "Search inside...". In the resulting dialog box, type "Button" for the "Name" text field and make sure that the the pulldown menus all look like the following.

When you click "Start", VisualAge will search for all "Button" class or interface declarations in the entire workspace. VisualAge should find one definition (in package java.awt) and a new double-paned window should appear containing java.awt.Button. Double-click on that item and a browser will appear containing a list of all the methods in java.awt.Button. Select method getActionCommand and your browser should look something like:


No help for this task.

Task 2

If you look at the tabs above the methods pane, you will see a series of tabs, with "Methods" selected. Click on the "Hierarchy" tab to see where class java.awt.Button fits in the class hierarchy:

Close this browser and go back to the workbench.


No help for this task.

Task 3

Click the flashlight icon under the menu bar of the workbench to bring back up the search dialog box. Last time, you searched for definitions of "Button". This time search for references to "Button". Make sure that the dialog box looks like the following and click "Start":

A list of references to "Button" will appear. Click on any of the listed references and the Java source code that references "Button" will appear in the bottom pane:


No help for this task.

Task 4

If you know the name of a class, interface, project, or package that you would like to examine, you can jump directly there instead of having VisualAge search the entire workspace. From the "Selected" menu of the workbench, choose "Go To..." and then choose submenu item "Class/Interface" which will bring up a dialog box containing the list of all classes and interfaces. Type the two letter "Bu" and you will see that VisualAge automatically filters the list down to the possible completions:

You may continue typing or simply select any of the listed class names.


No help for this task.

Task 5

Often, you will not know the exact class you are looking for or you may simply want to explore what is available in the various projects. To explore in this manner, click on the "Classes" tab of the workbench and a hierarchical view of all classes in the workspace will appear. Using the scroll bar, you can wander through the various classes. Clicking on one of the class names, will list the methods to the right and the source code below. For example, consider the following.


No help for this task.

Task 6

When you are interesting in the class hierarchy (that is, which class extends which class), a graphical tree view is useful. With the workbench "Classes" tab selected, look for tree view icon:
in the upper right corner of the class list (right above the scroll bar). Click that icon and the class hierarchy should appear similar to the following.

Double-clicking on a tree node expands it to show any subclasses. Selecting a node shows the methods for that class.


No help for this task.

Copyright © 1996-1997 MageLang Institute. All Rights Reserved.