Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] File Path Problem
[ATL] File Path Problem [message #522016] Fri, 19 March 2010 12:11 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: [ATL] File Path Problem [message #522045 is a reply to message #522022] Fri, 19 March 2010 14:33 Go to previous message
Eclipse UserFriend
Yes, that works well.

Thanks Vincent.

Previous Topic:[ATL] How to trigger ATL execution in popup menu
Next Topic:[Xtend] what does this mean? EvaluationException : null
Goto Forum:
  


Current Time: Sun Jul 06 13:59:12 EDT 2025

Powered by FUDForum. Page generated in 0.03723 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top