Type Hierarchy View

Type Hierarchy view shows the hierarchy of a type. The view consists of two panes:

Type Hierarchy Tree Pane

By default Type Hierarchy view is shown in Magik Type Hierarchy perspective. To add this view to the current perspective, click Command Link Window > Show View > Other... > Magik > Hierarchy.

Type Hierarchy tree pane toolbar buttons

Type hierarchy tree shows supertypes or subtypes of a given type depending on the selection made in the toolbar.

Command Name Description
Supertype Hierarchy Supertype Hierarchy

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.
Supertype Hierarchy Subtype Hierarchy

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 hierarchy

Note: The selected type is always at the top level, in the upper-left corner.
Graph Hierarchy Graph Hierarchy

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 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:

  • Pragma classify level
  • Number of superclasses or subclasses for a given type.
    If the hierarchy element is a superclass for the considered type, then the number indicates that there are other subclasses of that element. Otherwise (the element is a subclass of the considered type) the number indicates that there are other superclasses (parents) of that subclass.
  Graph Options

Allows selecting different graph layouts:

  • Tree - a layout in a form of a vertical tree (default)
  • Radial - a radial form where selected class is in the middle, its subclasses and superclasses are around it
  • Spring - a layout where all connections should have approximately the same length

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.

Previous Type History

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.

Previous Type Hierarchies Menu

History... command opens Type Hierarchy History dialog. Clear History command removes all entries from the history.

Member list pane toolbar buttons

The member list pane displays the members of the currently selected type in the type hierarchy tree pane.

Type Hierarchy Member Pane

Command Name Description
Show Local Members Show Local

Shows only elements defined for the selected class. Inherited methods will not be shown.

Show All But Object Show all but object

Shows elements defined for the selected class and inherited elements, apart from elements in the object class.

Show All Show all

Shows elements defined for the selected class and inherited elements.

Show All Hide Non-Public Members

Shows or hides non-public members.

Basic Basic Shows all elements with 'basic' classify level.
Advanced Advanced Shows all elements with 'advanced' classify level.
Subclassable Subclassable Shows all elements with 'subclassable' classify level.
Redefinable Redefinable Shows all elements with 'redefinable' classify level.
Debug Debug Shows all elements with 'debug' classify level.
Deprecated Deprecated Shows elements with 'deprecated' classify level.
Restricted Restricted Shows elements with 'restricted' classify level.
Override Pragma Flags 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.

Context Menu Actions

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.

Type Hierarchy context menu

Type Hierarchy context menu method

Related reference

Open Type in Hierarchy
Open Member in Hierarchy
Type Hierarchy History Dialog
Quick Type Hierarchy
Views and editors