Move Glossary Term to Base Project through Refactoring
A glossary term is a word or phrase that is important and meaningful within your project scope. For example, car, brand and manufacturer can be glossary terms of a car rental system. VP-UML lets you record the terms through glossary grid or by identifying from name and documentation of model elements. If you have broken down a big project into separate projects, you may find it necessary to re-define terms again and again. In this tutorial, we will show you how to move terms to a base project so that all the depending projects can reference to it without the need of re-definition.
- Start VP-UML.
- Create a new project by selecting File > New Project from the main menu. In the New Project window, name the project Base and click Create Blank Project.

- Select File > Save Project as... from the main menu. Save the project as Base.vpp.

- Open the Repair Car.vpp attached with this tutorial. You can open project by selecting File > Open Project... from the main menu.
- Let's make the project depends on the base project we just created. Open the Model Explorer.

- Right click on the background of Model Explorer and select Manage Dependent Project... from the popup menu.

- In the Manage Dependent Project dialog box, add Base.vpp we just created. Click Close to continue.

- Open the glossary grid in Repair Car project. Double click on Glossary Grid node in Diagram Navigator to open it.

-
Here you can see three terms: customer, car, repair.
We want to share the terms and definition with other projects. However, not all the terms are meaningful to all the other projects. The terms customer and car are meaningful for a car rental company, while the word repair is only meaningful to the current project, the Repair Car project. Therefore, we shall move customer and car to the base project.
- Open the Model Explorer. Select the current project from the drop down menu at the top of the Model Explorer.

- Select the terms car and customer. Right click on the selection and select Refactor to Dependent Project... from the popup menu.

- Click Yes when you are prompted to save project.

-
Confirm the terms to refactor in the Refactor to dependent project window. Click Continue.
Now, the terms are moved to the dependent project. Projects that depend on the base project can than read the terms in it.
Resources
- Repair Car.vpp
Rate this Article
Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).
One Moment Please
Thanks for rating this article.
Comments (1)
written by Jakayla on December 18, 2011
Boom shakalaka boom boom, problem sovled.