Examples of RunnableEx


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

            "}");
    frame.refresh();
    final WidgetInfo button = createWidget("test.client.MyButton");
    // schedule ask in async
    final Image[] asyncImage = new Image[1];
    ExecutionUtils.runLogLater(new RunnableEx() {
      public void run() throws Exception {
        asyncImage[0] = button.getImage();
      }
    });
    // ask image in this (event) thread
View Full Code Here

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

  /**
   * Call enter() as if this UI was create as result of call from JavaScript.
   */
  private void call_Impl_enter() {
    if (isRoot()) {
      ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          ClassLoader classLoader = getContext().getClassLoader();
          Class<?> class_Impl = classLoader.loadClass("com.google.gwt.core.client.impl.Impl");
          ReflectionUtils.invokeMethod(class_Impl, "enter()");
        }
View Full Code Here

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

  /**
   * Call exit() as if this UI was create as result of call from JavaScript.
   */
  private void call_Impl_exit() {
    if (isRoot()) {
      ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          ClassLoader classLoader = getContext().getClassLoader();
          Class<?> class_Impl = classLoader.loadClass("com.google.gwt.core.client.impl.Impl");
          ReflectionUtils.invokeMethod(class_Impl, "exit(boolean)", true);
        }
View Full Code Here

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

   */
  private void setDefaultSizeIfEmpty(final WidgetInfo widget) {
    Rectangle bounds = widget.getBounds();
    if (bounds.width == 0 || bounds.height == 0) {
      m_shouldSetSize = true;
      ExecutionUtils.run(widget, new RunnableEx() {
        public void run() throws Exception {
          widget.getSizeSupport().setSize(100, 100);
        }
      });
    }
View Full Code Here

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

      }
      // JavaDoc
      {
        final BrowserComposite browserComposite = new BrowserComposite(dialogArea, SWT.BORDER);
        GridDataFactory.create(browserComposite).spanH(2).hintC(60, 10).grab().fill();
        ExecutionUtils.runIgnore(new RunnableEx() {
          public void run() throws Exception {
            IJavaProject javaProject = m_object.getContext().getJavaProject();
            IType type = javaProject.findType("com.google.gwt.i18n.client.NumberFormat");
            List<String> lines = JavaDocUtils.getJavaDocLines(type, false);
            String text = Joiner.on(" ").join(lines);
View Full Code Here

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

  /**
   * This method is used by description based "Edge" property.
   */
  void setEdge(final WidgetInfo widget, final Object edge) throws Exception {
    if (edge instanceof String) {
      ExecutionUtils.run(this, new RunnableEx() {
        public void run() throws Exception {
          setEdge(widget, (String) edge);
        }
      });
    }
View Full Code Here

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

    @Override
    public void setValue(Object value) throws Exception {
      if (value instanceof Double) {
        final double doubleValue = ((Double) value).doubleValue();
        ExecutionUtils.run(LayoutPanelInfo.this, new RunnableEx() {
          public void run() throws Exception {
            setUnits(m_layer, m_value.attribute, m_value.unit, doubleValue);
          }
        });
      }
View Full Code Here

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

    @Override
    public void setValue(Object value) throws Exception {
      if (value instanceof String) {
        final Object newUnit = getUnitByName(((String) value));
        ExecutionUtils.run(LayoutPanelInfo.this, new RunnableEx() {
          public void run() throws Exception {
            setUnit(m_value, newUnit);
          }
        });
      }
View Full Code Here

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

    }
  }

  public void setSize(final String width, final String height) throws Exception {
    if (width != null || height != null) {
      ExecutionUtils.run(m_object, new RunnableEx() {
        public void run() throws Exception {
          setSize0(width, height);
        }
      });
    }
View Full Code Here

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

    @Override
    public void setValue(Object value) throws Exception {
      if (value instanceof Double) {
        final double pixels = ((Double) value).doubleValue();
        ExecutionUtils.run(LayoutPanelInfo.this, new RunnableEx() {
          public void run() throws Exception {
            setInvocationArgument(m_invocation, m_index, pixels);
          }
        });
      }
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.