Specifying default UML diagrams for packages

Packages can contain several different UML diagrams. You can specify which diagram opens by default when you open a package from the Project Explorer view.

About this task

Note: Activity, state machine, communication, and sequence diagrams cannot be set as the default diagram for a package because these diagrams are added as children of their respective model elements. For example, when you create an activity diagram, it is added to the model element, not the package. When you right-click one of these diagram types in the Project Explorer view and click Make Default Diagram, the selected diagram becomes the default diagram for the model element that contains the diagram. You can open the default diagram by double-clicking the model element in the Project Explorer view.

Similarly, if a class, use case, or other type of diagram is nested under a model element other than a package, you can make it the default diagram of the model element. If you want to make the diagram the default diagram for the package, you must move it directly under the package in the Project Explorer view.

Procedure

To specify a default diagram for a package, in the Project Explorer view, right-click a diagram; then click Make Default Diagram.

Feedback