|
|
The Class Browser allows you to examine the classes in the current phase or package, and their associations, attributes, and operations.
Note: Only classes that appear in a CD appear in the Class Browser. If a class is defined by a CDM but does not appear in a CD, it does not appear in the Class Browser.
The Class Browser window appears. If you started the Class Browser on Phase level, all classes in that phase appear in the Classes list. If you started the Class Browser on Package level or from a diagram editor, only the classes in that package appear in the Classes list.
The Class Browser presents class information in five list boxes.
When you start the Class Browser or after you reload classes, only the Classes list contains data. To populate the other list boxes, you open one of the listed classes.
The other list boxes are filled with information related to the opened class.
By default, the Class Browser displays only the attributes and operations of the selected class, and the Associations list displays only the class at the other end of the association. Sometimes, it is useful to see the information classes inherit from their parent classes.
All features and association entries are prefixed with the class name they belong to. The Associations list displays the classes at both ends of associations.
Entries in the display area are sorted alphabetically, but are not case sensitive.
For details on saving option settings to your user environment file, see Browser Settings in The UML Suite Project Management Guide.
If you want to edit the diagram in which a class appears, you can open the CD directly from the Class Browser.
The UML suite opens the CD editor and displays the CD in which the selected class appear.
Note: If the selected class appears in more than one diagram, the UML suite prompts you to select the CD you want to edit.
You can leave the Class Browser open while you work in a Diagram Editor or in the Browser. If you add, delete, or modify classes, you can update the Class Browser by selecting File | Reload Classes.
You can use filters to restrict the information displayed in the Features list. Filters are helpful when you have many attributes or operations. You set filters using the Filter Features dialog box.
The Filter Features dialog box lets you set filter elements that specify which attributes and operations to display in the Features list. You can filter attributes or operations by name, data type, or by the value of any of their item properties.
When you assign a value to a filter element, only attributes or operations matching the specified value are displayed in the Class Browser.
For example, if you set the value of the attribute filter element Type to int, only attributes of type integer are displayed in the Class Browser.
The Filter Features dialog box displays this information for each filter element:
You can navigate your class hierarchy in the Class Browser by opening classes in the Subclasses, Superclasses, Features and Associations lists.
When you double-click an entry in the Features or Associations lists, the Class Browser looks for a class name in the entry. For example, classes sometimes appear in attribute entries as attribute data types or in operation entries as parameter data types. If the Class Browser cannot find a class name, it displays a message. The class at the other end of an association is always displayed for associations.
In Flat view, class names prefix all entries so you can open any entry.
The other list boxes display information for that class.
If a class name appears in the entry, it is selected and opened.
Note: If you are in Flat view, a list displays with a list of class names at each end of the selected association. Click a class name and click OK.
The class at the other end of the association is opened.
You can use the Class Browser to find items and to display detailed information about the items.
The Show Properties dialog box appears. This is the same dialog box that appears when you select Item | Show Properties in the Diagram Editors.
See Chapter 5, Properties and Stereotypes.
You can print the data of the currently opened class to the default printer. You can change the default printer option settings.
For details on saving option settings to your user environment file, see Browser Settings in The UML Suite Project Management Guide.
The class data is printed on the default printer.
The next time you print, this print command is used.
You can also set the default printer from the Browser using File | Printer Setup | Text, as described in Printing.
You can specify the fonts used in the Class Browser lists by changing your font option settings.
To save option settings to your user environment file, see Browser Settings in The UML Suite Project Management Guide.
The UML suite applies the font specified.