[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.gmt.amw] Re: AMW examples (continued)

:)

The menu "Weaving element" is available when right-clicking over a "Left" or "Right" element.

Marcos.

Didier Delanote wrote:
What magic... the drag-and-drop way works. Where can I find the "Weaving element" menu though? Thanks.

Regards,
Didier

Marcos Didonet Del Fabro schreef:
Hello,


In a weaving model, the left and right elements (such as "EAttribute ISBN" and "EAttribute BookID") are represented by "WElementRef"s. They contain a text field with an unique ID for each linked element.


However, the 'WElementRef' elements are created only when used for the first time.
They may be created in two ways:


- when dragging the elements from the left and right metamodels and dropping them over the "Left" or "Right" elements.
- when using the menu "Weaving element" and choosing the linked elements.


So that's why you don't see them in the property view. You should create them using one of these two methods.

This avoids having a lot of 'WElementRef' that are not used, for example when weaving large metamodels or models.

After they are created for the first time, they will be available in the property view. This is the case of the examples.


Regards,

Marcos.



Didier Delanote wrote:
Hi all,

I've tried to set up the examples in my own configuration, of which the Keys2Nested_AMW2ATL example is the most relevant one to me. Running the example works fine, but now I wanted to define my own weaving model. I've created a weaving model between the two metamodels, and one between two models from the examples folder conforming to the right metamodel.

The problem is I can add elements such as "Equals" to the weaving model, and give them children such as "Left" and "Right", but can't connect these elements to model elements of the left and right models, such as "EAttribute ISBN" and "EAttribute BookID". The "Element" combobox from the "Properties" window that should allow me to do this, pops up blank, containing no elements to choose from. In a custom defined example this turns out the same way.

If I create a weaving model from the "FK2Nested_AMW.ecore" file, everything works fine and the "Properties" window pops up the appropriate elements.

Could anyone tell me what's going wrong?

Regards,
Didier