UML2 is an EMF-based (EMF: Eclipse Modeling Framework) implementation of the UML 2.x metamodel for the Eclipse platform. Visual Paradigm supports importing and exporting UML2 model through XMI, which is the default serialized form of EMF.
| Export Project as UML2 XMI |
| Export UML2 XMI |
| Suppose the following class diagram is drawn in VP-UML. |
 |
|
| Let's export the VP-UML project as UML2 XMI. |
|
| 1. |
Select File > Export > XMI... from the main menu. |
|
 |
|
|
This shows the Export XMI dialog. |
|
| 2. |
Enter the File path of the XMI file, select XMI 2.1 as the XMI version and check Export for UML2. |
|
 |
|
|
This exports the UML2 XMI file to the path specified. |
|
| Edit UML2 Model in Eclipse |
| After exporting the model to UML2 XMI, let's edit the UML2 XMI in Eclipse with the UML2 plugin. |
|
| 1. |
Right-click on the UML2 XMI file in the project tree and select Open with > UML Model Editor from the popup menu. |
|
 |
|
|
The UML2 XMI file is opened with UML Model Editor, which lists the models in a model tree. |
|
 |
|
| Modify an Existing Model |
| The Properties View is where you can read and modify the properties of the selected UML model. |
|
| 1. |
To open the Properties View, right-click on the model and select Show Properties View from the popup menu. |
|
 |
|
|
This shows the Properties View |
|
 |
|
| 2. |
To edit the properties of the model, double-click on the Value field, enter the new value and press Enter to confirm editing. |
|
 |
|
| Add a New UML Model |
| As mentioned earlier, a UML model is represented as a tree node in the UML model Editor. To add or remove a model, simply create or delete a tree node. For instance, to add an attribute in the Order class: |
|
| 1. |
Right-click on the Order class tree node, and select New Child > Property from the pop-up menu. |
|
 |
|
| 2. |
Enter the name of the attribute in Properties View. |
|
 |
|
| 3. |
Choose the data type of the attribute. |
|
 |
|
|
The attribute prepaid:double is added to the Order class. |
|
 |