|
|
|
Re: [ATL] One target model and more than one target metamodels [message #545995 is a reply to message #545910] |
Fri, 09 July 2010 20:16 |
Olivier Moises Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hi Vincent,
Thx for your reply.
Unfortunately, the metamodels are already used in other applications and cannot be changed. They are coming from wazaabi project which makes it possible to describe UIs using live EMF models.
I just want to transform EClass into a UI where EAttribute will be transformed into Text fields etc...
I succeeded to make a proof of concept using QVTo and now I would like to make the same operation using ATL.
Olivier
Vincent MAHE wrote on Fri, 09 July 2010 10:21 | Le 09/07/2010 16:00, Olivier Moises a écrit :
> Hi All,
>
>
> I am newbie in ATL and my problem is probably simple to solve :
> I would like to write a rule where I use objects coming from more than
> one EMF package.
>
> here is my example :
>
> rule r1 {
> from s : ECORE!EPackage
> to t : WIDGETS!Composite (
> children <- WIDGETS!Text,
> layout <- LAYOUTS!RowLayout
> )
> }
>
> Without the layout, it works well, but neither the editor nor the engine
> accepts the LAYOUTS metamodel.
> My usecase requires only one target model and one source model.
So why having two metamodels for one target model?
May be your target metamodel (to be defined) could inherit from both
WIDGETS and LAYOUTS?
>
> Is it a way to do it ?
>
> Thanks by advance,
>
> Olivier Moises
--
Cordialement
Vincent MAHÉ
Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05446 seconds