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

Examples of org.eclipse.wb.internal.core.xml.model.XmlObjectInfo


  /**
   * We should remove enclosing "Cell" element if it has no attributes.
   */
  public void test_propertyCell_removeElement() throws Exception {
    XmlObjectInfo panel =
        parse(
            "// filler filler filler filler filler",
            "<ui:UiBinder>",
            "  <g:HorizontalPanel>",
            "    <g:Cell width='100px'>",
            "      <g:Button/>",
            "    </g:Cell>",
            "  </g:HorizontalPanel>",
            "</ui:UiBinder>");
    refresh();
    WidgetInfo button = (WidgetInfo) panel.getChildren().get(0);
    // "width"
    {
      Property property = PropertyUtils.getByPath(button, "Cell/width");
      // remove value
      property.setValue(Property.UNKNOWN_VALUE);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.XmlObjectInfo

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.