Skip to main content



      Home
Home » Modeling » EMF » two (or more) models with a common ancestor
two (or more) models with a common ancestor [message #1078619] Sat, 03 August 2013 04:51 Go to next message
Eclipse UserFriend
Hi, I have several (semi) independent models where all my EClasses are
extension of a common ancestor I use for graphic rendering.

Currently this ancestor is duplicated in all models, but that is a
nuisance because I have to adapt my rendering engine and a real PITA
when I have to use multiple models in the same application.

Is there some way to convince EMF to derive its EClasses from an
"external" common ancestor?
Note the ancestor should be part of model itself (i.e.: attributes
contained in it should be part of model), so overriding EClass itself
(if such a thing is at all possible) would not work (I think).

TiA
Mauro
Re: two (or more) models with a common ancestor [message #1078661 is a reply to message #1078619] Sat, 03 August 2013 06:20 Go to previous message
Eclipse UserFriend
Mauro,

Comments below.

On 03/08/2013 10:51 AM, Mauro Candarelli wrote:
> Hi, I have several (semi) independent models where all my EClasses are
> extension of a common ancestor I use for graphic rendering.
>
> Currently this ancestor is duplicated in all models, but that is a
> nuisance because I have to adapt my rendering engine and a real PITA
> when I have to use multiple models in the same application.
>
> Is there some way to convince EMF to derive its EClasses from an
> "external" common ancestor?
You can put the reusable EClass it its own model (EPackage) and have all
the other models refer to it in their eSuperTypes...
> Note the ancestor should be part of model itself (i.e.: attributes
> contained in it should be part of model), so overriding EClass itself
> (if such a thing is at all possible) would not work (I think).
>
> TiA
> Mauro
Previous Topic:[Teneo] table_per_class and id generation tips
Next Topic:Drag& drop elements between two models
Goto Forum:
  


Current Time: Wed Jul 23 18:35:41 EDT 2025

Powered by FUDForum. Page generated in 0.04223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top