Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Exporting a plugin
[QVTo] Exporting a plugin [message #666999] Mon, 25 April 2011 12:33 Go to next message
Haffi is currently offline Haffi
Messages: 39
Registered: November 2010
Member
Hi,

I've been developing a plugin with QVTo transformations and I've been running into a problem when exporting it and installing in Eclipse.

This is basically two projects, a regular plugin project which contains code to invoke QVTo in Java, and a QVTo plug-in project which contains the transformations. I export them together as plugins.

The Java invocation code contains a reference to the transformation as platform:/resource/[path to transformation], just as in the Java invocation example. However, that seems to look for the files in the workspace so if I put the transformations in the right place in the workspace then everything works. What I want is of course to make the transformation files available with the plugin so it's invisible to the user. Does anyone know what I'm doing wrong?
Re: [QVTo] Exporting a plugin [message #667006 is a reply to message #666999] Mon, 25 April 2011 12:41 Go to previous messageGo to next message
Alan McMorran is currently offline Alan McMorran
Messages: 55
Registered: July 2009
Member
You should be able to make the URI:
platform:/plugin/[plugin-id]/[path-to-transformation]

That works for me anyway.

Alan

> Hi,
>
> I've been developing a plugin with QVTo transformations and I've been
> running into a problem when exporting it and installing in Eclipse.
>
> This is basically two projects, a regular plugin project which contains
> code to invoke QVTo in Java, and a QVTo plug-in project which contains
> the transformations. I export them together as plugins.
>
> The Java invocation code contains a reference to the transformation as
> platform:/resource/[path to transformation], just as in the Java
> invocation example. However, that seems to look for the files in the
> workspace so if I put the transformations in the right place in the
> workspace then everything works. What I want is of course to make the
> transformation files available with the plugin so it's invisible to the
> user. Does anyone know what I'm doing wrong?
Re: [QVTo] Exporting a plugin [message #722556 is a reply to message #667006] Tue, 06 September 2011 07:40 Go to previous message
Cindy  is currently offline Cindy
Messages: 59
Registered: May 2011
Member
Hey i am intersetd in qvt invocation in java but donot know where to start.. could you give me a tip ?thank you very much~~
Previous Topic:About ATL transformations and classes in the target model
Next Topic:[ATL]: how do you debug you transformations
Goto Forum:
  


Current Time: Sat Sep 20 09:58:02 GMT 2014

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

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