Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » AM3 » Re: [ATL] Model Copy/Clone
Re: [ATL] Model Copy/Clone [message #374169] Wed, 01 October 2008 16:43 Go to next message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
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 #374170 is a reply to message #374169] Wed, 01 October 2008 17:40 Go to previous messageGo to next message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
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 #374171 is a reply to message #374170] Wed, 01 October 2008 19:47 Go to previous messageGo to next message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
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 22:14 Go to previous message
Eclipse UserFriend
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 17:40 Go to previous message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
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 19:47 Go to previous message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
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 22:14 Go to previous message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
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
Previous Topic:Re: [ATL] Model Copy/Clone
Next Topic:Re: ATL projectors
Goto Forum:
  


Current Time: Thu Dec 18 23:22:16 GMT 2014

Powered by FUDForum. Page generated in 0.04396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software