Package com.google.gdt.eclipse.designer.model.module

Examples of com.google.gdt.eclipse.designer.model.module.PublicElement


    // visit "public" folders
    {
      // prepare folders
      List<PublicElement> publicElements = module.getPublicElements();
      if (publicElements.isEmpty()) {
        PublicElement defaultPublicElement = new PublicElement();
        defaultPublicElement.setPath("public");
        publicElements = ImmutableList.of(defaultPublicElement);
      }
      // visit folders
      for (PublicElement publicElement : publicElements) {
        String packageName = modulePackageName + "." + publicElement.getPath().replace('/', '.');
View Full Code Here


        "<module>",
        "  <public path='some.path'/>",
        "</module>"});
    assertThat(m_module.getChildren()).hasSize(1);
    // prepare single "<public>" element
    PublicElement publicElement;
    {
      List<PublicElement> publicElements = m_module.getPublicElements();
      assertThat(publicElements).hasSize(1);
      publicElement = publicElements.get(0);
    }
    // current "path" value
    assertEquals("some.path", publicElement.getPath());
    // set new "path" value
    {
      publicElement.setPath("new.path");
      assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.path", "new.path"));
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.module.PublicElement

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.