Package org.eclipse.wb.internal.core.xml.model.generic

Examples of org.eclipse.wb.internal.core.xml.model.generic.SimpleContainerFactory


  ////////////////////////////////////////////////////////////////////////////
  /**
   * @return some {@link SimpleContainer} for given {@link XmlObjectInfo}.
   */
  private static SimpleContainer getSimpleContainer(XmlObjectInfo container) {
    List<SimpleContainer> containers = new SimpleContainerFactory(container, false).get();
    assertThat(containers).isNotEmpty();
    return containers.get(0);
  }
View Full Code Here


   * <code>Widget</code>.
   */
  protected static void assertHasWidgetSimpleContainer(XmlObjectInfo container,
      boolean forCanvas,
      boolean expected) throws Exception {
    SimpleContainerFactory factory = new SimpleContainerFactory(container, forCanvas);
    List<SimpleContainer> simpleContainers = factory.get();
    // check each factory
    WidgetInfo button = createButton();
    for (SimpleContainer simpleContainer : simpleContainers) {
      boolean valid = simpleContainer.validateComponent(button);
      assertThat(valid).isEqualTo(expected);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.generic.SimpleContainerFactory

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.