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.

September 15, 2010
User Rating: / 5
Views: 3,663
PDF Link Add comments
Edition: Standard or above (Edition comparison)

  1. Select Tools > IDE Integration... from the main menu.
  2. Select Eclipse. You can run VP-UML in multiple IDEs. In other words, if you need you can select multiple IDEs here. Click Next.
    select Eclipse
  3. Specify the folder path of Eclipse. Click Next to start copying files to your IDE.
    specify Eclipse path
  4. Start Eclipse.
  5. Create a new Java project in Eclipse by selecting File > New > Java Project from the main menu.
    open new project
  6. When New Java Project dialog box pops out, enter project name as School. Click Finish button to proceed.
    name project
  7. Right click on School project in Package Explorer and select Open VP-UML from the pop-up menu.
    open VP-UML
  8. 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.
    popup dialog
  9. 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.
    project structure dialog
  10. Let's create a class diagram. Right click Class Diagram on Diagram Navigator and select New Class Diagram from the pop-up menu.
    create class diagram
  11. Create two classes from diagram toolbar one by one. Name a class as School and another as Student.
    create classes
  12. 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.
    create attribute
  13. Now, synchronize the class diagram to Java code. Click Update Code button on Diagram Navigator.
    update code
  14. Once you unfold Package Explorer tab, School.java and Student.java can be found under School project node.
    java created
  15. 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.
    modify code
  16. Right click on the background of the java code editor and select Update UML Model from the pop-up menu.
    update model
  17. Finally, the class diagram has been updated. You can see the new attribute and operation are created in Student class.
    syn to class diagram

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Writing Effective Use Case
  2. Draw Entity Relationship Diagram (ERD)
    Tagged:
  3. UML Package Diagram
    Tagged:
  4. Produce UML Use Cases from Business Process Diagram (BPD)
  5. Oracle database design with Entity Relationship Diagram
Tags of 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

Write comment

Rating

Comment

Enter the calculation result

security code