예제 #1
0
 /** Configures created project. */
 @Override
 protected void configureNewProject() throws Exception {
   GTestUtils.configure(getGWTLocation_forProject(), m_testProject);
   IFile moduleFile = GTestUtils.createModule(m_testProject, "test.Module");
   ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
   configureModule(moduleDescription);
   waitForAutoBuild();
 }
예제 #2
0
 /** Configures project and GWT module for given version. */
 protected final void configureForGWT_version(String location) throws Exception {
   do_projectDispose();
   do_projectCreate();
   GTestUtils.configure(location, m_testProject);
   IFile moduleFile = GTestUtils.createModule(m_testProject, "test.Module");
   ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
   configureModule(moduleDescription);
 }
 ////////////////////////////////////////////////////////////////////////////
 //
 // Creation
 //
 ////////////////////////////////////////////////////////////////////////////
 public void createModule(IJavaProject javaProject) throws Exception {
   if (createModuleButton.getSelection()) {
     IPackageFragmentRoot root = CodeUtils.getPackageFragmentRoot(javaProject);
     final String packageName = moduleComposite.getPackageName();
     final String moduleName = moduleComposite.getModuleName();
     final boolean isCreateEntryPoint = moduleComposite.createEntryPoint();
     final boolean isMvpEntryPoint = moduleComposite.createEntryPointMVP();
     // create module
     IFile moduleFile =
         CreateModuleOperation.create(
             root, packageName, moduleName, isCreateEntryPoint, isMvpEntryPoint, false);
     ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
     // apply configurator
     {
       IModuleConfigurator configurator = moduleComposite.getConfigurator();
       if (configurator != null) {
         configurator.configure(moduleDescription);
       }
     }
   }
 }