Variable has a type which has multiple definitions [message #1244120] |
Tue, 11 February 2014 18:33  |
Eclipse User |
|
|
|
Hello,
I am getting the error written in the subject. It is a parameter in a @QueryBasedFeature pattern definition. The variable is defined as the Target and it is an EClass from an imported Ecore package. Though I don't get what I should understand from "multiple definitions", the only thing I can imagine is that it might have something to do with, that this target EClass has more than one ESuperType.
Do you have any idea what the reason might be?
Thanks!
Emre
|
|
|
|
|
|
Re: Variable has a type which has multiple definitions [message #1253909 is a reply to message #1245211] |
Sat, 22 February 2014 16:07   |
Eclipse User |
|
|
|
Hi Zoltan,
is this generator.geneiq only for genmodels? Or can I import with it also EPackages?
Also, I have found the real reason, why this warning was being showed, since some imported Models and EPackages, I was referencing in my queries, were both in my Plugin registry of the development environment as well as in my workspace. I had imported these Plugins into the workspace for some digging in. But in another workspace, where they weren't imported, the warning were gone.
Best regards,
Emre
|
|
|
Re: Variable has a type which has multiple definitions [message #1255247 is a reply to message #1253909] |
Mon, 24 February 2014 03:38  |
Eclipse User |
|
|
|
Hi,
the eiqfiles only support loading genmodels, as for an EPackage in a custom location there is no way to find the corresponding GenPackage, thus rendering our code generator mostly unusable.
Thanks for reporting back your solution to your issue - sadly, we do not have more easy-to-use solutions for finding such problems. We had some ideas about using the eiqgen file as a way to define _the_ solution for these problematic cases, but for now, we have only half of the solution, at least until https://bugs.eclipse.org/bugs/show_bug.cgi?id=398821 is fixed. After that point, the process of selecting EPackages/GenPackages should be well customizable.
Cheers,
Zoltán
|
|
|
Powered by
FUDForum. Page generated in 1.03708 seconds