[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] [amw] how to handle hierarchy in metamodel

Hi all, I have a question about how AMW handles the supertype relationship between the elements of metamodels(in ecore).

I will explain my problem using the km3 notation:

for example I have the following source metamodel:


package leftMetamodel { class A { attribute name : String; } class B extends A { attribute address : String; } }

When I create the weaving model, I can not link the attributes inherited by the class B, graphically:

leftMetamodel             |                  |
   |-- A                 |                  |
   |   |-- name          | weaving links    | right metamodel
   |-- B                 |                  |
       |-- address       |                  |

In other words, for each element of the metamodel I can not see the inherited attributes...

My idea instead is to be able to link EACH attribute of the element B, graphically:


leftMetamodel | |
|-- A | |
| |-- name | weaving links | right metamodel
|-- B | | |-- name | |
|-- address | |



How can I do this? Is it a limitation/assumption of the engine of AMW?

Regards, Ivano