Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Documentation on Profile creation
Documentation on Profile creation [message #782475] Mon, 23 January 2012 19:30 Go to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Dear all,

I'm starting to use Papyrus to build a DSL using a UML profile. The only documentation that I have found so far is at the old Papyrus site and is outdated, since at the least the first few steps do not work in Eclipse.

Is there any recent documentation I could follow, tutorials, courses or the like?

Thank you.

Re: Documentation on Profile creation [message #785185 is a reply to message #782475] Sat, 28 January 2012 16:21 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Ok, can then someone experienced with Papyrus please provide a few guidelines on how to develop a profile? Beyond creating a new project I'm not able to do anything else.

Thank you.
Re: Documentation on Profile creation [message #786633 is a reply to message #782475] Mon, 30 January 2012 17:00 Go to previous messageGo to next message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 51
Registered: July 2009
Member
Hi,

Create the profile:
- Create a new Papyrus model
- in the wizard, do "next" until you are on the "Select Language of
the Diagram" page
- Choose "profile", then "next"
- select "uml profile diagram"
- "finish"

Add stereotype:
- select the diagram
- add "stereotype" from the palette, name it MyStereotype.
- add "import metaclass" from the palette, choose "Class" from the
popup window.
- add an "extension" from your stereotype to the imported metaclass.
- Save your profile and accept the options

You have says that you want a stereotype names MyStereotype that can
be applied on uml Classes
Now, you can use your profile in another uml model:
- create a new uml model
- select the root model
- in the property view, select "profile", "profile application", click
on "+"
- choose your new profile
- Now, you can apply your stereotype MyStereotype on your classes.

Hope this help,
Cedric

See also
http://www.eclipse.org/modeling/mdt/papyrus/usersTutorials/resources/TutorialOnPapyrusUSE_d20101001.pdf
slide 45

Luís de Sousa a écrit :
> Dear all,
>
> I'm starting to use Papyrus to build a DSL using a UML profile. The only
> documentation that I have found so far is at
> http://www.papyrusuml.org/scripts/home/publigen/content/templates/show.asp?P=148&L=EN
> and is outdated, since at the least the first few steps do not work in
> Eclipse.
>
> Is there any recent documentation I could follow, tutorials, courses or
> the like?
>
> Thank you.
>
>
Re: Documentation on Profile creation [message #786762 is a reply to message #786633] Mon, 30 January 2012 19:52 Go to previous message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Thank you very much Cedric, I can now create and use profiles with Papyrus. I was following the presentation you linked, but I was certainly doing something wrong, for I couldn't add any elements to a diagram in a profile model.

I think a small step-by-step tutorial, using the images already collected for the presentation, would be very handy for newbies like me.

Best regards and thank you once more.

Previous Topic:papyrus 0.7.4 missing
Next Topic:need to find out how to create own DataTypes the "right" way
Goto Forum:
  


Current Time: Thu Apr 25 13:35:19 GMT 2024

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

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

Back to the top