Search code examples
javaeclipsegwtuibinder

GWT automatically create Java Class from UiBinder


quite new to GWT i was wondering if there's any solution to automatically generate the skeleton for the java class that correspond to a UiBinder. Basically, i've to create the ui.xml file. from it there's no way to have the structure of the java class? do i've to create it by hand?


Solution

  • I use Intellij IDEA and this IDE provides a menu entry GWT UiBinder and ui.xml file to create a java and ui.xml file.

    Autogenerate Java and ui file

    If you use eclipse you can read this article about the UI Binder wizard.

    An other alternative is to create your own file template (every IDE should provide that feature) in order to customize the generated files to your needs.