Package org.eclipse.wb.internal.core.model.description.resource

Examples of org.eclipse.wb.internal.core.model.description.resource.IDescriptionVersionsProvider


    for (IDescriptionVersionsProviderFactory factory : factories) {
      // versions
      addVersions(factory.getVersions(m_javaProject, m_classLoader));
      // version providers
      {
        IDescriptionVersionsProvider provider = factory.getProvider(m_javaProject, m_classLoader);
        if (provider != null) {
          addDescriptionVersionsProvider(provider);
        }
      }
    }
View Full Code Here


            "}"));
    // check IDescriptionVersionsProviderFactory
    IDescriptionVersionsProviderFactory providerFactory =
        GwtDescriptionVersionsProviderFactory.INSTANCE;
    // not GWT project, so no provider
    IDescriptionVersionsProvider provider = providerFactory.getProvider(javaProject, m_lastLoader);
    assertNull(provider);
    // no version
    assertThat(providerFactory.getVersions(javaProject, m_lastLoader)).isEmpty();
  }
View Full Code Here

        "  }",
        "}");
    // check IDescriptionVersionsProviderFactory
    IDescriptionVersionsProviderFactory providerFactory =
        GwtDescriptionVersionsProviderFactory.INSTANCE;
    IDescriptionVersionsProvider provider = providerFactory.getProvider(javaProject, m_lastLoader);
    {
      Class<?> componentClass = m_lastLoader.loadClass("com.google.gwt.user.client.ui.Button");
      List<String> versions = provider.getVersions(componentClass);
      assertThat(versions).containsExactly("2.0");
    }
  }
View Full Code Here

        "  }",
        "}");
    // check IDescriptionVersionsProviderFactory
    IDescriptionVersionsProviderFactory providerFactory =
        GwtDescriptionVersionsProviderFactory.INSTANCE;
    IDescriptionVersionsProvider provider = providerFactory.getProvider(javaProject, m_lastLoader);
    {
      Class<?> componentClass = m_lastLoader.loadClass("com.google.gwt.user.client.ui.Button");
      List<String> versions = provider.getVersions(componentClass);
      assertThat(versions).containsExactly("2.1", "2.0");
    }
  }
View Full Code Here

        "  }",
        "}");
    // check IDescriptionVersionsProviderFactory
    IDescriptionVersionsProviderFactory providerFactory =
        GwtDescriptionVersionsProviderFactory.INSTANCE;
    IDescriptionVersionsProvider provider = providerFactory.getProvider(javaProject, m_lastLoader);
    {
      Class<?> componentClass = m_lastLoader.loadClass("com.google.gwt.user.client.ui.Button");
      List<String> versions = provider.getVersions(componentClass);
      assertThat(versions).containsExactly("2.4", "2.2", "2.1", "2.0");
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.description.resource.IDescriptionVersionsProvider

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.