Skip to main content



      Home
Home » Modeling » Papyrus » Documentation on Profile creation
Documentation on Profile creation [message #782475] Mon, 23 January 2012 14:30 Go to next message
Eclipse UserFriend
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 11:21 Go to previous messageGo to next message
Eclipse UserFriend
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 12:00 Go to previous messageGo to next message
Eclipse UserFriend
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 14:52 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 14:46:18 EDT 2025

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

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

Back to the top