Skip to main content



      Home
Home » Modeling » QVT-OML » QVTO - Import Works in 3.4 but not in 3.6
QVTO - Import Works in 3.4 but not in 3.6 [message #1732816] Fri, 20 May 2016 08:42 Go to next message
Eclipse UserFriend
In 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:

Cannot find imported compilation unit 'transforms.Helper'


The file is located in a different Project which defines the following extension points in the plugin.xml:

<plugin>
    <extension point="org.eclipse.m2m.qvt.oml.runtime.qvtTransformation">
      <transformation
            file="transforms/Helper.qvto"
            id="NameHelper">
      </transformation>
      <transformation
            file="transforms/AssertHelper.qvto"
            id="AssertHelper">
      </transformation>
   </extension>
   <extension
         point="org.eclipse.m2m.qvt.oml.runtime.qvtTransformationContainer">
      <sourceContainer
            path="transforms">
      </sourceContainer>
   </extension>
</plugin>


I am using eclipse neon. There are a few threads around that describe problems with imports, but those are about Blackboxes, so i am not sure if that stuff applies. If i can supply any other files/infos to help track the error down, just let me know. I already posted this question on StackOverflow, but unfortunatly nobody there was able to help me Sad

[Updated on: Fri, 20 May 2016 01:38] by Moderator

Re: QVTO - Import Works in 3.4 but not in 3.6 [message #1732845 is a reply to message #1732816] Fri, 20 May 2016 13:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi

This is the newsgroup that the commiters monitor.

Sounds like a bug that may be a side effect of blackbox chnages. Please
raise a Bugzilla with a complete repro (zipped project(s)).

Regards

Ed Willink

On 20/05/2016 13:42, Simon Eismann wrote:
> In 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:
>
> Cannot find imported compilation unit 'transforms.Helper'
>
> The file is located in a different Project which defines the following
> extension points in the plugin.xml:
>
> <plugin>
> <extension point="org.eclipse.m2m.qvt.oml.runtime.qvtTransformation">
> <transformation
> file="transforms/Helper.qvto"
> id="NameHelper">
> </transformation>
> <transformation
> file="transforms/AssertHelper.qvto"
> id="AssertHelper">
> </transformation>
> </extension>
> <extension
> point="org.eclipse.m2m.qvt.oml.runtime.qvtTransformationContainer">
> <sourceContainer
> path="transforms">
> </sourceContainer>
> </extension>
> </plugin>
>
> I am using eclipse neon. There are a few threads around that describe
> problems with imports, but those are about Blackboxes, so i am not
> sure if that stuff applies. If i can supply any other files/infos to
> help track the error down, just let me know. I already posted this
> question on StackOverflow, but unfortunatly nobody there was able to
> help me :(
Re: QVTO - Import Works in 3.4 but not in 3.6 [message #1732882 is a reply to message #1732845] Sat, 21 May 2016 20:13 Go to previous messageGo to next message
Eclipse UserFriend
Hello, i now got a minimum working example ready. would you mind taking a look at it before i raise a bugzilla?

http://www.filedropper.com/mwe_1

How to get it to run:

Set targetplatform (luna for it to work, neon for it to break)
Run Main.java as a junit plugin test

I'd appreciate any input on this issue
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 Go to previous message
Eclipse UserFriend
Simon Eismann wrote on Fri, 20 May 2016 08:42
In 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
import Helper;
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


Previous Topic:Difference between arrow(->) and dot(.) in qvto
Next Topic:Use of quotations
Goto Forum:
  


Current Time: Fri Apr 18 19:42:44 EDT 2025

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

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

Back to the top