[ATL] File Path Problem [message #522016] |
Fri, 19 March 2010 12:11  |
Eclipse User |
|
|
|
Hi everyone,
I have been building a ATL plugin for a GMF DSL.
In the initial Eclipse, I created the plugin project - PluginATL:
PluginA
- AcitonHandler.java
- transformation.atl
- metamodel.ecore
What I want to do now is that I want to access the metamodel.ecore in AcitonHandler.java to configure the metamodel for the ATL Execution Launch engine. However, I do not know how to get the relative path of the PluginA folder.
I checked some of the messages, but most of them are about getting the path in the runtime-eclipse environment, not the parent Eclipse environment. Therefore, the desired result is that when ActionHandler.java is triggered in the runtime-Eclipse, it can access the metamodel.ecore in the parent Eclipse folder.
Thanks a lot.
Yu
|
|
|
Re: [ATL] File Path Problem [message #522022 is a reply to message #522016] |
Fri, 19 March 2010 07:46   |
Eclipse User |
|
|
|
Yu Sun a écrit :
> Hi everyone,
>
> I have been building a ATL plugin for a GMF DSL.
>
> In the initial Eclipse, I created the plugin project - PluginATL:
>
> PluginA
> - AcitonHandler.java
> - transformation.atl
> - metamodel.ecore
>
>
> What I want to do now is that I want to access the metamodel.ecore in
> AcitonHandler.java to configure the metamodel for the ATL Execution
> Launch engine. However, I do not know how to get the relative path of
> the PluginA folder.
>
> I checked some of the messages, but most of them are about getting the
> path in the runtime-eclipse environment, not the parent Eclipse
> environment. Therefore, the desired result is that when
> ActionHandler.java is triggered in the runtime-Eclipse, it can access
> the metamodel.ecore in the parent Eclipse folder.
>
> Thanks a lot.
>
> Yu
I suggest you add an EMF "dynamic_package" extension point on your
metamodel plug-in and then use the metamodel URI (like
"http://www.my.metamode.org/1.0") as the "path" to it in your
transformation.
--
Cordialement
Vincent MAHÉ
Ingénieur plate-forme - Cesar/Artemisia - Équipe Espresso
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71
|
|
|
|
Powered by
FUDForum. Page generated in 0.03723 seconds