Working with Packages

Class diagrams that show packages are referred to as package diagrams. Specifically, package diagrams contain package icons for each physical subpackage under the project directory.

Viewing packages and their content

The UML Navigator displays the packages and subpackages of a project. You can use the UML Navigator to navigate within package diagrams and view their contents.

Opening packages

To open a package, in the UML Navigator, right click on the package you wish to open, and select the Open Diagram command from the context menu.

TIP: To open package diagrams from the Diagram view, double-click on the package.

Moving elements into packages

Classes and interfaces can be visually moved to other packages by dragging from the diagram to the target package. Other elements, such as imported classes, compiled classes and interfaces cannot be moved in this manner.

Moving elements from packages

You can move a class or interface to a diagram, delete it from its current package and move it to its new package by dragging the class or interface name from the package element to the diagram background.

Related Topics:

Creating Packages

Editing Packages