IntelliJ IDEA 13.1 Web Help

Some features described here are available in Ultimate edition only.

IntelliJ IDEA can generate a sample GWT application when you are creating a module with GWT support. This application helps you familiarize yourself with the GWT application structure. For a detailed description of the GWT fundamentals, please refer to http://code.google.com/webtoolkit/overview.html.

To generate a sample GWT application
  1. On the Technologies page of the New Project Wizard, select the Google Web Toolkit check box.
  2. Select the Create sample application check box.
  3. Specify the application name in the text box below. Accept the default application name com.MySampleApplication or update it as required.

IntelliJ IDEA creates a simple HelloWorld application that meets all the GWT requirements.

GWTSampleApplication

As you can see, IntelliJ IDEA has generated a GWT Module (MySampleApplication.gwt.xml) in the root of the package. The corresponding package layout (client and server parts) is also generated automatically.

  • client: contains the required entry point (MySampleApplication class) and remote service interfaces.
  • server: contains the server implementation of the remote service.

    Note

    When creating a remote GWT service, IntelliJ IDEA automatically generates both synchronous and asynchronous interfaces (in the client part), creates the server implementation, and registers them in the GWT Module .xml, as required.

The HTML host file, that is used to run the application, is located in a separate Web facet.

IntelliJ IDEA also adds comments to the sample application code to make it clear to the maximum.

See Also

Procedures:

Web Resources: