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

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


    IResourcesProvider provider = getTestModuleResourceProvider();
    // work with IResourcesProvider
    try {
      // from project
      {
        List<String> files = provider.listFiles("test");
        assertThat(files).contains("Module.gwt.xml", "client/Module.java");
        assertFalse(files.contains("client/Module.class"));
      }
      // from jar
      {
View Full Code Here


        assertThat(files).contains("Module.gwt.xml", "client/Module.java");
        assertFalse(files.contains("client/Module.class"));
      }
      // from jar
      {
        List<String> files = provider.listFiles("com/google/gwt/xml");
        assertThat(files).contains("XML.gwt.xml", "client/");
      }
    } finally {
      provider.dispose();
    }
View Full Code Here

      IResourcesProvider provider = getTestModuleResourceProvider();
      // work with IResourcesProvider
      try {
        // from "my.library.Library" project
        {
          List<String> files = provider.listFiles("my");
          assertThat(files).doesNotHaveDuplicates().contains(
              "library/Library.gwt.xml",
              "library/client/Library.java");
          assertFalse(files.contains("library/client/Library.class"));
        }
View Full Code Here

    m_javaProject.setOutputLocation(new Path("/TestProject/bin2"), null);
    // prepare IResourcesProvider
    IResourcesProvider provider = getTestModuleResourceProvider();
    // work with IResourcesProvider
    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();
    }
View Full Code Here

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

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

TOP
Copyright © 2015 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.