Finding Classes and Methods

Search
 
Probably the most difficult part of any development environment is finding things.

When using Smalltalk MT, you will need to become very familiar with the Query.

The Query is available on the Class Hierarchy Browser toolbar. You will probably need to change the drop down lists. In the first drop down, enter the search term. In the second drop down select Text and in the third drop down choose All classes. If you are not sure of the capitalization of the word, unselect the Match case checkbox. Then press the Query button.

You cannot rely on senders and implementors in Smalltalk because of inlining and structures. Query will find the item anywhere in the development environment.

To find a class, the Class Hierarchy Browser provides the Class dropdown. This combo box also allows searching. You can use wildcards to search for class names, for example Str*. This will present a list of classes matching this wildcard.

Once you have selected a class, there is another aid to help you find a method within a class. Use the auto-complete combo box (the same as the one on Internet Explorer). This is at the bottom of the center panel in the Class Hierarchy Browser. Start typing in this edit field and the methods that match the characters typed will show up.