Ok,

To view the generated class compile with "-gen /somepathonyourdisk", another
tip to debug a generated class: include in your lookup entries the folder
where the generated classes are and you will be able to step through the
generated code.

And to use gin into your generated class I didn't found a great solution,
because you can inject an interface that is generated but gin just make a
GWT.create(theinterface.class); and it wont inject into the generated class.

This is what I did:
Add an set-configuration-property into your module (define it first) and
specify on it the location of your injector, then use directly the injector
into your generated code. Like this:

<add-configuration-property name="gin.injector"
value="com.some.gin.MyGinInjector" />

Regards

2010/3/20 PhilBeaudoin <philippe.beaud...@gmail.com>

> I'm trying to write my first GWT generator... I've gotten pretty far,
> but I have the following questions:
> 1) Is there any way to see the generated class for debugging purposes?
> For example, can I force GWT to produce the .java file for my
> generated class (it did it once when I had an error, but I can't force
> it to produce it every time.) Any other hints as to how to debug a
> generated class?
> 2) I'd like to use GIN to inject objects in the constructor of the
> generated class. I'm not quite sure if this works or how to make it
> work. Any hints would be great!
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to