Tips and Tricks
Diagramming Topics

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

  1. Create a new class diagram and draw the following class diagram.


  2. On the Class Repository, there are 5 classes under project Company Structure. This is created by default.


  3. On the class diagram, change the package name from <default package> to com.vp.example.company by double-clicking on the <default package>.


  4. 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

 
 
Last modified: 2007/08/12 22:48
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory