Manual transformation vs. programmatic transformation [message #1061622] |
Mon, 03 June 2013 06:50  |
Eclipse User |
|
|
|
Hello there!
I have discovered a difference between calling a QVTo transformation manually from Eclipse "Run" menu and calling it programmatically through TransformationExecutor.
The difference is as follows:
If I call the transformation manually, the references to imported packages or referenced elements outside the main model etc. in the resulted model instance are realized with the namespaces of the regarding packages. Like this: href="http://x.y.z/SomethingModel/0.1#//Something" or href="http://www.eclipse.org/emf/2002/Ecore#/"
But if I call the transformation programmatically, then the packages imported or referenced elements are referenced through their relative paths to their Ecore's, which will eventually be not the same on different development environments. For example: href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#/" or href="../../../plugin/x.y.z.t/model/SomethingModel.ecore#//Something"
Is this a problem regarding the QVTo itself? Is it expected to be like this? Or maybe I need to do some extras to achieve this?
In the end I want to use the namespaces. For example I tried to register the EPackages of the models I refer in my main model and also transformation, but it wasn't a success.
Any help will be appreciated.
Thanks!
|
|
|
|
|
Re: Manual transformation vs. programmatic transformation [message #1061706 is a reply to message #1061702] |
Mon, 03 June 2013 10:40  |
Eclipse User |
|
|
|
Hi
Yes. AFAIK ProjectMap is the only solution that makes the problem go away.
Too many other users/projects have fudged and in some cases made the
problems more obscure.
Regards
Ed Willink
On 03/06/2013 15:26, Emre Taspolatoglu wrote:
> Hello Ed, thanks for the quick response.
>
> I understand from your response, that there are no direct programmatic
> QVTo solutions for this issue, and one has to make use of this
> ProjectMap class from OCL. Is it right? Then I would have to take a
> look into this OCL Examples and Editors.
>
> Best regards,
> Emre
>
>
|
|
|
Powered by
FUDForum. Page generated in 7.92612 seconds