Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How can I migrate my models created with UML2 Tools to Papyrus?
icon7.gif  How can I migrate my models created with UML2 Tools to Papyrus? [message #759341] Mon, 28 November 2011 12:31 Go to next message
Ricardo1980 Missing name is currently offline Ricardo1980 Missing nameFriend
Messages: 11
Registered: November 2011
Junior Member
Hello!

How can I migrate my models created with UML2 Tools to Papyrus?
Have I to do it manually?

Thanks a lot.
Re: How can I migrate my models created with UML2 Tools to Papyrus? [message #778785 is a reply to message #759341] Fri, 13 January 2012 20:30 Go to previous messageGo to next message
Igor Jacy Lino Campista is currently offline Igor Jacy Lino CampistaFriend
Messages: 34
Registered: July 2009
Member
Interesting that you got no answer after so many months.

The glue of the diagram tooling (be it UMLTools or its successor Papyrus) is the uml instance itself. The diagram representation have their own format, UMLtools has its custom format and Papyrus is using already a standard for it noted by the DI extension. (see the OMG DI spec) Hopefully you have a good UML model that is reusable.

There is no converter(that I know off), to convert between the older umltools diagram instance format and the DI diagram instance format.

So if your diagrams were already based in Papyrus (being in the DI format) you probably could bring those diagrams into other tooling that also follow the DI standard. (theoretically)

Probably the only two ways I see are:

1) Print the diagrams, and with Papyrus auto-generate the diagrams, like class-diagrams, based on the UML, and hide what you are not interested. For other types of diagrams, not sure how easy that would be.

2) Do it programmatically, loading the UMLtools diagram instances, and re-create as much as the Papyrus API allows you, now with DI instances.


I think, the most interesting way would be #2. With the added benefit that could be contributed, for others.
Re: How can I migrate my models created with UML2 Tools to Papyrus? [message #779080 is a reply to message #778785] Sat, 14 January 2012 16:38 Go to previous messageGo to next message
Ricardo1980 Missing name is currently offline Ricardo1980 Missing nameFriend
Messages: 11
Registered: November 2011
Junior Member
Thanks a lot.
I thought these kind of tools always used the same format, XMI, for model interoperability.

Re: How can I migrate my models created with UML2 Tools to Papyrus? [message #779103 is a reply to message #778785] Sat, 14 January 2012 18:17 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi
On 14/01/2012 16:38, Ricardo1980 Mising name wrote:
> Thanks a lot.
> I thought these kind of tools always used the same format, XMI, for
> model interoperability.
Yes, but XMI just defines an XML extension from tree structures to graph
structures. Absolutely essential for models but not nearly enough to
ensure compatible semantic content.

On 13/01/2012 20:30, Igor Jacy Lino Campista wrote:
> The glue of the diagram tooling (be it UMLTools or its successor
> Papyrus) is the uml instance itself. The diagram representation have
> their own format, UMLtools has its custom format and Papyrus is using
> already a standard for it noted by the DI extension. (see the OMG DI
> spec) Hopefully you have a good UML model that is reusable.
>
> There is no converter(that I know off), to convert between the older
> umltools diagram instance format and the DI diagram instance format.
>
> So if your diagrams were already based in Papyrus (being in the DI
> format) you probably could bring those diagrams into other tooling
> that also follow the DI standard. (theoretically)
By DI, I presume you mean UMLDI (http://www.omg.org/spec/UMLDI/1.0/PDF).
This specification is five years old and I suspect has been largely
ignored by vendors.

A new specification DD (http://www.omg.org/spec/DD/1.0/Beta2) is in the
final adoption stages. It supports more general Diagram Definition with
both Diagram Graphics and Diagram Interchange models. My understanding
is that there is a close relationship to the GMF Runtime Notation used
by Papyrus and UML2 Tools.

Come to the http://www.omg.org/EclipseOMG2012 where one of the authors,
Maged Elaasar, will be providing a presentation related to the the new
specification.

[If you have a non-trivial number of diagrams, I recommend using a QVTo
transformation for migration.]

Regards

Ed Willink
Re: How can I migrate my models created with UML2 Tools to Papyrus? [message #779111 is a reply to message #779103] Sat, 14 January 2012 18:53 Go to previous messageGo to next message
Ricardo1980 Missing name is currently offline Ricardo1980 Missing nameFriend
Messages: 11
Registered: November 2011
Junior Member
Thanks a lot.

It seems very interesting, I didn't know about that Smile
Re: How can I migrate my models created with UML2 Tools to Papyrus? [message #779805 is a reply to message #759341] Mon, 16 January 2012 15:35 Go to previous message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 51
Registered: July 2009
Member
Hi,

Papyrus models are made of two parts:
- the UML models (.uml)
- the graphical models (.notation and .di)

In papyrus, we use eclipse uml2 for the uml models. So, you should be
able to load any uml models build with uml2. This is the case for UML2
tools.

But, there is no tools to migrate the graphical models. So you can't
import your diagram from other tools, unless you write a model
transformation. But this could be very painfull, as the graphical model
use gmf notation.

One way to migrate is to create a new Papyrus model from your old uml
model, and then redraw your diagrams by drag and drop from the
modelExplorer to the diagrams. One tip: you can drag and drop any
elements, including association, inheritance, links, ... When you drop
such element, both side are also dropped in the diagram (if they aren't
already present).

Hope this help,
Cedric

Ricardo1980 a écrit :
> Hello!
>
> How can I migrate my models created with UML2 Tools to Papyrus?
> Have I to do it manually?
>
> Thanks a lot.
>
Previous Topic:Deployment diagram problems
Next Topic:How to add a component to a deployment diagram
Goto Forum:
  


Current Time: Tue Apr 23 10:59:37 GMT 2024

Powered by FUDForum. Page generated in 0.02902 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top