Type Hierarchy view shows the hierarchy of a type. The view consists of two panes:
By default Type Hierarchy view is shown in Magik Type Hierarchy perspective. To add this view to the current perspective, click Window > Show View > Other... > Magik > Hierarchy.
Type hierarchy tree shows supertypes or subtypes of a given type depending on the selection made in the toolbar.
This command displays supertypes of a type in Type Hierarchy view. Tree starts at the selected type and displays the result of traversing up the hierarchy.Note: The selected type is always at the top level, in the upper-left corner.
This command displays subtypes of the selected class in Type Hierarchy view. Tree starts at the selected type and displays the result of traversing down the hierarchyNote: The selected type is always at the top level, in the upper-left corner.
This command displays both subtypes and supertypes of the selected class in Type Hierarchy view. When class has both superclasses and subclasses, the superclasses are above the selected class and the subclasses are below it. With default graph layout (see Graph Options below), when class has only superclasses or only subclasses, the graph will be similar to the tree, accordingly reversed or normal. The arrows always show the direction of inheritance - parents (superclasses) point at the children (subclasses)Note: The selected type is always marked with different color (yellow when selected, light blue otherwise).
|Previous Type Hierarchies||
The command opens Type Hierarchies History dialog.
|Show Qualified Type Name||
Shows the name of the package for a given type.
|Additional Type Info||
Shows type's additional info for the elements of the hierarchy:
Allows selecting different graph layouts:
Type hierarchy is displayed within the context of the project selected from Project list.
Double-click on the type will open its source code in the editor.
The menu, accessible via black arrow on the right side of Previous Type Hierarchies command, lists all previously selected type hierarchies. Select one to re-open it in Type Hierarchy View.
History... command opens Type Hierarchy History dialog. Clear History command removes all entries from the history.
The member list pane displays the members of the currently selected type in the type hierarchy tree pane.
Shows only elements defined for the selected class. Inherited methods will not be shown.
|Show all but object||
Shows elements defined for the selected class and inherited elements, apart from elements in the object class.
Shows elements defined for the selected class and inherited elements.
|Hide Non-Public Members||
Shows or hides non-public members.
|Basic||Shows all elements with 'basic' classify level.|
|Advanced||Shows all elements with 'advanced' classify level.|
|Subclassable||Shows all elements with 'subclassable' classify level.|
|Redefinable||Shows all elements with 'redefinable' classify level.|
|Debug||Shows all elements with 'debug' classify level.|
|Deprecated||Shows elements with 'deprecated' classify level.|
|Restricted||Shows elements with 'restricted' classify level.|
|Override Flags||Overrides pragma flags - elements with any pragma content will be shown.|
Double-click on the member opens its source code in the editor.
Note: Element tooltips show their comments from Magik code.
On every element in the type hierarchy view the following actions can be invoked:
Additionally there are two element specific actions:
|Class context||Member context|
|Focus on ... - opens Open Type in Hierarchy dialog allowing browsing and selecting a class to be opened in Type Hierarchy View.||Focus on ... - opens Open Member in Hierarchy dialog allowing browsing and selecting a member to be opened in Type Hierarchy View.|
|Browse Class - opens definition of the selected element in Class Browser.||Browse Method - opens selected method in Class Browser.|
Open Type in Hierarchy
Open Member in Hierarchy
Type Hierarchy History Dialog
Quick Type Hierarchy
Views and editors