Documentation on Profile creation [message #782475] |
Mon, 23 January 2012 14:30  |
Eclipse User |
|
|
|
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 #786633 is a reply to message #782475] |
Mon, 30 January 2012 12:00   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.05020 seconds