- Make your diagram in Medelio
- From the model explorer, right click and select XMI --> export
- Browse to a location outside of your workspace and save it with the EMF UML 3.0.0, but unclick adding Modelio notations please! Also save it with the *.uml extension instead *.xmi.
- Now start eclipse and show the Papyrus perspective.
- if you already have a project, that's fine, just start a new Papyrus model.
- Create a folder in your project called XMI and import the files you exported from Modelio - there should be 2 of them, a profile and your model.
- Double click the model that you just created (e.g. model.di) and it should open in the main window, and hopefully you will see it in the model explorer too.
- Right click and select import, then import package from user model.
- In the window that opens, select your profile and model packages, and then import all. I'm not 100% positive that you need to import the profile, but it doesn't hurt, and I had issues when I tried to just copy the model components from the Modelio UML model to Papyrus.
- Ta-daa, you should now see two packages in your model explorer one is the default profile and the other is your Modelio model.
- Now at the top level model, create a class diagram (or any of the 9 UML diagrams). This is the most important step!
- Drag and drop the first class into the diagram window.
- Expand that class in the model explorer and select the class attributes and drag and drop them into the first section of the class below the title.
- Repeat for the operations, but drop them into the second box.
- Drag over any associations.
- You may need to remove and re-add any stereotypes as for some reason they were not showing up in the diagram.
Voila! you've transferred your model and your diagram!
No comments:
Post a Comment