All Manuals > LispWorks IDE User Guide > 7 The Class Browser

7.4 Examining classes graphically

As already mentioned, you can view class relationships graphically using either the superclasses or subclasses views. This gives an immediate impression of the class hierarchy, but contains no details about information such as slots, readers and writers.

Click on the Subclasses tab to browse subclasses in a graph, and click on the Superclasses tab to view superclasses in a graph. Except for the type of information shown, these two views are visually identical. The subclasses view is shown in Viewing subclasses graphically in the Class Browser.

Viewing subclasses graphically in the Class Browser

The areas available in the subclasses and superclasses views are described below.

7.4.1 Class box

As with other views in the Class Browser, the name of the class being browsed is shown here. See 7.2.1 Class box for details.

7.4.2 Subclasses and superclasses graphs

The main area of these views is a graph showing either the subclasses or the superclasses of the current class, depending on the view you have chosen. The generic facilities available to all graph views throughout the environment are available here: see 6 Manipulating Graphs for details.

Selecting a node in this displays a description of the class it represents in the Description list.

7.4.3 Description list

This list displays a description of the first class selected in the graph. This gives the same information as the Description list in the hierarchy and precedence views. See 7.3.4 Description list for details.

7.4.4 Performing operations on the selected classes or the current class

You can operate on the selected node in the graph using the commands in the Classes menu. If no node is selected, then the current class is operated on by the commands in this menu. The standard actions commands described in 3.8 Performing operations on selected objects are available in this menu.

Choose Classes > Browse Metaclass to select, and describe in the normal way, the class of the selected classes, or the current class.

7.4.5 An example

  1. Examine the class capi:choice by typing capi:choice into the Class area of the Class Browser and pressing Return or clicking on .

    The class is described in the current view.

  2. Click on the Subclasses tab in the Class Browser.

    The relationships between capi:choice and its subclasses are shown in a graph, as in Relationship between capi:choice class and its subclasses.

    Relationship between capi:choice class and its subclasses

    By default, the subclasses of the current class are shown in the graph. To expand a non-leaf node in the graph, click on the circle to its right.

  3. Expand the CAPI:BUTTON-PANEL node to see the subclasses of this class.

    The classes of button panel object available are displayed in the graph, including the push button panel class that you saw in the examples in 7.1 Simple use of the Class Browser.

  4. To graph the superclasses, click the Superclasses tab.

    The relationships between capi:choice and its superclasses are shown in a graph, as in Relationship between capi:choice class and its superclasses.

    Relationship between capi:choice class and its superclasses


LispWorks IDE User Guide (Macintosh version) - 01 Dec 2021 19:36:23