public static void createProject(String qualifiedModuleName,String outDir,GwtSdk gwtRuntime,IProgressMonitor monitor,String[] extraClassPath,String... templates) throws CoreException {
  try {
    int processStatus=ProcessUtilities.launchProcessAndWaitFor(computeWebAppCreatorCommandLine(qualifiedModuleName,outDir,gwtRuntime,templates,extraClassPath),null,System.out,null);
    if (processStatus != 0) {
      throw new CoreException(new Status(IStatus.ERROR,GWTPlugin.PLUGIN_ID,"Invocation of " + computeWebAppCreatorClassName() + " failed. See the error log for more details."));
    }
  }
 catch (  IOException e) {
    throw new CoreException(new Status(IStatus.ERROR,GWTPlugin.PLUGIN_ID,e.getLocalizedMessage(),e));
  }
catch (  InterruptedException e) {
    throw new CoreException(new Status(IStatus.ERROR,GWTPlugin.PLUGIN_ID,e.getLocalizedMessage(),e));
  }
}

public static void createProject ( String qualifiedModuleName , String outDir , GwtSdk gwtRuntime , IProgressMonitor monitor , String [ ] extraClassPath , String ... templates ) throws CoreException { try { int processStatus = ProcessUtilities . launchProcessAndWaitFor ( computeWebAppCreatorCommandLine ( qualifiedModuleName , outDir , gwtRuntime , templates , extraClassPath ) , null , System . out , null ) ; if ( processStatus != 0 ) { throw new CoreException ( new Status ( IStatus . ERROR , GWTPlugin . PLUGIN_ID , "Invocation of " + computeWebAppCreatorClassName ( ) + " failed. See the error log for more details." ) ) ; } } catch ( IOException e ) { throw new CoreException ( new Status ( IStatus . ERROR , GWTPlugin . PLUGIN_ID , e . getLocalizedMessage ( ) , e ) ) ; } catch ( InterruptedException e ) { throw new CoreException ( new Status ( IStatus . ERROR , GWTPlugin . PLUGIN_ID , e . getLocalizedMessage ( ) , e ) ) ; } }
calls gwt webappcreator to produce a sample project .
