Error in GMF-Generator [message #114676] |
Tue, 27 March 2007 09:16  |
Eclipse User |
|
|
|
Originally posted by: S.Kemmann.gmx.de
Hi there!
When I'm generating diagram-code for my model, the generator creates
imports, which refer to packages rather than classes. In the code the
"missing" part of the import-statement is explicitly given. For example:
import A.B.C; //-> C is a package
....
....
Object obj = new C.B.D.className();
This is of course not working. Is that a known Bug or is it my fault?
If it is my fault, what am I doing wrong??
Thanks!!
S
|
|
|
Re: Error in GMF-Generator [message #114724 is a reply to message #114676] |
Tue, 27 March 2007 09:35  |
Eclipse User |
|
|
|
Hi Sören,
This is likely because your "C" package starts with an uppercase letter,
and the import rewriter assumes it is a class.
Unfortunately, the import rewriter may not use JDT knowledge of what is
a class and what is not, because it has to work when only a part of code
is generated, and another part is still missing.
Best regards,
Boris
Sören Kemmann wrote:
> Hi there!
>
> When I'm generating diagram-code for my model, the generator creates
> imports, which refer to packages rather than classes. In the code the
> "missing" part of the import-statement is explicitly given. For example:
> import A.B.C; //-> C is a package
> ....
> ....
> Object obj = new C.B.D.className();
>
> This is of course not working. Is that a known Bug or is it my fault?
> If it is my fault, what am I doing wrong??
>
> Thanks!!
> Sören
>
> PS: I'm using GMF 2.0M5uh ...
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06602 seconds