|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: correct reference problem with import statement and unti-test [message #1244562 is a reply to message #1243770] |
Wed, 12 February 2014 09:22  |
Eclipse User |
|
|
|
It sounds like the qualified name provider use the simple name, and
doesn't include the package.
You need to either have a special implementation of
IQualifiedNameProvider (and bind it via your guice module) or you change
your grammar such that the
test element are contained in something with a name, which denotes the
package.
i.e.
File :
'package' name=QualifiedName
tests += Test*
;
Test :
'test' name=ID ...
;
hope that helps,
Sven
Am 11/02/14 13:18, schrieb Marcel Lgs:
> In my dsl I have this folder structure:
>
> ProjectFolder/
> |-- src/
> |-- packA.packB/
> |-- AT01.atd
> |-- AT02.atd
> |-- packA.packB/
> |-- AT02.atd
> |-- src-gen/
>
> AT01.atd look like this:
>
> ---
> import packA.packB.AT02
> test AT01 {
> call AT02 //(here is a link to packA.packC.AT02 and not to
> packA.packB.AT02!)
> }
> ---
>
> So when I click on AT02 and press F3 I go to packA.packC.AT02 and that
> it not what I expect/want (my grammar is at the first post). So I have
> no reference between my import-statement and my call-statement (I can
> also let off statement). And I do not find any solution on the internet
> (I try) that works.
--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
|
|
|
Powered by
FUDForum. Page generated in 0.11007 seconds