views:

52

answers:

2

Hi,

How can I find the java file which is generated during compile time when Generator is being used, for example when we have uiBinder it seems that GWT.create calls some generators and generates a java file, how can I get access to this file?

Any idea?

+1  A: 

The "-gen" parameter to the compiler nominates a directory where the generated code is put. See http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#What_are_the_options_that_can_be_passed_to_the_compiler

Alan Hadsell
Thanks Ajan, could you please help me in more detail, I'm using Netbeans, I found gwt.properties file, then I should write something like this: gwt.compiler.gen= 'directory adders' ?
Marjan
A: 

Hello,

can anyone help me to change gwt.properties file in a way that I can identify the place of generated files by GWT compiler? I don't know how should I use -gen parameter...

Generally, Is it possible to see the generated implementation of suppose uiBinderMainUiBinder interface in the below example?

public class uiBinderMain extends Composite {

 private static uiBinderMainUiBinder uiBinder = GWT.create(uiBinderMainUiBinder.class);

 interface uiBinderMainUiBinder extends UiBinder<Widget, uiBinderMain> {}
  ...
}
Marjan