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

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


        }
        // sort locales
        Collections.sort(locales);
        // add new <extent-property> with all locales
        {
          ExtendPropertyElement extendPropertyElement = new ExtendPropertyElement();
          moduleElement.addChild(extendPropertyElement);
          extendPropertyElement.setName("locale");
          extendPropertyElement.setValues(StringUtils.join(locales.iterator(), ","));
        }
      }
    });
  }
View Full Code Here


        "<module>",
        "  <extend-property name='some.name' values='some.values'/>",
        "</module>"});
    assertThat(m_module.getChildren()).hasSize(1);
    // prepare single "<extend-property>" element
    ExtendPropertyElement propertyElement;
    {
      List<ExtendPropertyElement> propertyElements = m_module.getExtendPropertyElements();
      assertThat(propertyElements).hasSize(1);
      propertyElement = propertyElements.get(0);
    }
    // current attribute values
    assertEquals("some.name", propertyElement.getName());
    assertEquals("some.values", propertyElement.getValues());
    // set new attribute value
    {
      propertyElement.setName("new.name");
      propertyElement.setValues("new.values");
      {
        String newContent = m_moduleContent;
        newContent = StringUtils.replace(newContent, "some.name", "new.name");
        newContent = StringUtils.replace(newContent, "some.values", "new.values");
        assertUpdatedModuleFile(newContent);
View Full Code Here

TOP

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

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.