In UML models, you can browse
the inheritance hierarchies of classifiers that support inheritance,
such as classes, interfaces, and use cases. Using the
Inheritance
Explorer view, you can view or change the subtypes and
supertypes for a selected model element, as well as the corresponding
attributes and operations.
Before you begin
You can examine the inheritance
relationships between model elements in a single model or across several
models, or between model elements and visualized elements.
You must
be in the Modeling perspective and have a diagram
open that contains classifiers that support inheritance.
About this task
To examine the inheritance hierarchy for a classifier, right-click
the classifier in the diagram editor or
Project Explorer view
and then click .
The
Inheritance Explorer view opens, showing
the classifier, its subtypes, and its supertypes in a hierarchy at
the top of the view and with a list of the selected classifier's operations
and attributes at the bottom of the view.
Once
you have opened the inheritance hierarchy for a classifier, you can
perform a variety of operations on that classifier and its related
classifiers:
- Select the classifier in the top half of the view to see its operations
and attributes in the bottom half.
- Add new subtypes or supertypes by right-clicking the classifier
and then clicking either Create New Supertype or Create
New Subtype.
- Double-click a classifier or right-click a classifier and then
click to
highlight the classifier in the Project Explorer view.