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

Examples of com.google.gdt.eclipse.designer.util.resources.IResourcesProvider.dispose()


              moduleDescription,
              astUnit,
              file,
              document);
        } finally {
          resourcesProvider.dispose();
        }
      }
    }
  }
View Full Code Here


    // add "test.jar" into project classpath
    addTestJar();
    // create and right away dispose DefaultResourcesProvider
    {
      IResourcesProvider provider = new DefaultResourcesProvider(m_javaProject);
      provider.dispose();
    }
    // dispose project, so delete create "test.jar", if DefaultResourcesProvider is not disposed,
    // it will keep "test.jar" opened, so we will not able to delete it
    do_projectDispose();
  }
View Full Code Here

      // from "test.jar"
      assertExistingResource(provider, "jar/folder/hello.txt");
      // "bin" folder is NOT included
      assertNotExistingResource(provider, "test/client/Module.class");
    } finally {
      provider.dispose();
    }
  }

  /**
   * Test for {@link DefaultResourcesProvider#listFiles(String)}.
View Full Code Here

      {
        List<String> files = provider.listFiles("com/google/gwt/xml");
        assertThat(files).contains("XML.gwt.xml", "client/");
      }
    } finally {
      provider.dispose();
    }
  }

  /**
   * Test for {@link DefaultResourcesProvider#listFiles(String)}. <br>
View Full Code Here

              "library/Library.gwt.xml",
              "library/client/Library.java");
          assertFalse(files.contains("library/client/Library.class"));
        }
      } finally {
        provider.dispose();
      }
    } finally {
      myProject.dispose();
    }
  }
View Full Code Here

    try {
      List<String> files = provider.listFiles("test");
      assertThat(files).contains("Module.gwt.xml", "client/Module.java");
      assertFalse(files.contains("client/Module.class"));
    } finally {
      provider.dispose();
    }
  }

  /**
   * Some (not so smart) users try to include <code>*.properties</code> file into classpath.
View Full Code Here

    File tempFile = File.createTempFile("myFile", ".properties");
    try {
      ProjectUtils.addJar(m_javaProject, tempFile.getAbsolutePath(), null);
      // create IResourcesProvider, should ignore *.properties file in classpath
      IResourcesProvider provider = new DefaultResourcesProvider(m_javaProject);
      provider.dispose();
    } finally {
      tempFile.delete();
    }
  }

View Full Code Here

      // work with IResourcesProvider
      try {
        List<String> files = provider.listFiles("test");
        assertThat(files).contains("Module.gwt.xml", "client/Module.java");
      } finally {
        provider.dispose();
      }
    } finally {
      myProject.dispose();
    }
  }
View Full Code Here

      // work with IResourcesProvider
      try {
        List<String> files = provider.listFiles("test");
        assertThat(files).contains("Module.gwt.xml", "client/Module.java");
      } finally {
        provider.dispose();
      }
    } finally {
      myProject.dispose();
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.