M2M for genmodel [message #893514] |
Wed, 04 July 2012 08:14  |
Eclipse User |
|
|
|
Hi,
I have generated my genmodel out of the Ecore.
The attribute "Label Feature" is set to "name:EString" by default.
But I want it to be another attribute, e.g. "shortName:EString". This would simply imply: change from "name:EString" to "shortName:EString"
Is there a way to do it for all elements using a script ? I don't want to set it by hand because the genmodel has several hundred elements.
Thanks
|
|
|
|
|
Re: M2M for genmodel [message #894489 is a reply to message #894485] |
Mon, 09 July 2012 08:22  |
Eclipse User |
|
|
|
Hi
The MMT home page
http://www.eclipse.org/projects/project.php?id=modeling.mmt lists
available Eclipse M2M tools.
Since your change is very small you want something that facilitates a
copy by default; I think ATL may have this.
Regards
Ed Willink
On 09/07/2012 12:59, Matthias N wrote:
> Ed Willink wrote on Wed, 04 July 2012 08:31
>> Hi
>>
>> A genmodel is a model so of course an M2M is possible.
>>
>> The change is very regular, so I suspect that a simple text editor
>> search and replace might work.
>>
>> But, the genmodel derives the label feature automatically. You might
>> be able to adjust your Ecore model so that genmodel is correct in the
>> first place.
>>
>> Regards
>>
>> Ed Willink
>>
>> On 04/07/2012 13:14, Matthias N wrote:
>> > Hi,
>> >
>> > I have generated my genmodel out of the Ecore.
>> >
>> > The attribute "Label Feature" is set to "name:EString" by default.
>> > But I want it to be another attribute, e.g. "shortName:EString".
>> This > would simply imply: change from "name:EString" to
>> "shortName:EString"
>> >
>> > Is there a way to do it for all elements using a script ? I don't
>> want > to set it by hand because the genmodel has several hundred
>> elements.
>> >
>> > Thanks
>
>
> I really need to change the genmodel. Text search & replace won't work
> either.
> Which technology would you recommend for the M2M transformation ?
|
|
|
Powered by
FUDForum. Page generated in 0.03855 seconds