Reusing viewpoint descriptions [message #1402628] |
Thu, 17 July 2014 04:55  |
Eclipse User |
|
|
|
Hi,
I have created several viewpoint descriptions (.odesign) for serverl ecore models.
Now, I have created a new ecore model which is an umbrella model containing these ecore models.
Is their a way to reuse to viewpoint descriptions created for the different ecore models in order to create diagrams within the supperior umbrella model?
I have seen that there are element for 'Diagram Import' and 'Diagram Extention' but I could not figure out how to use such elements correctly.
Regards,
Marc
[Updated on: Thu, 17 July 2014 05:08] by Moderator
|
|
|
|
|
Re: Reusing viewpoint descriptions [message #1402662 is a reply to message #1402649] |
Thu, 17 July 2014 06:01   |
Eclipse User |
|
|
|
Hello,
Ok I misunderstood, I guess that you are refering to your different ecore metamodels and you have several models in your modeling project corresponding to these metamodels.
The simplest way if you want to reuse a representation description for several kind of model, then in the parent Viewpoint element, you have to list it in the "model file extensions" with a space as separator. However, that implies that in your metamodels the metaclasses (used in your representation description and mappings "Domain class" fields) have to be named the same.
If you have different metaclasses name in different metamodels, you can create a separate odesign, load the original odesign in it, create a representation description (with the same name if you want) and then reuse mapping with "node/container/edge mapping import" elements and rebind them with your metaclasses.
Regads,
Steve
|
|
|
|
Powered by
FUDForum. Page generated in 1.06040 seconds