Can I create my own metamodels with Papyrus? [message #759344] |
Mon, 28 November 2011 12:42 |
Ricardo1980 Missing name Messages: 11 Registered: November 2011 |
Junior Member |
|
|
Hello!
After reading some slides about Papyrus, I saw that supports UML2 and EMF metamodels. Does that mean that uses MOF and EMF together? or just tries to emulate MOF through EMF?
If I create my own metamodel, let's say a simplified state chart or a requirements graph, can I use Papyrus graphic infrastructure or have I to use GMF directly, which is painful. I read that in slides but it is strange to me.
I don't understand if I have to use uml profiles or what.
Thanks a lot.
[Updated on: Mon, 28 November 2011 12:55] Report message to a moderator
|
|
|
Re: Can I create my own metamodels with Papyrus? [message #760471 is a reply to message #759344] |
Fri, 02 December 2011 13:51 |
Cedric Dumoulin Messages: 51 Registered: July 2009 |
Member |
|
|
Hi,
You can create EMF metamodel (MM) in Papyrus. Simply use class
diagram, classes and associations. You do not need any other infrastructure.
Once your MM is ready, you can create an EMF genmodel, and import the
MM from uml. Also, it is possible to use the ECore profil to have a more
accurate MM.
I do all my EMF MM with Papyrus, even the more complex one.
I use to proceed like this:
- create an empty EMF project
- go to the models directory, and create a new Papyrus model
- create your MM with uml diagramS and classes. You can use several
diagrams in the same model.
- create a new genmodel, from the UML model. Do that in the model
directory
- generate all the EMF plugins from the generated genmodel.
- update your metamodel in Papyrus, do modification if needed
- reload the MM from the genmodel (select the genmodel, right
click->reload). Regenerate plugins if needed.
Hope this help,
Cedric
Ricardo1980 a écrit :
> Hello!
>
> After reading some slides about Papyrus, I saw that supports UML2 and
> EMF metamodels. Does that mean that uses MOF and EMF together? or just
> tries to emulate MOF through EMF?
>
> If I create my own metamodel, let's say a simplified state chart or a
> requirements graph, can I use Papyrus graphic infrastructure or have I
> to use GMF directly, which is painful. I read that in slides but it is
> strange to me.
>
> Thanks a lot.
|
|
|
Powered by
FUDForum. Page generated in 0.02791 seconds