Here the "content" relation really looks like a package/class containment relation; is there a way I can map it?
That is: when I am creating a model from this meta-model, if I put a "Table" (ie: a class) in a "Database" (ie: a package), which will correctly instantiate UML attributes (that is Packaged Elements and so on) is it possible to say to Papyrus to instantiate my "base" and "tables" attributes as well?
Florian Noyrit Messages: 15 Registered: February 2016 Location: Grenoble, France
Yes, you can do that using the ElementTypeConfiguration framework.
You'll find the documentation of this framework in the Eclipse's Help Contents (Papyrus Guide/Toolsmith Guide/elementTypeConfigurations Framework).
You would basically add some advices to set this stereotype values on the creation, container change, ....
Thank you for your answer; I dove into the documentation and it seems that something is doable.
However, I have trouble figuring things out; can I define a behavior in the .elementtypesconfiguration Do I have to do it in some classes?
Besides, I cannot find an explicit method for using this framework, would you have some guidelines by any chance?
Actually the best thing to do would be to give us a proper example.
Starting from my initial profile, say I want to automatically set the "base" attribute of a table and the "tables" attribute of a base whenever I create a Table (a class) in a Base (a package), how would I do that ?