Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF] Implementing Instance Model Inheritance
[EMF] Implementing Instance Model Inheritance [message #988147] Wed, 28 November 2012 18:09
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 150
Registered: February 2012
Senior 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 Mar 28 13:20:20 GMT 2024

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

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

Back to the top