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

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


  //
  ////////////////////////////////////////////////////////////////////////////
  public ImplicitLayoutCreationSupport(ContainerInfo container) {
    m_container = container;
    // add listeners
    m_container.addBroadcastListener(new ObjectInfoChildAddBefore() {
      public void invoke(ObjectInfo parent, ObjectInfo child, ObjectInfo[] nextChild)
          throws Exception {
        if (isAddNewLayout(parent, child) && parent.getChildren().contains(m_javaInfo)) {
          if (nextChild[0] == m_javaInfo) {
            nextChild[0] = GenericsUtils.getNextOrNull(parent.getChildren(), m_javaInfo);
View Full Code Here


            ensureLayoutData(widget);
          }
        }
      }
    });
    addBroadcastListener(new ObjectInfoChildAddBefore() {
      public void invoke(ObjectInfo parent, ObjectInfo child, ObjectInfo[] nextChild)
          throws Exception {
        // add new LayoutData - remove existing one
        if (parent instanceof WidgetInfo
            && child instanceof LayoutDataInfo
View Full Code Here

TOP

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

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.