Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/03/2010 11:40:23
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
Hi,
I have a problem with the Code Generator in the Editor Tool.
When I click "Edit class" in the context menue in the Bean Browser on certain classes,
I get following error message: org.eclnt.editor.codegen.GenerationException: java.lang.IllegalStateException: AST implements not found
I can really find no difference between the implemtation of beans that work and beans that doesn't?
Markus
Filename |
log.zip |
Download
|
Description |
|
Filesize |
16 Kbytes
|
Downloaded: |
347 time(s) |
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/03/2010 11:52:04
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5542
Offline
|
Hi,
the bean browser is based on following class-reflection.
The code generator is based on parsing the source code, using the Apache "jaxme" project. This parser understand quite a lot of Java code but also fails with some issues (e.g. we experience errors when class own an inner interface definition...).
AST it the abstract syntax tree that is internally built up...
If you want, you can send the class to me and we can take a look.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/03/2010 11:57:35
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
That could be the cause!
The classes are mostly PopUps, so I defined a local public callback interface: e.g.
Code:
public interface IPopupCallback {
public void cancel();
}
I've now extracted the interface and voila, reflection does it's job ;-)
Thanx
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/03/2010 12:18:59
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5542
Offline
|
...to be honest: we do not invest tooo much into solving this "misbehaviour" (yes...: bug...). The code generator typically is used for "first, simple scenarios" and then people tend to more and more do all their things within their IDE...
Please do not misunderstand: you are not doing your "first, simple scenarios", I know!!! But I hope to find some understanding for not doing too much in this area.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/03/2010 12:23:08
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
no problem! In my opinion it's even better style to generalize those callbacks and make own class files!
|
|
![](/forum/templates/default/images/spacer.gif) |
|