|
[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 |
William Piers 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 #373406 is a reply to message #372562] |
Wed, 29 July 2009 14:19 |
William Piers 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
>
|
|
|
Powered by
FUDForum. Page generated in 0.01806 seconds