Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] File Path Problem
[ATL] File Path Problem [message #522016] Fri, 19 March 2010 16:11 Go to next message
Yu Sun is currently offline Yu SunFriend
Messages: 58
Registered: July 2009
Member
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 11:46 Go to previous messageGo to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
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 18:33 Go to previous message
Yu Sun is currently offline Yu SunFriend
Messages: 58
Registered: July 2009
Member
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: Fri Oct 18 09:11:53 GMT 2019

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

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

Back to the top