Specifying Package Name for Class Diagram
When using class diagrams you may find that your package structure is affecting the readability of the diagram due to its depth. Package headers for the class diagram can help to resolve this problem as the package will be created automatically in the class repository, and the classes on the class diagram with the specified package will be included in the package automatically. This can also be illustrated in the class repository. This feature is available in all Visual Paradigm products.
Using Package Header
Create a new class diagram and draw the following class diagram.
On the
Class Repository, there are 5 classes under project
Company Structure. This is created by default.
On the class diagram, change the package name from
<default package> to
com.vp.example.company by double-clicking on the
<default package>.
On the class repository tree, the 5 classes are now located under folders
com.vp.example.company. It means that the classes are inside the
com.vp.example.company package. With package headers, packages can be created easily and with little hassle, and classes are moved automatically.

Related Articles
Resources