Re: [ATL] Model Copy/Clone [message #374169] |
Wed, 01 October 2008 12:43  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040603040800030201000007
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Alexandre,
That's a good question but I don't know :-(. I hope AM3 team could give
you more details.
Another solution (but a little bit painful) will be to use the last
ATL-AM3 build available from here:
http://www.eclipse.org/m2m/atl/download/index-old.php to create your
copier transformation.
Regards,
Freddy.
Alexandre Torres a
|
|
|
|
Re: [ATL] Model Copy/Clone [message #374171 is a reply to message #374170] |
Wed, 01 October 2008 15:47   |
Eclipse User |
|
|
|
The error persisted. I think I was able to fix it, commenting the "name"
feature of VariableExp:
...
fv : ATL!VariableExp (
--name <- 's',
referredVariable <- ipe
),
...
v : distinct ATL!NavigationOrAttributeCallExp foreach(sf in sfs) (
name <- sf.name,
source <- src
),
src : distinct ATL!VariableExp foreach(sf in sfs) (
--name <- 's',
referredVariable <- ipe
)
...
The transformation now works with the Am3-Atl bundle. I could them use the
"extract atl model to file" menu option to generate the atl file, and it
worked.
And the best part is, it works on the new ATL, so I need the old bundle
just to generate the clone maker transformation.
After that I tried the clone with a superimposed transformation and it
worked.
Looks like everything is going to work now!
Thanks for the support.
I suggest someone take a note to update the Zoo with this fix, if it's a
bug (I can file a bugzila)
Alexandre
|
|
|
Re: [ATL] Model Copy/Clone [message #374172 is a reply to message #374171] |
Wed, 01 October 2008 18:14  |
Eclipse User |
|
|
|
Originally posted by: freddy.allilaire.univ-nantes.fr
This is a multi-part message in MIME format.
--------------060303060508050000080508
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
I don't know if it is a bug (maybe an update in ATL metamodel). If you
could open a bugzilla entry, this will be great to track this problem.
Thanks,
Freddy.
Alexandre Torres a
|
|
|
Re: [ATL] Model Copy/Clone [message #562973 is a reply to message #374169] |
Wed, 01 October 2008 13:40  |
Eclipse User |
|
|
|
Thanks Freddy.
I'm trying to run it with an older eclipse that I have here with AM3. But
it gave me some weird erros like:
"feature name does not exist on ATL!VariableExp"
but I can't trust my old messed up distro :)
Now I'm going to try your link. If it works, I can still use it just to
generate the "atl copier" and then use it on the eclipse 3.4 distro (i
hope).
going to post the results.
Best regards,
Alexandre
|
|
|
Re: [ATL] Model Copy/Clone [message #562994 is a reply to message #374170] |
Wed, 01 October 2008 15:47  |
Eclipse User |
|
|
|
The error persisted. I think I was able to fix it, commenting the "name"
feature of VariableExp:
...
fv : ATL!VariableExp (
--name <- 's',
referredVariable <- ipe
),
...
v : distinct ATL!NavigationOrAttributeCallExp foreach(sf in sfs) (
name <- sf.name,
source <- src
),
src : distinct ATL!VariableExp foreach(sf in sfs) (
--name <- 's',
referredVariable <- ipe
)
...
The transformation now works with the Am3-Atl bundle. I could them use the
"extract atl model to file" menu option to generate the atl file, and it
worked.
And the best part is, it works on the new ATL, so I need the old bundle
just to generate the clone maker transformation.
After that I tried the clone with a superimposed transformation and it
worked.
Looks like everything is going to work now!
Thanks for the support.
I suggest someone take a note to update the Zoo with this fix, if it's a
bug (I can file a bugzila)
Alexandre
|
|
|
Re: [ATL] Model Copy/Clone [message #563023 is a reply to message #374171] |
Wed, 01 October 2008 18:14  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------060303060508050000080508
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
I don't know if it is a bug (maybe an update in ATL metamodel). If you
could open a bugzilla entry, this will be great to track this problem.
Thanks,
Freddy.
Alexandre Torres a
|
|
|
Powered by
FUDForum. Page generated in 0.04930 seconds