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 #988170] Wed, 28 November 2012 18:09
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 148
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:

<element name="a"/>

and another is:

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

Semantically they're:

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

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: Tue Jun 19 16:36:32 GMT 2018

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

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

Back to the top