Eclipse Integration Getting Started
With VP-UML's Eclipse integration, you can update code and UML model with ease. In this tutorial, you will learn how to install Eclipse integration and then how to update code through Eclipse in class diagram.
- Select Tools > IDE Integration... from the main menu.
- Select Eclipse. You can run VP-UML in multiple IDEs. In other words, if you need you can select multiple IDEs here. Click Next.

- Specify the folder path of Eclipse. Click Next to start copying files to your IDE.

- Start Eclipse.
- Create a new Java project in Eclipse by selecting File > New > Java Project from the main menu.

- When New Java Project dialog box pops out, enter project name as School. Click Finish button to proceed.

- Right click on School project in Package Explorer and select Open VP-UML from the pop-up menu.

- To optimize the performance of VP-UML, you are suggested to increase the maximum memory to a higher value. Since the changes we are going to perform in this tutorial is small, we just start without updating the memory setting. In the pop-up Memory Requirement dialog box, check Start anyway and then click OK button to proceed.

- Subsequently, Project Structure dialog box pops out. Check Create in default path if you want your project to be saved in default path. Otherwise, check Create or select existing project at external location to select another path.

- Let's create a class diagram. Right click Class Diagram on Diagram Navigator and select New Class Diagram from the pop-up menu.

- Create two classes from diagram toolbar one by one. Name a class as School and another as Student.

- Next, create an attribute in Student. Right click on Student class and select Add > Attribute from the pop-up menu. Enter name : String as the attribute.

- Now, synchronize the class diagram to Java code. Click Update Code button on Diagram Navigator.

- Once you unfold Package Explorer tab, School.java and Student.java can be found under School project node.

- Double click Student.java to open it on the pane. Let's edit the java code. Add attribute int age and operation System.out.println("name: "+name+", age:"+age). After that, you can update the changes back to model.

- Right click on the background of the java code editor and select Update UML Model from the pop-up menu.

- Finally, the class diagram has been updated. You can see the new attribute and operation are created in Student class.

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 Olalekan Samuel on October 13, 2010
This tools does not implement all the tools that one can use to make a UML drawing and there is no proper documentation for a tool that is highly expensive as the tool. To me it is a crap