Skip to main content

Package Diagram

Overview

Package diagrams can be used to visualize dependencies between packages.
This page explains the operations for using package diagrams in the following order.

  • Place package diagram
  • Define the package
  • Define dependencies

Package Diagram

Place the package diagram

To place a package diagram, follow these steps:

Place the package diagram

Operating instructions
  1. Select the package in the model navigator and click [Add Model] > [Package Diagram] in the context menu.
  2. The package diagram is placed in the child element of the selected package.

Define the package

To define a package, follow these steps:

Add package

Operating instructions
  1. Drag and drop the displayed package diagram [Package].
  2. A new package will be added as a sibling element to the displayed package diagram.
Elements that can be added from the toolbox

The following elements displayed in the toolbox can be placed in the package diagram.

IconName
PackagePackage
NoteNote
LabelLabel
Add ShapeShape

Add stereotype to package

To add a stereotype, follow these steps:

Add stereotype

Operating instructions
  1. Select a package.
  2. Click the Add button in the Basic information > Stereotype field in the Property Inspector to display the choices.
  3. Select a stereotype and press the [OK] button to set the stereotype on the package and display the stereotype on the package shape.
tip

Stereotype choices can be defined in the package model's Detail view.

tip

Once you've added a stereotype, you can edit it from the package diagram by following these steps:

  1. Double-click the stereotype displayed in the package to enter editing status.
  2. When you change the stereotype and confirm the edit, it will be reflected on the package diagram and the package stereotype will be changed.
tip

If you want to display an existing package on the package diagram, you can display it by dragging and dropping the package on the model navigator onto the package diagram.

Define dependencies

To define a dependency, follow these steps:

Add dependency

Operating instructions
  1. Move the pointer over the package you want to associate.
  2. Drag the [▲] icons that appear on all sides of the package and drop them onto the other package.

Add stereotypes to dependencies

To add a stereotype, follow these steps:

Add stereotype

Operating instructions
  1. Select Dependency.
  2. Double-click the grayed-out [<<stereotype>>] to enter editing mode.
  3. Enter the stereotype you want to set, the stereotype will be displayed in the dependency of the package diagram, and the stereotype will be set in the dependency.
tip

If you want to represent imports and merges, use dependency stereotypes to represent them.