Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » AM3 » [KM3] Problems with meta-model extension
[KM3] Problems with meta-model extension [message #580108] Fri, 09 July 2010 11:04 Go to next message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
We are making an extension of a meta-model defined in KM3.
In this new extension we want to avoid inheriting some attributes and we don't know how to do it.

We have consulted the documentation and haven't found any solution to do it.
We also tried to redefine these attributes to have other behaviour but don't work.

Could you tell us how to do it?


Best regards
Re: [KM3] Problems with meta-model extension [message #580132 is a reply to message #580108] Fri, 09 July 2010 13:50 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member

Metamodel extension works by adding new elements, not removing elements (i.e., it is from this point of view similar to class inheritance in Java).

Supposing you have metamodel A, and you want metamodel B to extend a part of A and drop the rest. The best solution I can think of right now is to define metamodel C that corresponds to the common parts between A and B. Then A and B may extend C.

Best regards
Previous Topic:[KM3] Problems with meta-model extension
Next Topic:problem on installing new am3
Goto Forum:

Current Time: Wed Oct 21 16:30:50 GMT 2020

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

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

Back to the top