[ATL] Developing a plugin which executes ATL transformations [message #47861] |
Thu, 21 June 2007 05:12  |
Eclipse User |
|
|
|
Hello,
I am new in developing Eclipse plugins. I have defined several ATL
transformations and I would like to create a Eclipse plugin which executes
the sequence of transformations automatically. I think that I need ATL
classes to call those defined transformations.
Does anybody know what classes I need? Has anybody tried to develop such
kind of plugin?
Thanks in advance.
Bea
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [ATL] Developing a plugin which executes ATL transformations [message #48758 is a reply to message #48731] |
Mon, 25 June 2007 06:31   |
Eclipse User |
|
|
|
Originally posted by: quentin.glineur.obeo.fr
Currently, I am using:
- Eclipse Version: 3.2.2,
- ATL 1.0.7
- AM3 1.0.0
- and UML2 2.0.3
from http://www.eclipse.org/m2m/atl/download/.
But considering your problem, I don't think this will help you as the
version I use is pretty similar to the bundle.
You can find the ATLBundle-20060501 at
http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle-20060501.zip
Quentin
Bea a écrit :
> I have seen in the web that some people use ATLBundle-20060501 but I can't
> find it. Doues anybody know where I can find it?
>
>
>
>
>
> "Bea" <beaperez@unizar.es> escribió en el mensaje
> news:f5nvt1$qs2$1@build.eclipse.org...
>> Hi,
>> thank you again but it doesn't work yet. I think that the problem is the
>> plugin. I have tried with the pack
>> http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle_20070217.zip
>> and with this version, the metamodel is loaded (then, the am3.loadmodel
>> works) but I can't use it because all my models are created using UML2
>> 1.0.0 and this pack is for Eclipse 3.2 and UML2 2.0.0. Could you tell me
>> what version of ATL and AM3 do you use, and where can I find it?
>>
>> Thank you again in advance
>> Bea
>>
>>
>> "Quentin Glineur" <quentin.glineur@obeo.fr> escribió en el mensaje
>> news:f5nu74$n1i$1@build.eclipse.org...
>>> Then, I am not sure but you may try to use this form for the
>>> am3.loadModel :
>>>
>>> <am3.loadModel name="UML2" metamodel="MOF"
>>> nsUri="http://www.eclipse.org/uml2/1.0.0/UML" />
>>>
>>> This is the way I load model registered by an uri.
>>>
>>> Bea a écrit :
>>>> Hi,
>>>> thank you for your help, but I have already tried it, but it doesn't
>>>> work. I don't know what to do then, any idea?
>>>>
>>>>
>>>> "Quentin Glineur" <quentin.glineur@obeo.fr> escribió en el mensaje
>>>> news:f5nrmf$gp2$1@build.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> I think your problem comes from the way you launch the ant build :
>>>>>
>>>>> Try to configure the launch as follow :
>>>>> -right click the ant file: run as...
>>>>> -under the refresh tab select refresh the entire workspace
>>>>> -under the jre tab select "run in the same jre as the workspace"
>>>>>
>>>>> Regards,
>>>>>
>>>>> Quentin
>>>>>
>>>>>
>>>>> Bea a écrit :
>>>>>> I think that the problem is that eclipse doesn't find the
>>>>>> org.eclipse.gmt.am3.tools.ant_1.0.0.20070619.jar. I have tried with
>>>>>> right click on the build.xml and selecting the second Ant run. In the
>>>>>> classpath section I have added that .jar but it doesn't work.
>>>>>>
>>>>>>
>>>>>>
>>>>>> "Bea" <beaperez@unizar.es> escribió en el mensaje
>>>>>> news:f5g94g$qv7$1@build.eclipse.org...
>>>>>>> Hello again
>>>>>>> I have problems with am3.loadmodel sentence. I get the error "Ant
>>>>>>> could not find the task or a class this task relies upon.".
>>>>>>> In my build.xml file I have:
>>>>>>>
>>>>>>> <am3.loadModel modelHandler="EMF" name="UML2" metamodel="MOF"
>>>>>>> path="uri:http://www.eclipse.org/uml2/1.0.0/UML"/>
>>>>>>>
>>>>>>> I have the plugin org.eclipse.gmt.am3.tools.ant installed but I
>>>>>>> thinnk that it doesn't work Any idea?
>>>>>>> Thank you.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "urs zeidler" <ich@urszeidler.de> escribió en el mensaje
>>>>>>> news:f5eb34$3jo$1@build.eclipse.org...
>>>>>>>> Bea schrieb:
>>>>>>>>> I use MOFScript for model to text transformations and ATL for model
>>>>>>>>> to model transformations. So I would like to create a plugin which
>>>>>>>>> execute the defined transformations in the order I want.
>>>>>>>>> Do you know how I can invoke an ANT script?
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>> You can start ANT like an other process :
>>>>>>>>
>>>>>>>> Process process = Runtime.getRuntime().exec(cmd);
>>>>>>>>
>>>>>>>>
>>>>>>>> or with the launcher :
>>>>>>>> org.apache.tools.ant.launch.Launcher
>>>>>>>>
>>>>>>>> see ANT manual
>>>>>>>> http://ant.apache.org/manual/index.html
>>>>>>>>
>>>>>>>> greetings, urs.
>>
>
>
|
|
|
|
Re: [ATL] Developing a plugin which executes ATL transformations [message #48815 is a reply to message #48786] |
Mon, 25 June 2007 06:57   |
Eclipse User |
|
|
|
Originally posted by: quentin.glineur.obeo.fr
Bea a écrit :
> Hi,
> Thank you, that works!!!
Great !
Although I have other problems, it works.
Can you please tell what you have changed to make it work ?
Regards,
Quentin
All
> models are loaded but when the transformation is running I get the error:
>
> [am3.atl] Executing ATL transformation
> /Plugin/ATLFiles/First/transformation.asm
>
> [am3.atl] ****** BEGIN Stack Trace
>
> [am3.atl] message: ERROR: OclUndefined has no property
>
>
>
>
> "Quentin Glineur" <quentin.glineur@obeo.fr> escribió en el mensaje
> news:f5o5h7$i4b$1@build.eclipse.org...
>> Currently, I am using:
>> - Eclipse Version: 3.2.2,
>> - ATL 1.0.7
>> - AM3 1.0.0
>> - and UML2 2.0.3
>> from http://www.eclipse.org/m2m/atl/download/.
>> But considering your problem, I don't think this will help you as the
>> version I use is pretty similar to the bundle.
>>
>> You can find the ATLBundle-20060501 at
>> http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle-20060501.zip
>>
>> Quentin
>>
>>
>> Bea a écrit :
>>> I have seen in the web that some people use ATLBundle-20060501 but I
>>> can't find it. Doues anybody know where I can find it?
>>>
>>>
>>>
>>>
>>>
>>> "Bea" <beaperez@unizar.es> escribió en el mensaje
>>> news:f5nvt1$qs2$1@build.eclipse.org...
>>>> Hi,
>>>> thank you again but it doesn't work yet. I think that the problem is the
>>>> plugin. I have tried with the pack
>>>> http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle_20070217.zip
>>>> and with this version, the metamodel is loaded (then, the am3.loadmodel
>>>> works) but I can't use it because all my models are created using UML2
>>>> 1.0.0 and this pack is for Eclipse 3.2 and UML2 2.0.0. Could you tell me
>>>> what version of ATL and AM3 do you use, and where can I find it?
>>>>
>>>> Thank you again in advance
>>>> Bea
>>>>
>>>>
>>>> "Quentin Glineur" <quentin.glineur@obeo.fr> escribió en el mensaje
>>>> news:f5nu74$n1i$1@build.eclipse.org...
>>>>> Then, I am not sure but you may try to use this form for the
>>>>> am3.loadModel :
>>>>>
>>>>> <am3.loadModel name="UML2" metamodel="MOF"
>>>>> nsUri="http://www.eclipse.org/uml2/1.0.0/UML" />
>>>>>
>>>>> This is the way I load model registered by an uri.
>>>>>
>>>>> Bea a écrit :
>>>>>> Hi,
>>>>>> thank you for your help, but I have already tried it, but it doesn't
>>>>>> work. I don't know what to do then, any idea?
>>>>>>
>>>>>>
>>>>>> "Quentin Glineur" <quentin.glineur@obeo.fr> escribió en el mensaje
>>>>>> news:f5nrmf$gp2$1@build.eclipse.org...
>>>>>>> Hi,
>>>>>>>
>>>>>>> I think your problem comes from the way you launch the ant build :
>>>>>>>
>>>>>>> Try to configure the launch as follow :
>>>>>>> -right click the ant file: run as...
>>>>>>> -under the refresh tab select refresh the entire workspace
>>>>>>> -under the jre tab select "run in the same jre as the workspace"
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Quentin
>>>>>>>
>>>>>>>
>>>>>>> Bea a écrit :
>>>>>>>> I think that the problem is that eclipse doesn't find the
>>>>>>>> org.eclipse.gmt.am3.tools.ant_1.0.0.20070619.jar. I have tried with
>>>>>>>> right click on the build.xml and selecting the second Ant run. In
>>>>>>>> the classpath section I have added that .jar but it doesn't work.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> "Bea" <beaperez@unizar.es> escribió en el mensaje
>>>>>>>> news:f5g94g$qv7$1@build.eclipse.org...
>>>>>>>>> Hello again
>>>>>>>>> I have problems with am3.loadmodel sentence. I get the error "Ant
>>>>>>>>> could not find the task or a class this task relies upon.".
>>>>>>>>> In my build.xml file I have:
>>>>>>>>>
>>>>>>>>> <am3.loadModel modelHandler="EMF" name="UML2" metamodel="MOF"
>>>>>>>>> path="uri:http://www.eclipse.org/uml2/1.0.0/UML"/>
>>>>>>>>>
>>>>>>>>> I have the plugin org.eclipse.gmt.am3.tools.ant installed but I
>>>>>>>>> thinnk that it doesn't work Any idea?
>>>>>>>>> Thank you.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "urs zeidler" <ich@urszeidler.de> escribió en el mensaje
>>>>>>>>> news:f5eb34$3jo$1@build.eclipse.org...
>>>>>>>>>> Bea schrieb:
>>>>>>>>>>> I use MOFScript for model to text transformations and ATL for
>>>>>>>>>>> model to model transformations. So I would like to create a
>>>>>>>>>>> plugin which execute the defined transformations in the order I
>>>>>>>>>>> want.
>>>>>>>>>>> Do you know how I can invoke an ANT script?
>>>>>>>>>>> Thanks
>>>>>>>>>>>
>>>>>>>>>> You can start ANT like an other process :
>>>>>>>>>>
>>>>>>>>>> Process process = Runtime.getRuntime().exec(cmd);
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> or with the launcher :
>>>>>>>>>> org.apache.tools.ant.launch.Launcher
>>>>>>>>>>
>>>>>>>>>> see ANT manual
>>>>>>>>>> http://ant.apache.org/manual/index.html
>>>>>>>>>>
>>>>>>>>>> greetings, urs.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05907 seconds