GWT automatically generates Java class from UiBinder
I am using Intellij IDEA and this IDE provides a menu entry
GWT UiBinder and ui.xml file
for generating java and ui.xml file.
If you are using eclipse you can read this article about the interface linking wizard.
Another alternative is to create your own file template (each IDE must provide this functionality) to customize the generated files according to your needs.
source to share