GWT Sample Application Overview
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.
IntelliJ IDEA creates a simple HelloWorld application that meets all the GWT requirements.
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 (
MySampleApplicationclass) and remote service interfaces.
server: contains the server implementation of the remote service.
When creating a remote GWT service, IntelliJ IDEA automatically generates both synchronous and asynchronous interfaces (in the
clientpart), 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.