Best Way to Import Existing UML model into Papyrus [message #470453] |
Mon, 03 August 2009 13:19  |
Eclipse User |
|
|
|
I have download and running the latest papyrus and we need to be able to
create a papyrus model project from an existing uml (xmi 2.1) model. I am
able to create a papyrus project and replace the uml file with a existing
if the names align. Is this the preferred method or approach?
Thanks
Sean
|
|
|
|
Re: Best Way to Import Existing UML model into Papyrus [message #557105 is a reply to message #470458] |
Sat, 04 September 2010 08:10   |
Eclipse User |
|
|
|
Sebastien Gerard wrote on Wed, 05 August 2009 03:01 | Hi,
there is another mean to do that: select the uml file, right click on it and
create with this context a new Papyrus model. The current model will be the
base for your new project.
Regards,
S
|
I have just tried this as I had the same question as the OP. This technique does not work well. It creates no view at all.
You may add a view manually, but then, it is empty, and it is not that easy : you have to peek element from the model explorer, then move it to the view. However, this oftenly goes wrong, and sometime, some stuff cannot be added in the view this way, like comment links and some others;
I guess this would not be easy to create something which would create a layout automatically. But this could be easier and still nice to have something which would do the bare minimum, that, add all element from the model to a view. The user will then have to adjust element position and the like.
|
|
|
|
|
Re: Best Way to Import Existing UML model into Papyrus [message #606947 is a reply to message #470458] |
Sat, 04 September 2010 08:10   |
Eclipse User |
|
|
|
Sebastien Gerard wrote on Wed, 05 August 2009 03:01
> Hi,
>
> there is another mean to do that: select the uml file, right click on it and
> create with this context a new Papyrus model. The current model will be the
> base for your new project.
>
> Regards,
> S
I have just tried this as I had the same question as the OP. This technique does not work well. It creates no view at all.
You may add a view manually, but then, it is empty, and it is not that easy : you have to peek element from the model explorer, then move it to the view. However, this oftenly goes wrong, and sometime, some stuff cannot be added in the view this way, like comment links and some others;
I guess this would not be easy to create something which would create a layout automatically. But this could be easier and still nice to have something which would do the bare minimum, that, add all element from the model to a view. The user will then have to adjust element position and the like.
|
|
|
|
|
|
|
|
|
Re: Best Way to Import Existing UML model into Papyrus [message #1006545 is a reply to message #1006510] |
Thu, 31 January 2013 10:48  |
Eclipse User |
|
|
|
Hi
That seems to justify raising
https://bugs.eclipse.org/bugs/show_bug.cgi?id=396881 to critical.
Regards
Ed Willink
On 31/01/2013 15:36, Furkan Eke wrote:
> "Select UML Model/New Papyrus Model/ -> empty model diagram" is the
> less awful thing of the rest.
>
> If you try to delete the generated "model.di" file from the project
> explorer,
> in order to start over with a second try, you hopelessly see that your
> original uml file will be deleted irreversably together with the
> papyrus model.
>
> You loose your original model ending up with less than you have
> started with!
>
> If you have no copy of the model anywhere else it is already over with
> that model.
>
> Congragulations, you have nothing left to loose.
>
|
|
|
Powered by
FUDForum. Page generated in 0.06522 seconds