Package com.google.gdt.eclipse.designer.util

Examples of com.google.gdt.eclipse.designer.util.ModuleDescription


  /**
   * Test for {@link GxtPropertyTester#PROPERTY_IS_CONFIGURED}.
   */
  @DisposeProjectAfter
  public void test_isConfigured() throws Exception {
    ModuleDescription moduleDescription = getTestModuleDescription();
    IFile file = getFileSrc("/test/client/Module.java");
    // initially not configure
    {
      assertFalse(file, GxtPropertyTester.PROPERTY_IS_CONFIGURED);
    }
View Full Code Here


  /**
   * Test for {@link GxtPropertyTester#PROPERTY_IS_CONFIGURED}.
   */
  @DisposeProjectAfter
  public void test_isConfigured_hasJar_butNotModule() throws Exception {
    ModuleDescription moduleDescription = getTestModuleDescription();
    IFile moduleFile = getTestModuleFile();
    String originalModule = getFileContent(moduleFile);
    // configure, but restore module
    m_testProject.addExternalJar(ExtGwtTests.GXT_LOCATION + "/gxt.jar");
    new ConfigureExtGwtOperation(moduleDescription, ExtGwtTests.GXT_LOCATION).run(null);
View Full Code Here

   */
  @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();
  }
View Full Code Here

  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);
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  @DisposeProjectAfter
  public void test_0() throws Exception {
    IFile moduleFile = getFileSrc("test/Module.gwt.xml");
    ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
    new ConfigureExtGwtOperation(moduleDescription, ExtGwtTests.GXT_LOCATION).run(null);
    waitForAutoBuild();
    // gxt.jar should be added
    assertTrue(ProjectUtils.hasType(
        m_testProject.getJavaProject(),
View Full Code Here

   * Configures created project.
   */
  protected void configureNewProject(String gwtLocation) throws Exception {
    GTestUtils.configure(gwtLocation, m_testProject);
    IFile moduleFile = GTestUtils.createModule(m_testProject, "test.Module");
    ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
    configureModule(moduleDescription);
    waitForAutoBuild();
  }
View Full Code Here

  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_noModuleFile() throws Exception {
    ModuleDescription moduleDescription = null;
    try {
      new GwtState(null, moduleDescription);
      fail();
    } catch (DesignerException e) {
      assertEquals(IExceptionConstants.NO_MODULE_FILE, e.getCode());
View Full Code Here

  }

  @DisposeProjectAfter
  public void test_noRequiredModule() throws Exception {
    IFile moduleFile = getTestModuleFile();
    ModuleDescription moduleDescription = getTestModuleDescription();
    setFileContent(
        moduleFile,
        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
            "<!-- filler filler filler filler filler -->",
View Full Code Here

    // add GXT resources jar
    m_testProject.addExternalJar(resourcesLocation);
    waitForAutoBuild();
    // add my.Resources module
    {
      ModuleDescription module = Utils.getModule(m_javaProject, "test.Module");
      DefaultModuleProvider.modify(module, new ModuleModification() {
        public void modify(ModuleElement moduleElement) throws Exception {
          moduleElement.addInheritsElement("my.Resources");
        }
      });
View Full Code Here

  }

  protected void configureProject() throws Exception {
    GTestUtils.configure(getGWTLocation_forProject(), m_testProject);
    IFile moduleFile = GTestUtils.createModule(m_testProject, "test.Module");
    ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
    configureModule(moduleDescription);
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.util.ModuleDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.