Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 13 13:08:56 EDT 2025

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

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

Back to the top