Examples of PublicElement


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

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

        "<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
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.