|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
Registered: July 2009
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
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
- 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,
Ricardo1980 a écrit :
> 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.01356 seconds