Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL to ECore
ATL to ECore [message #106922] Fri, 19 June 2009 09:12 Go to next message
Kyle Sakai is currently offline Kyle SakaiFriend
Messages: 4
Registered: July 2009
Junior Member
Hi

I need to take .atl files which describe transformations and derive an
equivalent .ecore file that is the ECore representation of the file in
XMI. I've tried searching everywhere and the only solution I've stumbled
across is the AM3 Injector. This would be fine except I can't seem to
install it for Eclipse 3.4 no matter what I try. I seem to even get errors
telling me it's missing deprecated versions of ATL.
Are there other solutions to get the ECORE-XMI of an ATL transformation or
even simply ECORE?
If not, can someone perhaps help bundle together the necessary
dependencies to use the AM3 plugin? I've been reading the instructions
over as well as other users' messages about problems and still do not have
a solution.
Thanks.
Re: ATL to ECore [message #106951 is a reply to message #106922] Fri, 19 June 2009 11:57 Go to previous messageGo to next message
Kyle Sakai is currently offline Kyle SakaiFriend
Messages: 4
Registered: July 2009
Junior Member
Sorry, I made a mistake. The files I need are .ecore files which are XMI
representations of the ATL file.

e.g. "
<elements xsi:type="atl:Helper" location="22:1-24:70">
<definition location="22:8-24:69">
<feature xsi:type="ocl:Operation" location="22:28-24:69"
name="firstCharToUpper">
..."

Thanks.
Re: ATL to ECore [message #106963 is a reply to message #106922] Fri, 19 June 2009 14:04 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Kyle,

If you can use ATL 3.0 with you Eclipse 3.4, this post
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg04255.html
can help you.

Kyle Sakai a écrit :
> Hi
>
> I need to take .atl files which describe transformations and derive an
> equivalent .ecore file that is the ECore representation of the file in
> XMI. I've tried searching everywhere and the only solution I've stumbled
> across is the AM3 Injector. This would be fine except I can't seem to
> install it for Eclipse 3.4 no matter what I try. I seem to even get
> errors telling me it's missing deprecated versions of ATL.
> Are there other solutions to get the ECORE-XMI of an ATL transformation
> or even simply ECORE?
> If not, can someone perhaps help bundle together the necessary
> dependencies to use the AM3 plugin? I've been reading the instructions
> over as well as other users' messages about problems and still do not
> have a solution.
> Thanks.
>
Re: ATL to ECore [message #107575 is a reply to message #106963] Tue, 30 June 2009 16:26 Go to previous messageGo to next message
Kyle Sakai is currently offline Kyle SakaiFriend
Messages: 4
Registered: July 2009
Junior Member
Thanks a lot for the suggestion!
I'm currently having trouble getting ATL 3.0 to run in Eclipse as a
plug-in, so I'm attempting to perform this extraction via java code. I'm
writing code in Eclipse referencing the plugin JARs as externals in my
build path.
From reading the code, I assume I would make use of the AtlParser class to
extract the source. The method takes in an IModel however. I'm trying to
locate the appropriate method of loading the IModel from filespace but I
don't see anything too obvious.
Am I on the right path and if so, can someone drop a hint as to how I
would load my .atl transformation file? Thanks.
Re: ATL to ECore [message #107614 is a reply to message #107575] Tue, 30 June 2009 18:37 Go to previous message
Kyle Sakai is currently offline Kyle SakaiFriend
Messages: 4
Registered: July 2009
Junior Member
I think I'm on the right track with the IInjector class.
http://www.eclipse.org/newsportal/article.php?id=4413&gr oup=eclipse.modeling.m2m#4413
I've followed the code provided here and got stuck in the same place as
Miguel where the VM doesn't seem to be located via
CoreService.getLauncher(). Any ideas as to why or how to resolve this?
Thanks.
Previous Topic:[QVTO] adding new message to sequence diagrams
Next Topic:QVT: command line execution
Goto Forum:
  


Current Time: Wed Feb 05 16:59:30 GMT 2025

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

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

Back to the top