Home > XMI Editor

Multiple projects model


EclipseUML allows multiple projects modeling.
It means that you can merge inside an existing EclipseUML project one to many models coming from:
The merge is immediately completed at the first time that you drag and drop a model element coming from another project inside an EclipseUML diagram.
It works for all diagrams (e.g. class, usecase, state, activity, component etc...)
You can either create more than one project with EclipseUML or import different tools model inside EclipseUML.
These imported models will be merged inside EclipseUML Model.

Please note that Omondo needs a xmi 2.1 model in order to be able to merge with EclipseUML xmi 2.1 model.
We don't provide a transformation tool between XMI 1.x to XMI 2.1
You can use any transformation solution in order to get a standard UML 2.1 model from your existing models.
Many open source plugins are currently available doing this xmi transformation inside the Eclipse community.
If the generated xmi could be open by the Eclipse UML editor, then it could be used by EclipseUML.

To activate the UML XMI 2.1 multiple projects modeling you need to:
  1. Create a  Java, JEE,  JPA or other  Eclipse project
  2. Import your existing model inside a project
  3. Extend the Omondo project property to your other projects
  4. How to extend your model by adding other models


1. How to create a Java Project ?

Click in the package explorer New > Java Project then enter the name of your project in the Project name field and click on the Finish button.

2. How to import your model inside Eclipse ?

If your model has not been created by Eclipse 3.4 Ganymede, then it is not possible to load the modeling tool inside Eclipse and get a graphical view (e.g.Only XMI is available and could be used inside Eclipse 3.4 Ganymede).
A workaround is to create a project and then manually past and copy the model file in your project using the windows or linux file manager. You click on your project in the Package Explorer > Refresh to see this new model in your project.

If the model has been created by Eclipse Modeling Tools or Topcased then these models are immediately compatible with EclipseUML.
If the model has been created with Rose or RSA 6 then you need to transform your model to xmi 2.1 before loading the model in your project.
If the model has been created by RSA 7 then you just need to load it inside Eclipse 3.4 because the model is already xmi 2.1 compatible (Note that  RSA 7 tool is still not Eclipse 3.4 compatible).

3. How to extend the Omondo project by adding a additional project ?

Click on your project > Properties > Java Build Path and select the Projects tab.



Click then on the Add.. button and select the projects  (e.g. ModelProjectTwo) to be extended.



Omondo is using the Eclipse mechanism in order to keep the full power of eclipse plugin approach and to allow multiple model merges.


4. How to extend your EclipseUML model by adding other model elements ?

You need to open your model using the Omondo XMI Editor and then drag and drop this model element inside one EclipseUML diagram to get the model merge activated.

Click on the .uml file in your Package Explorer > Open With > Omondo XMI 2.1 Editor


Drag the model element from the xmi source Editor to the central project model (e.g. EclipseUML target model where the merge will be completed)..
Select Usecase named UseCase Model Project 2 in the XMI Editor > drag and drop inside the project one usecase diagram


If you open the project ModelProjectOne and can see that the dropped element has been merged with existing ModelProjectOne model (e.g UseCase Model Project 2 has been added inside the project one model).