Introduction
gwtClassRun running alongside
Java IDE and GWT Hosted Mode browser
gwtClassRun
is a standalone utility application that is very useful for developers developing
application using their favourite IDE utilizing the Edit-Compile-Debug development cycle. A Java application contains many classes, and most of the time, it is very effective and efficient just to test certain classes rather than the whole application. For example, a developer might want to test out a user interface class before integrating it into the main application. However, developers usually resist doing best practice of isolating of class for testing because of extra non-intuitive steps needed to perform such operation. These steps include having to edit GWT’s module file descriptor file ending with gwt.xml extension and having to ensure that they enter the correct EntryPoint class name and its package. These mundane steps might seem manageable, however in the long run, it incurs wasteful time that might better off use for other meaningful purposes.
gwtClassRun is designed especially to automate such task easily and quickly. This utility is developed due to the creator’s own frustration in waiting for the increasingly long GWT compilation of processing all relevant classes to test a GWT application. Having to manually change a EntryPoint class in the gwt.xml is not appealing either. Therefore, gwtClassRun is created to handle the problem with minimal intervention from the user.
gwtClassRun is a small application having a intuitive user interface that minimal and straight-forward. It is non-intrusive and occupies just a fraction of the screen. In addition, it also works with any IDE obviating the need for plug-in.
How it works
Every GWT project comes with a main module descriptor file ending with gwt.xml extension. It is this file that GWT knows how to execute and initialize the necessary classes. What gwtClassRun does is to modify the file through EntryPoint tag to reflect the desired class to run. gwtClassRun supports multiple EntryPoint classes and it put the desired Class in the first EntryPoint tag. Hence, gwtClassRun does not modify any other files aside from the descriptor file.
Similarly to GWT project, gwtClassRun uses the same project terminology. A project in gwtClassRun consists a set of settings that tell it where to look for the EntryPoint classes, descriptor file and how it want the EntryPoint tag to be modified. After the user setup the project, all he needs to do is just simple request gwtClassRun to update its database of EntryPoint classes for the GWT application. After this, user can just select the desired EntryPoint class to run through a intuitive point-n-click interface, or using a powerful and flexible search function.
Highly recommended to work out the tutorial as a picture is worth a thousand words.
User Interface
The user interface of gwtClassRun is very simple and focus. It contains all the necessary features to make using gwtClassRun a pleasant and fruitful experience.

| # | Description | ||||||||||
| 1 | Main Screen The MainScreen is the point of access to consolidate gwtClassRun’s functions. |
||||||||||
| 2 | Project Management Menu/EntryPoint Code Copy Menu This menu integrates both project management function and EntryPoint Java Code copy. Project Management Menu
When no available project, the following screen appear. Click on the A Root Dir: Search SubDir: IMPORTANT GWT XML:
EntryPoint tab Default Class TextBox: Include EntryPoint Classes TextBox: Project creation and renaming EntryPoint Code Copy:
Copy OnModuleLoad Interface (Alt+S) |
||||||||||
| 3 | Help Menu
Help: About: |
||||||||||
| 4 | Default Class: (Alt+Q) Set the default class defined in the gwtClassRun project as the desired EntryPoint class. A sound will generate and the titlebar will show the className change visually as EntryPoint for 1 sec to indicate that change has been made. List: (Alt+W)
Update: (Alt+E) |
||||||||||
| 5 |
Search TextBox: The following is the list of valid keys in the textbox.
|
||||||||||
| 6 |
Project Selection ComboBox: |
||||||||||
| 7 | Clear Search Button: This is similar to pressing escape in the TextBox to clear the search entry. |
||||||||||
| 8 | Project Selection Enabled Checkbox: Due to the design of the application to be compact as not to occupy precious screen estate, the components are placed quite closely to each other. Hence it is easy to inadvertently select the project comboBox where user intend to select the textBox. Uncheck the checkbox will disable project selection. |
Last updated: 17 May 2008



