9 The Class Browser

9.1 Simple use of the class browser

This section describes some of the basic ways in which you can use the class browser by giving some examples. If you wish, you can skip this section and look at the descriptions of each individual view: these start with Section 9.2 on page 118.

When examining a class, the slot names of the class are displayed by default.

To examine a class, follow the instructions below:

1. In the listener, create a push button panel by typing the following:

(capi:contain 
 (make-instance 'capi:push-button-panel 
                :title "Test Buttons" 
                :items '(:one :two :three)))

The push button panel appears on your screen.

2. Choose Values > Class from the menu bar of the listener.

This invokes the class browser, and transfers the push button panel into it. Thecapi:push-button-panel class is described in the class browser.

Figure 9.1 Examining classes in the class browser

Notice that, although you copied an object which is an instance of a class, the class itself is successfully described in the class browser. Similarly, if you had pasted the object into an inspector, the instance of that object would be inspected. Using the environment, it is very easy to pass Common Lisp objects between different tools in this intelligent fashion. This behavior is achieved using the Common LispWorks clipboard; see Section 3.4.2 on page 37 for details.

See Section 3.8 on page 43 for a full description of the standard action commands available.

9.1.1 - Examining slots
9.1.2 - Examining inherited slots
9.1.3 - Filtering slot information
9.1.4 - Examining other classes
9.1.5 - Sorting information

Common LispWorks User Guide, Liquid Common Lisp Version 5.0 - 18 OCT 1996

Generated with Harlequin WebMaker