The Class Relations list displays the current JavaTM class or Java interface type and its related classes or interfaces separated into the following categories:
Bold type is used to denote the currently-displayed class and italics are used to distinguish Java interfaces from Java classes. Where appropriate the Java language keywords final and abstract are also provided in italics next to the class name.
Double-clicking any item listed in the Class Relations list makes it the current class or interface type.
The outline icon to the left of items in the Class Relations list can be used to collapse (hide) or expand (make visible) the items under that category. The arrow inside the icon indicates whether the category is in the expanded or collapsed state. If the arrow points downward, the list is in its expanded state. If the arrow points to the right, the category is in its collapsed state.
The Base Classes hierarchy shows the ancestors of the current class. Each indented class is an ancestor of the class listed above it. If a class has ancestors, click the outline icon to view or hide the ancestors.
BASE CLASSES <-This first_parent_of_This (access type) parent_of_first_parent_class (access type) second_parent_of_This (access type) parent_of_second_parent_class (access type)
The Derived Classes hierarchy shows the descendants of the current class. Each indented class is a descendant of the class listed above it. If a class has descendants, click the outline icon to view or hide the descendants.
DERIVED CLASSES first_child_of_This child_of_first_child_class second_child_of_This child_of_second_child_class
Select a class or interface and press the right mouse button to get a menu of queries appropriate for the item you have selected. Many of the items in the menus are common to more than one menu. All the queries are listed in alphabetical order below, followed by the menus where they can be found.
Query results are displayed in the Class Relations list by highlighting items that match the query. The Class Relations list also displays indicator marks in the scroll bars corresponding to the positions of matching items. Click an indicator with the middle mouse button to scroll to the matching item. A filled outline icon also shows a match.
Menu Item | Class Relation | Description (current class is displayed in the left pane) |
What is Abstract | Current | Highlights all methods and classes that have been marked abstract in the source code. |
What Instantiates | Used Used By |
Highlights all methods and variables of the current class that instantiate the selected class. |
What is Instantiated | Current | Highlights all the classes that the current class instantiates. |
What Is Declared | Base | Highlights all methods declared by the selected base class. |
What Is Defined | Base | Highlights all methods and variables defined by the selected base class. |
What Is Overloaded | Derived | Highlights all methods and variables of the current class that are overloaded by the selected derived class. |
What Is Overridden | Base | Highlights all the methods inherited by the selected base class that are overridden by the current class. |
What Is Overridden | Derived | Highlights all the methods of the current class that are overridden by the selected derived class. |
What is Overridden By | Current | Highlights all the methods in the current class that override inherited methods. |
What Is Used | Derived Used By |
Displays the What Is Used submenu. |
What Uses | Uses | Displays the What Uses submenu. |
Show Source | All | Displays a file containing the declaration of the selected item in the Source panel. The first line of the declaration is highlighted in the source. Note that if you do not define an init method, the compiler generates a default init method, and Cosmo Code displays this in the Class card. Double-clicking on the init method shows the class definition in the Source panel. |
Show Documentation | All | For Java system classes, displays a web page containing information on the selected class. |
Menu Item | Description |
Using Any Field | Highlights all methods and variables of the current class that the selected class uses. |
Calling Methods | Highlights all methods of the current class that the selected class uses. |
Using Variables | Highlights all variables of the current class that the selected class modifies or reads. |
Modifying Variables | Highlights all variables of the current class to which the selected class assigns a value. |
Reading Variables | Highlights all variables of the current class from which the selected class reads a value. |
Guide to the Cosmo Code Development Environment
12-96*262