Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:42 Go to next message
Simon Eismann is currently offline Simon EismannFriend
Messages: 5
Registered: August 2015
Junior Member
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 05:38]

Report message to a 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 17:54 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6082
Registered: July 2009
Senior Member
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] Sun, 22 May 2016 00:13 Go to previous messageGo to next message
Simon Eismann is currently offline Simon EismannFriend
Messages: 5
Registered: August 2015
Junior Member
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 10:23 Go to previous message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 57
Registered: April 2011
Member
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: Mon Oct 22 11:51:59 GMT 2018

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

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

Back to the top