[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.gmt.amw] Re: Question about Keys2Nested_AMW2ATL AMW example

hi,


Did you generate the ATL model or did you take the file from the example? If you generated it, can you send it to me? (the error log as well)


Marcos.


Didier Delanote wrote:
Hello,

the modifications are already there in the project I downloaded, unfortunately, so it should be something else...

Didier


Marcos Didonet Del Fabro schreef:
hi.

Yes I think. You should do the same modifications explained in this case, because the example didn't change.


Marcos.

Didier Delanote wrote:
Hi,

ok that's working, now I get this menu item indeed, but the problem is that after extracting the generated ATL file doesn't have any content (it's a blank file). The "Problems" pane says this:

Severity Description Resource 2 unexpected token: null ATL-model.atl In Folder LocationCreation Time Id
Keys2Nested_AMW2ATL/output_atl line 1 5 oktober 2006 16:00:41 0


Could this be due to some versioning problem like in the case below?

Regards,
Didier


Marcos Didonet Del Fabro schreef:
Hello,

these menus are part of the AM3 plugins. To have this menus available, it is necessary to select the "AM3 view", and you must be in the "AM3 Resource Navigator", not in the "Package Explorer".

Regards,

Marcos.

Didier Delanote wrote:
Hi,

I'm also trying to run this example, and I'm also experiencing some problems trying to extract the ATL code from the ATL-ecore model. Using the weaving model that comes with the example, and launching ATL, I get the ATL-ecore model as output, but the problem is that right-clicking I don't get an "Extract ATL-0.2 model into ATL-0.2 file" option. The ones I get are "Extract Ecore into KM3" and vice versa. What's going wrong?

Also, repeating Frank it would be interesting to know where the code that does this extracting is located.

Thanks,
Didier


Marcos Didonet Del Fabro schreef:
Hi Frank,

I think I found the problem. Actually it is a version problem with the ATL metamodel. When this example was done I did not take into account the 'refining mode' and the possibility of having abstract ATL rules. Now there are two mandatory attributes 'isAbstract' and 'isRefining'.

For the moment, you can modify the 'AMWtoATL.atl' transformation by doing the following:

- in the rule  'rule Module', it should be like this:

atl : ATLMeta!Module (
    isRefining <- false,   -- add this line

-in the rule 'rule Root', add two bindings:

atl : ATLMeta!MatchedRule (
    isAbstract <- false,   -- new
    isRefining <- false,   -- new

- in the rule 'rule ElementLink',
add the same two bindings.

atl : ATLMeta!MatchedRule (
    isAbstract <- false,   -- new
    isRefining <- false,   -- new


I will put the the transformation with these modifications in the web site.


Regards,

Marcos.



Frank Grimm wrote:
Hi,

the ATL-model.ecore generated by executing AMWtoATL.atl holds many elements
(it is attached to this posting). So it looks like transforming the weaving
model into the ATL model works fine, but executing the generated
ATL-model.ecore does not properly work ...


Cheers,
Frank.

Marcos Didonet Del Fabro wrote:

Hi,

Can you look into the ATL-model.ecore to see if it has any elements?
This way we can verify if the problem is when transforming the weaving
model into the ATL model or when extracting the ATL-model.ecore into .atl.


Regards,
Marcos.

Frank Grimm wrote:
Dear newsgroup,

I tried the Keys2Nested_AMW2ATL model weaving example and following the
instructions given on the example's documentation website


(http://www.eclipse.org/gmt/amw/examples/Keys2Nested_AMW2ATL/Keys2Nested_AMW2ATL_doc.php)

I could execute the first ATL programme, i.e., AMW2toTL.atl to create the
transformation model output_atl/ATL-model.ecore. But when I try to
"Extract ATL-0.2 model into ATL-0.2 file" from ATL-model.ecore, the
generated output_atl/ATL-model.atl's content is just


module ModelTrans;
create OUT : XML

The rest of the file (as inculded in the example zip) is missing. Neither
the eclipse log file nor the consolse show any error messages.


I'm using a "clean" Eclipse 3.1.1 installation with EMF 2.1.1, ADT, AMW,
and AM3. The ADT version used is 20060113, AMW version is 20060126, and
AM3 version is 20060117 (all versions were downloaded from the Eclipse
GMT website).


What am I doing wrong? Could you please give some hints which part of the
source code is performing the extraction of an ATL model into a ATL file?


Many thanks in advance,
Frank.

(Please remove "nospam-" in email address to directly reply via email.)

------------------------------------------------------------------------