|
|
|
Re: QVTO - Import Works in 3.4 but not in 3.6 [message #1732895 is a reply to message #1732816] |
Sun, 22 May 2016 06:23  |
Eclipse User |
|
|
|
Simon Eismann wrote on Fri, 20 May 2016 08:42In my eclipse plugin project the line
import transforms.Helper;
fails when using version 3.6, but works fine on 3.4. It breaks with the msg:
[code]Cannot find imported compilation unit 'transforms.Helper'[/code
Hi
The behavior is intended. In Mars, we got rid of the restriction that the import must contain the source container ("transforms" in your case). In doing so, we align the import mechanism with workspace imports that are relative to the source container.
In your case, I suggest to change the plugin.xml declaration as follows:
<extension point="org.eclipse.m2m.qvt.oml.runtime.qvtTransformation">
<transformation
file="transforms/Helper.qvto"
id="Helper">
</transformation>
...
</extension>
You can then use seamlessly without any changes between development time and runtime.
For some hints on imports in QVTo, please refer to the developer guide: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.m2m.qvt.oml.doc%2Freferences%2Fimporting.html
|
|
|
Powered by
FUDForum. Page generated in 0.04507 seconds