Defining Logical View
The logical view gives the user a view of how a project is structured and organized. With the logical view, you can create and customize your own diagram to give more meaningful diagram grouping instead of just using the default diagram tree.
You can also make a default logical view so you do not have to re-create it for every new project. The logical view can be exported to xml files which can be used in other projects or distributed among the development team. Different views can be then merged automatically through the teamwork server. This article will show you how to create a logical view for new or existing diagrams in VP-UML.
Create a Logical View with New or Existing Diagrams
At the left pane of VP-UML, click on the Logical View tab. Right-click on the node and choose
Add View from the pop-up menu. You can enter the name of the new view at the
Input dialog box and then click on
OK button to close the dialog box.
A new Project view node is created under the chosen node.
To create a new diagram in the logical view, right-click on the newly created Project view and select
New Diagram from the pop-up menu then select any new diagram that will be located directly under the Project View. (For example selecting the
New Use Case Diagram).
A new use case diagram is created under the Project view.
Now, try to add a new diagram to the logical view. For example, you can create a new class diagram. Then go to the logical view, right-click on the Project view and select Add Existing Diagram... from the pop-up menu. Select the newly created Class Diagram1 class diagram from the Select Diagrams Dialog dialog box. Click the OK button to close the dialog box. The class diagram is created under the Project view.
Set Default View Structure
VP-UML provides a feature where you can set the current logical view structure as default, so you will not have to re-create the structure each time you create a new project.
Click on the Set Logical View Structure as Default button from the Logical View toolbar to set the current logical view structure as the default one. The logical view structure in new projects will then follow the default style you have just set. Click the OK button to close the pop-up message.
Export View Structure to XML
VP-UML also provides you the ability to export the current Logical View Structure as an XML file and to re-use it again on other projects.
Right-click on the root node of the logical view structure and select
Export View to XML from the pop-up menu.
Enter the file name for the exported diagram, and then click the
Save button on the dialog box.
Import View Structure from XML
Now, try to import the XML file you have just exported in the previous section.
Start with a blank new project. Go to the logical view then right-click on the root node of the logical view structure. Select
Import View to XML from the pop-up menu. An
Open dialog box is displayed.
Browse and select the xml file to be imported and then click Open button to close the dialog box. You can choose any of the 2 options provided there for importing a logical view structure. The difference between the 2 options are:
Related Articles
Resources