Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to use a Papyrus UML profile as a DSL in Sirius?
How to use a Papyrus UML profile as a DSL in Sirius? [message #1226379] Wed, 01 January 2014 10:34 Go to next message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
Hello everyone,

I've been using Papyrus for several years to develop graphical DSLs through UML profiles. I ran across Sirius some weeks ago and it looks very promising. I've read most of the documentation and watched the tutorial, but I haven't found how can I use a UML profile defined with Papyrus in Sirius. Does it need to be imported somehow as a domain model?

Thank you.
Re: How to use a Papyrus UML profile as a DSL in Sirius? [message #1226636 is a reply to message #1226379] Thu, 02 January 2014 04:18 Go to previous messageGo to next message
Melanie Bats is currently offline Melanie Bats
Messages: 21
Registered: July 2009
Junior Member
Hi Luis,

You just need to define in your representation description, in the Metamodels tab, the UML metamodel URI thanks to the 'from registry' button.

We are developing an UML modeler based on Sirius. You can have a look at the UML Designer source code which is available on github under EPL license:
https://github.com/ObeoNetwork/UML-Modeling/tree/4.0.0_M1

In the uml2.odesign :
https://github.com/ObeoNetwork/UML-Modeling/blob/4.0.0_M1/plugins/org.obeonetwork.dsl.uml2.design/description/uml2.odesign

Line 5, you will find the metamodel declaration :
<metamodel href="platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#/"/>

We also define org.eclipse.uml2.uml as a require bundle in the MANIFEST.MF :
https://github.com/ObeoNetwork/UML-Modeling/blob/4.0.0_M1/plugins/org.obeonetwork.dsl.uml2.design/META-INF/MANIFEST.MF

The UML Designer 4.0.0 M1 version is a pre-release version which works with Sirius 1.0.0 M4. The final 4.0.0 version will be available when Sirius 1.0.0 will be released with the Luna release train. UML Designer bundles and update-site are available : http://www.obeo.fr/download/release/uml/4.0.0_M1/

Regads,
Mélanie
Re: How to use a Papyrus UML profile as a DSL in Sirius? [message #1226699 is a reply to message #1226636] Thu, 02 January 2014 07:44 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
Hi Mélanie, thanks for answering. I can't find a Metamodels tab, neither with the Sirius perspective nor with the Modelling perspective. Could you post a screen capture?

Thanks.
Re: How to use a Papyrus UML profile as a DSL in Sirius? [message #1226721 is a reply to message #1226699] Thu, 02 January 2014 08:48 Go to previous messageGo to next message
Melanie Bats is currently offline Melanie Bats
Messages: 21
Registered: July 2009
Junior Member
Hi Luis,

If you select a diagram description, in the properties view you will find the Metamodels tab : http://bit.ly/1corYIb

Regards,
Mélanie
Re: How to use a Papyrus UML profile as a DSL in Sirius? [message #1227495 is a reply to message #1226721] Sat, 04 January 2014 12:58 Go to previous message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
Thank you Mélanie. It took me a while to figure how to transform a Papyrus model into ecore, but after that I was able to import the profile.
Previous Topic:How can I change the vertical alignment of a label?
Next Topic:How to debug Model Operations
Goto Forum:
  


Current Time: Wed Jul 23 08:05:55 EDT 2014

Powered by FUDForum. Page generated in 0.01643 seconds