Examples of XmlObjectAdd


Examples of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAdd

  //
  // Broadcasts
  //
  ////////////////////////////////////////////////////////////////////////////
  private void setDefaultHeader_onCreate() {
    addBroadcastListener(new XmlObjectAdd() {
      @Override
      public void after(ObjectInfo parent, XmlObjectInfo child) throws Exception {
        if (child == DisclosurePanelInfo.this) {
          m_headerProperty.setValue("New DisclosurePanel");
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAdd

  //
  // Events
  //
  ////////////////////////////////////////////////////////////////////////////
  private void addSubMenuOnItemAdding() {
    addBroadcastListener(new XmlObjectAdd() {
      @Override
      public void after(ObjectInfo parent, XmlObjectInfo child) throws Exception {
        if (child == m_this && XmlObjectUtils.hasTrueParameter(m_this, "MenuItem.withSubMenu")) {
          addNewSubMenu();
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAdd

  //
  // Constructor
  //
  ////////////////////////////////////////////////////////////////////////////
  public UpdateSizeOnChildAddSupport(XmlObjectInfo root) {
    root.addBroadcastListener(new XmlObjectAdd() {
      @Override
      public void after(ObjectInfo parent, XmlObjectInfo child) throws Exception {
        setSize(child);
      }
    });
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAdd

  /**
   * If widget marked with <code>"UiBinder.createFieldProvided"</code> then during creation ensure
   * <code>@UiField(provided=true)</code> using default Java creation.
   */
  public static void ensureFieldProvided_onCreate(XmlObjectInfo rootObject) {
    rootObject.addBroadcastListener(new XmlObjectAdd() {
      @Override
      public void after(ObjectInfo parent, XmlObjectInfo child) throws Exception {
        if (XmlObjectUtils.hasTrueParameter(child, "UiBinder.createFieldProvided")) {
          NameSupport nameSupport = new NameSupport(child);
          nameSupport.createFieldProvided();
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAdd

          properties.add(property);
        }
      }
    });
    // set attributes during create
    m_context.getBroadcastSupport().addListener(null, new XmlObjectAdd() {
      @Override
      public void after(ObjectInfo parent, XmlObjectInfo child) throws Exception {
        addMissingConstructorAttributes(child);
      }
    });
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.