DVT Eclipse IDE Types View - How to Create a Class Diagram
Details
Introduction
Another situation where the Types View feature is useful is when you want to create a diagram for your verification environment. DVT uses dynamically created UML diagrams to allow you to inspect and document classes and system architecture. The diagrams are hyperlinked and synchronized with the source code.
Creating a Diagram
So, to create a diagram, start by typing tb
in the Types View quick search bar. Then right-click on the apb_subsystem_tb class and select Show Diagram. By default, the diagram shows the class inheritance tree.
Customizing the Diagram
To customize it, open the Diagram Preferences dialog by clicking on the Preferences button.
- Hide the class's Parents and Children.
- Show only the first association.
- Lay out the diagram from left to right.
Finishing and Saving the Diagram
To finish the diagram, right-click on the apb_subsystem_env and click on Select Type. Double-click on the title bar to maximize the diagram editor.
Click the Save As button if you want to save the diagram, for example, as a PNG and embed it in your documentation.