Make a Query

View a Call Graph Tutorial Contents Set a Breakpoint

You can perform queries over classes, methods, and variables in the Overview, Query and Class cards, or from the Queries and Class menus. This task shows you how to use the Query card to find all the methods that handle mouse events in the applet.

  1. Click the Query card tab to display the Query card.

  2. Choose "methods" from the Find option menu at the top of the card.

  3. Type set.* in the text field to find all methods beginning with the characters "set."

    You can use regular expressions in the Query card to find inexact matches.

  4. Press the Enter key or click the Search button.

    <PIC> with Query performed.

    The query returns all the set-event handlers in the classes used in the project. The methods are displayed by class in the list. The History option menu updates to show the query that was performed.

  5. Choose View > Show Package Names to show package names for all classes listed in the window.
    View a Call Graph Tutorial Contents Set a Breakpoint

    Guide to the Cosmo Code Development Environment
    12-96*154