Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF] Implementing Instance Model Inheritance
[EMF] Implementing Instance Model Inheritance [message #988170] Wed, 28 November 2012 13:09
Leonid Ripeynih is currently offline Leonid Ripeynih
Messages: 91
Registered: February 2012
Member
Hi all!

I'm struggling on implementing instance model inheritance in EMF. Suppose, there is two instances of a given meta-model. One have some pointer to another (in 'parent' attribute). When editing, I only need to modify 'child' model attributes, but 'parent' model attributes should be accessible 'in scope', as child model can reference parent model elements. Another thing, is that models are 'merged' together, like java classes, so it's one model extending another. For example, if parent model looks like:


<root>
<element name="a"/>
</root>


and another is:


<root parent="parent">
<element name="b">
</root>


Semantically they're:


<root parent="parent">
<element name="a"/>
<element name="b">
</root>


So, what's the rigt way of implement instance model inheritance? Should it be some kind of extension of ResouceSet, or should it be a custom AdapterFactory, or is there (maybe?) some frameworks or technologies which can help me achive it?
Previous Topic:[EMF] Implementing Instance Model Inheritance
Next Topic:[EMF] Implementing Instance Model Inheritance
Goto Forum:
  


Current Time: Thu Jul 31 21:47:54 EDT 2014

Powered by FUDForum. Page generated in 0.01679 seconds