| [news.eclipse.modeling.gmt.amw] Re: [ATL] Injection problem in qATL |
I hope I will not bother you with this issues!
Regards, Ivano
Marcos Didonet Del Fabro wrote:
Hi Ivano,
the problem was that the AMW model handler did not have a modelLoader associated with it, thus it could not load the ebnf2 injector.
I changed the code by associating an EMF model loader with the AMW model handler. This code will be refactored later.
I tested here with these modifications and it worked well. You can check out the amw4atl plug-in from the CVS to verify if it works for you.
Regards,
Marcos.
Ivano wrote:Hi Marcos, would you try to inject ATL code as I did (unsuccesfully :/ )?
It is a very important feature of my transformations and It still does not work...
Regard, Ivano
ivano wrote:
Hi Marcos, I have just tried the modified simpleATL2ATL transformation outside AMW and it all worked fine.
I hope it is only a configuration issue, I think that AMW does not find ebnf injector, but it is only a hypothesis...
Regards, Ivano
Marcos Didonet Del Fabro wrote:
Hi Ivano,
Did you try to execute the transformation using an ATL launch configuration, ie, outside from the plug-in?
You can do that by copying the transformation into your workspace and setting up your input and output models as it is done for other ATL transformations.
This would help us to verify if the problem comes from the AMW calls to the ATL transformations or if it is a more general problem.
Regards,
Marcos.
ivano wrote:Hi all, I have edited the source HOT transformation SimpleAtl2ATL from the plug-in qATL to graphically develope ATL transformations.
All works fine, but if I try to inject something I get NullPointer Exceptions.
For example I tried to inject a simple condition into every rule:
atl.filter <- 'true'.inject('OUT', 'ebnf2', 'ATL-oclExpression');
Does anyone know why I cannot use injection direclty from AMW?
Regards, Ivano