Package org.eclipse.wb.core.model.broadcast

Examples of org.eclipse.wb.core.model.broadcast.ObjectInfoDelete


  //
  // Listeners for items
  //
  ////////////////////////////////////////////////////////////////////////////
  private void addBroadcastListeners_forItems() {
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void after(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent == m_this && !isDeleting()) {
          if (getCheckItems().isEmpty()) {
            // add default item after deleting last one
View Full Code Here


            ensureLayoutData(widget);
          }
        }
      }
    });
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void before(ObjectInfo parent, ObjectInfo child) throws Exception {
        // delete this layout
        if (child == m_this) {
          onDelete();
View Full Code Here

  //
  // Listeners
  //
  ////////////////////////////////////////////////////////////////////////////
  private void ensureRootNode() {
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void after(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent == m_this && !m_this.isDeleting() && getRootNode() == null) {
          addRootNode();
        }
View Full Code Here

  //
  // Ensure checked CheckItem
  //
  ////////////////////////////////////////////////////////////////////////////
  private void initStateSuccessors() {
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void after(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent == m_this) {
          if (/*getField() == null && */!isDeleting()) {
            // Editor must have Field
View Full Code Here

  //
  // Events
  //
  ////////////////////////////////////////////////////////////////////////////
  private void ensureAtLeastOneField() {
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void after(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent == m_this && !m_this.isDeleting() && getFields().isEmpty()) {
          addDefaultField();
        }
View Full Code Here

        if (oldParent instanceof CustomCell && isParentOf(oldParent)) {
          oldParent.delete();
        }
      }
    });
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void after(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (parent instanceof CustomCell && isParentOf(parent) && !parent.isDeleting()) {
          parent.delete();
        }
View Full Code Here

  /**
   * When {@link WidgetInfo} is removed from {@link HTMLTableInfo} we should remove its
   * {@link CellConstraintsSupport} and empty trailing columns/rows.
   */
  private void cleanUpAfterChildRemove() {
    addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void before(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (child instanceof WidgetInfo && parent == HTMLTableInfo.this) {
          cleanUpWidget(child);
        }
View Full Code Here

        if (isActiveOnContainer(container)) {
          ensureLayoutDatas();
        }
      }
    });
    m_host.addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void before(ObjectInfo parent, ObjectInfo child) throws Exception {
        // delete this Layout
        if (child == m_host) {
          onDelete();
View Full Code Here

  /**
   * Deletes artifacts of widget from Java source.
   */
  public static void removeName_onDelete(XmlObjectInfo rootObject) {
    rootObject.addBroadcastListener(new ObjectInfoDelete() {
      @Override
      public void before(ObjectInfo parent, ObjectInfo child) throws Exception {
        if (child instanceof XmlObjectInfo) {
          XmlObjectInfo object = (XmlObjectInfo) child;
          removeName(object);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.core.model.broadcast.ObjectInfoDelete

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.