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

Hi Ivano,

The standard interface for the woven models uses the reflective editor provided by EMF.

You can develop your own editor that graphically shows the inherited attributes in all classes, or that have another specific behavior.

AMW defines an extension point (org.eclipse.weaver.wovenPanelID) that enables defining different editors for the woven models. For instance, you could have the standard editor in the left side, and a graphical editor in the right side.

The documentation about how to use this extension point is available in the Developer Guide -> Extension points reference -> org.eclipse.weaver.wovenPanelID.

Regards,

Marcos.


Ivano wrote:
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