Braindump
					
					
					
      
        
      
      
      
				
			Setting Up AGXT Project In Eclipse
Braindump.SettingUpAGXTProjectInEclipse History
Hide minor edits - Show changes to markup
June 21, 2010, at 11:16 AM 
        by  - 
        Changed lines 8-9 from:
        Movie from GWT to GXT
to:
        Move from GWT to GXT
June 21, 2010, at 11:16 AM 
        by  - 
        Added lines 1-32:
        Create the GWT project
- Create Eclipse project with GWT's 
webAppCreatorshell command (e.g.webAppCreator -out subdir com.example.myapp.MyApp) - Import project into workspace (File -> Import... -> Existing Project into Workspace etc.)
 - Remove the GWT jar files from the project
 - Add the GWT and GXT user libraries (see Set up Eclipse for GWT and GXT) to the project
 
Movie from GWT to GXT
Adapt the GWT module
- Open 
src/com.example.myapp.MyApp.gwt.xml - Comment out the line 
<inherits name='com.google.gwt.user.User'/>(and potentially others) - Insert the line 
<inherits name='com.extjs.gxt.ui.GXT'/> 
Copy GXT resources (the style) to your project
- Create directory 
war/gxt - Copy 
/path/to/gxt/resources/*to the Eclipse project'swar/gxtfolder (i.e. there must be a file atwar/gxt/css/gxt-all.cssnow) 
Adapt the hosting HTML file
- Open 
war/MyApp.html - Find the section in the HTML file's 
headpart, where the CSS files are linked in (search for.cssin the file) - Add a reference to the GXT styles (
<link rel="stylesheet" type="text/css" href="gxt/css/gxt-all.css" />) 
Optional part: Drop non-GUI parts
In case this application will consist of a GUI only, you can get rid of the server specific parts. To remove the non-GUI parts from the Eclipse project do this:
- remove the 
com.example.myapp.serverandcom.example.myapp.sharedpackages - remove 
war/lib/gwt-servlet.jar - edit the 
war/WEB-INF/web.xmlfile and remove (or comment out) theservletandservlet-mappingparts, so that only the default page section remains