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

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


  /**
   * {@link CustomCell} should always have a {@link WidgetInfo} child, so when it looses it, we
   * should remove {@link CustomCell} too.
   */
  private void removeEmptyCustomCell() {
    addBroadcastListener(new XmlObjectMove() {
      @Override
      public void after(XmlObjectInfo child, ObjectInfo oldParent, ObjectInfo newParent)
          throws Exception {
        if (oldParent instanceof CustomCell && isParentOf(oldParent)) {
          oldParent.delete();
View Full Code Here


  ////////////////////////////////////////////////////////////////////////////
  /**
   * When {@link WidgetInfo} is moved out of its {@link StackPanelInfo}.
   */
  private void removeStackText_whenMoveOut() {
    addBroadcastListener(new XmlObjectMove() {
      @Override
      public void before(XmlObjectInfo child, ObjectInfo oldParent, ObjectInfo newParent)
          throws Exception {
        if (oldParent == StackPanelInfo.this && newParent != oldParent) {
          Property property = getStackTextProperty(child);
View Full Code Here

      @Override
      public void after(ObjectInfo parent, XmlObjectInfo child) throws Exception {
        setSize(child);
      }
    });
    root.addBroadcastListener(new XmlObjectMove() {
      @Override
      public void after(XmlObjectInfo child, ObjectInfo oldParent, ObjectInfo newParent)
          throws Exception {
        if (newParent != oldParent) {
          setSize(child);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectMove

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.