Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Error in GMF-Generator
Error in GMF-Generator [message #114676] Tue, 27 March 2007 09:16 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 ...
>
>
Previous Topic:How to get the parent of a figure?
Next Topic:gmf, using 2 xsd models
Goto Forum:
  


Current Time: Thu Jul 24 06:14:17 EDT 2025

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

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

Back to the top