GWT Project Creation

Configure Designer > GWT preferences
  • Specify the path to your GWT installation directory
  • If you don't have GWT installed, you can download it using the provided link

Linux Note: after setting the GWT installation directory, restart Eclipse for the setting to take effect.

Note: if you would like to create a common shareable widget library project, click here.

Use the Designer > GWT > GWT Java Project wizard to create a new GWT project

You can also click on the Create GWT Project button in the main Eclipse toolbar

Note: if your require more control over the deployment process or need to specify the content of the web.xml file, consider creating a web project and using web project deployment

Project wizard is identical to standard New Java Project wizard
  • Specify the project name
  • Choose whether to create separate source and output folders (preferred)
Optionally create a GWT Module during initial project creation
  • A GWT Module may be created using the GWT Module wizard
  • A module descriptor file will be created
  • Client, public and server packages will be created
  • Optionally create an EntryPoint file and public resources
  • Generate code that uses the classic GWT bootstrap process (any version of GWT) or the new GWT 1.4 and above bootstrap process
The wizard creates the project with all of the necessary configuration and resource files
Additional EntryPoints may be added using the EntryPoint wizard
It is also possible to convert an existing Java or WTP project into a GWT project
  • The Convert project into GWT project command is available for any non-GWT project
  • The gwt-user.jar is added to the project classpath
  • The GWTBuilder and GWTNature are added to the project definition
  

  

 

Instructions for creating a common shareable widget library project

  1. Start the GWT Java Project wizard and create an empty project without an entry point
     
  2. Start the GWT Library wizard


     
  3. Enter your module name and package name. For example, "MyLibrary" and "com.company.code.mylibrary"
     
  4. If you want to create any visual elements, check the Create HTML file to allow visual design option
     
  5. If you want to create any remote services, check the Create 'server' package for RemoteServices option

    From that point you can start using the GWT Designer editor as you would normally do