[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: names in weaving model

Hello,

this is because the standard behavior of the weaving panel is to select the property "name" and to show it in the tree. If there is no "name" property, it shows the ID of the selected element.

I suppose your metamodel does not have a property "name", but something like "nombre" right?

The Ecore editor (in the left) has a different behavior, I think it first searches for a "name" property, and if there is not such a property, it takes the first one.

If you want to show another property of you model in the editor, you can create and extension of a item provider.

To do that, you can for example copy the class "org.eclipse.weaver.extension.providers.WElementItemProvider", and change the code of "getText(Object object)", to show the desired property.


Regards,

Marcos.

ps.: did you manage to execute the multiple source pattern transformations?


Kelly Garcés wrote:
Hello!

I´m weaving two model. Right model is conform to metacupi2 metamodel and Left model is conform to arquitectura metamodel.

I'm using mw_base_ext.ecore. When i´m weaving models : 1) i create a Link 2) add LeftLink and 3) RightLink

That´s ok, but when i put the element from metacupi2 model in LeftLink i don´t see its name, only a strange string (//@elemento.0Id). But when i do the same with arquitectura model it´s ok

Should i use other weaving metamodel?
Should i extends weaving panels? ... Where could i find tutoriales about this?


PD: I attached the screenshot.

Thanks for your answers,


Kelly.