Examples of RunnableEx


Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  //
  // Destroy
  //
  ////////////////////////////////////////////////////////////////////////////
  private static void destroyComponents(final JavaInfo root) {
    ExecutionUtils.runIgnore(new RunnableEx() {
      public void run() throws Exception {
        destroyComponents0(root);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

    // impossible
    return Property.UNKNOWN_VALUE;
  }

  public void setWidth(final WidgetInfo widget, final Object value) throws Exception {
    ExecutionUtils.run(this, new RunnableEx() {
      public void run() throws Exception {
        setWidth0(widget, value);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

    final String script = JavaInfoUtils.getParameter(this, "GWTExt.configureBeforeAssociation");
    if (script != null) {
      new ComponentConfiguratorBeforeAssociation(this) {
        @Override
        protected void configure() throws Exception {
          ExecutionUtils.runLog(new RunnableEx() {
            public void run() throws Exception {
              JavaInfoUtils.executeScript(m_this, script);
            }
          });
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  //
  ////////////////////////////////////////////////////////////////////////////
  private boolean m_changingHeight;

  public void setHeight(final int height) throws Exception {
    ExecutionUtils.run(this, new RunnableEx() {
      public void run() throws Exception {
        setHeight0(height);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

      }
    });
  }

  public void setHeight(final String height) throws Exception {
    ExecutionUtils.run(this, new RunnableEx() {
      public void run() throws Exception {
        setHeight0(height);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  /**
   * Visits grid {@link WidgetInfo}'s of this {@link ContainerInfo}.
   */
  void visitWidgets(final WidgetVisitor visitor) {
    ExecutionUtils.runRethrow(new RunnableEx() {
      public void run() throws Exception {
        for (WidgetInfo component : getContainer().getChildrenWidgets()) {
          TableLayoutDataInfo cell = getTableData(component);
          visitor.visit(component, cell);
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  /**
   * @return the {@link IGridInfo} that describes this layout.
   */
  public IGridInfo getGridInfo() {
    if (m_gridInfo == null) {
      ExecutionUtils.runRethrow(new RunnableEx() {
        public void run() throws Exception {
          createGridInfo();
        }
      });
    }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

        }
      }
    }

    private boolean decorateChild_childOnly(final EditPart child) {
      return ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          Constructor<?> constructor = m_policyClass.getConstructors()[0];
          EditPolicy editPolicy = (EditPolicy) constructor.newInstance(child.getModel());
          child.installEditPolicy(SELECTION_ID, editPolicy);
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

        }
      });
    }

    private void decorateChild_layoutAndChild(final EditPart child) {
      ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          Constructor<?> constructor = m_policyClass.getConstructors()[0];
          EditPolicy editPolicy = (EditPolicy) constructor.newInstance(m_layout, child.getModel());
          child.installEditPolicy(SELECTION_ID, editPolicy);
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  }

  private void removeListener(final ComponentInfo component, EventDescription description) {
    final MethodInvocation invocation = getInvocation(component, description);
    if (invocation != null) {
      ExecutionUtils.run(component, new RunnableEx() {
        public void run() throws Exception {
          component.getEditor().removeEnclosingStatement(invocation);
        }
      });
    }
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.