Examples of RunnableEx


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

  //
  // IActionDelegate
  //
  ////////////////////////////////////////////////////////////////////////////
  public void run(IAction action) {
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        ModuleDescription module = AbstractModuleAction.getSelectedModule(getSelection());
        configure(module);
      }
    });
View Full Code Here

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

  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,
      InterruptedException {
    ExecutionUtils.runRethrow(new RunnableEx() {
      public void run() throws Exception {
        execute0();
      }
    });
  }
View Full Code Here

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

  /**
   * Sets the {@link DeviceInfo} for given object.
   */
  public static void setOrientation(final IUIObjectInfo object, final Orientation orientation) {
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        getResource(object).setPersistentProperty(KEY_ORIENTATION_ID, orientation.name());
        applyDevice(object);
      }
    });
View Full Code Here

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

  /**
   * Sets the {@link DeviceInfo} for given object.
   */
  public static void setDevice(final IUIObjectInfo object, final DeviceInfo device) {
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        // remember in resource
        {
          String id = device != null ? device.getId() : null;
          getResource(object).setPersistentProperty(KEY_DEVICE_ID, id);
View Full Code Here

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

    /**
     * Updates bounds of {@link #m_deviceFigure} and {@link #m_editPart}.
     */
    private void refreshVisuals() {
      ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          refreshVisualsEx();
        }
      });
    }
View Full Code Here

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

    /**
     * Updates this item and {@link DeviceAction}'s.
     */
    private void updateActions() {
      ExecutionUtils.runLog(new RunnableEx() {
        public void run() throws Exception {
          DeviceInfo currentDevice = getDevice(m_rootObject);
          for (DeviceAction deviceAction : m_deviceActions) {
            if (deviceAction.m_device == currentDevice) {
              String text;
View Full Code Here

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

            "  }",
            "}");
    refresh();
    //
    final WidgetInfo widget = createJavaInfo("com.google.gwt.user.client.ui.TextBox");
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        flowContainer_CREATE(frame, widget, null);
        widget.getSizeSupport().setSize(100, 50);
      }
    });
View Full Code Here

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

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Set new value for {@link Property} as edit operation.
   */
  private void setSizeProperty(final Property property, final Object value) throws Exception {
    ExecutionUtils.run(m_lastParseInfo, new RunnableEx() {
      public void run() throws Exception {
        property.setValue(value);
      }
    });
  }
View Full Code Here

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

    refresh();
    MenuBarInfo bar = getJavaInfoByName("bar");
    final MenuItemInfo item = bar.getItems().get(0);
    //
    {
      RunnableEx runnable = new RunnableEx() {
        public void run() throws Exception {
          item.openCommand();
        }
      };
      check_menuItem_openCommand0(frame, runnable);
View Full Code Here

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

    refresh();
    MenuBarInfo bar = getJavaInfoByName("bar");
    final MenuItemInfo item = bar.getItems().get(0);
    //
    {
      RunnableEx runnable = new RunnableEx() {
        public void run() throws Exception {
          item.openCommand();
        }
      };
      check_menuItem_openCommand(frame, runnable);
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.