Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » How to generate ATL (ecore) model from ATL file
How to generate ATL (ecore) model from ATL file [message #108660] Fri, 24 July 2009 20:35 Go to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Hi, I'm using latest Eclipse Modeling Galileo and I want to automatically
generate ATL model (ecore) from ATL source file, but I cannot find this
option in ATL perspective that existed in earlier ATL/Eclipse versions
(inject ATL-0.2 file to ATL-0.2 model). Where can I find this option.

btw - I need this because in earlier versions of this transformation (in
Eclipse 3.3 and 3.2), the generated .ecore file follows the ATL file's
structure until it hits a lazy or unique lazy rule, at which point the
file simply ends, leaving it incomplete.

Thanks in advance!
[ATL] Re: How to generate ATL (ecore) model from ATL file [message #350609 is a reply to message #108660] Tue, 28 July 2009 09:25 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hello,

Milan Milanovich a écrit :
> Hi, I'm using latest Eclipse Modeling Galileo and I want to
> automatically generate ATL model (ecore) from ATL source file, but I
> cannot find this option in ATL perspective that existed in earlier
> ATL/Eclipse versions (inject ATL-0.2 file to ATL-0.2 model). Where can I
> find this option.
>

Unfortunately, those popups were provided by AM3 plugins.
Anyway since ATL3.0, you can inject/extract ATL files into EMF models,
programmatically or using ant tasks.
See http://wiki.eclipse.org/ATL/Developer_Guide#Parser for more details.

Best regards,

William

> btw - I need this because in earlier versions of this transformation (in
> Eclipse 3.3 and 3.2), the generated .ecore file follows the ATL file's
> structure until it hits a lazy or unique lazy rule, at which point the
> file simply ends, leaving it incomplete.
>
> Thanks in advance!
>
Re: [ATL] Re: How to generate ATL (ecore) model from ATL file [message #372562 is a reply to message #350609] Wed, 29 July 2009 09:50 Go to previous messageGo to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
William Piers wrote:

> Hello,

> Milan Milanovich a ï¿œcrit :
>> Hi, I'm using latest Eclipse Modeling Galileo and I want to
>> automatically generate ATL model (ecore) from ATL source file, but I
>> cannot find this option in ATL perspective that existed in earlier
>> ATL/Eclipse versions (inject ATL-0.2 file to ATL-0.2 model). Where can I
>> find this option.
>>

> Unfortunately, those popups were provided by AM3 plugins.
> Anyway since ATL3.0, you can inject/extract ATL files into EMF models,
> programmatically or using ant tasks.
> See http://wiki.eclipse.org/ATL/Developer_Guide#Parser for more details.

O.K. Thanks. Can you give me an example of ant tasks that do this job?

--
Regards, Milan Milanovic
Re: [ATL] Re: How to generate ATL (ecore) model from ATL file [message #373406 is a reply to message #372562] Wed, 29 July 2009 14:19 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
There is a short sample here (injection):
http://wiki.eclipse.org/ATL/User_Guide#Parameters_specified_ as_nested_elements

The extraction is quite similar, as injector/extractor have the same
name (ATL).

Best regards,

William

Milan Milanovich a écrit :
> William Piers wrote:
>
>> Hello,
>
>> Milan Milanovich a ï¿œcrit :
>>> Hi, I'm using latest Eclipse Modeling Galileo and I want to
>>> automatically generate ATL model (ecore) from ATL source file, but I
>>> cannot find this option in ATL perspective that existed in earlier
>>> ATL/Eclipse versions (inject ATL-0.2 file to ATL-0.2 model). Where
>>> can I find this option.
>>>
>
>> Unfortunately, those popups were provided by AM3 plugins.
>> Anyway since ATL3.0, you can inject/extract ATL files into EMF models,
>> programmatically or using ant tasks.
>> See http://wiki.eclipse.org/ATL/Developer_Guide#Parser for more details.
>
> O.K. Thanks. Can you give me an example of ant tasks that do this job?
>
> --
> Regards, Milan Milanovic
>
Previous Topic:[QVTO] using QVTO on dynamic EMF models
Next Topic:[QVTO] Ant tasks
Goto Forum:
  


Current Time: Thu Apr 18 11:35:22 GMT 2024

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

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

Back to the top