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

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


    // 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


    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

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.