Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IAction.run()


    if (id == GOTO_ACTION_ID) {
      IAction gotoAction = getGotoAction();
      if (gotoAction != null) {
        if (!isMultipleStatusDialog() || isPromptToClose()) {
          okPressed(); // close the dialog
          gotoAction.run(); // run the goto action
        }
      }
    }
    super.buttonPressed(id);
  }
View Full Code Here


      List<Object> actions = Lists.newArrayList();
      buttons[0].getBroadcastObject().addSelectionActions(selectedObjects, actions);
      action = findAction(actions, actionText);
    }
    // perform alignment
    action.run();
  }

  private void setupSelectionActions(final AbsoluteLayoutInfo layout) {
    layout.addBroadcastListener(new ObjectEventListener() {
      @Override
View Full Code Here

    //
    IMenuManager contextMenu = getContextMenu(cell);
    IAction action = findChildAction(contextMenu, "Insert cell");
    assertNotNull(action);
    assertNotNull(action.getImageDescriptor());
    action.run();
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

    //
    IMenuManager contextMenu = getContextMenu(cell);
    IAction action = findChildAction(contextMenu, "Append cell");
    assertNotNull(action);
    assertNotNull(action.getImageDescriptor());
    action.run();
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

      IMenuManager orderManager = findChildMenuManager(allManager, "Order");
      action = findChildAction(orderManager, "Bring to Front");
      assertNotNull(action);
    }
    // run action
    action.run();
    assertXML(
        "<ui:UiBinder>",
        "  <g:LayoutPanel>",
        "    <g:layer left='10px' width='100px' top='50px' height='10px'>",
        "      <g:Button wbp:name='button_3'/>",
View Full Code Here

    }
    // use "right + width"
    {
      IAction action = findAction(actions, "right + width");
      action.setChecked(true);
      action.run();
    }
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:LayoutPanel>",
View Full Code Here

    }
    // use "bottom + height"
    {
      IAction action = findAction(actions, "bottom + height");
      action.setChecked(true);
      action.run();
    }
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:LayoutPanel>",
View Full Code Here

      IMenuManager orderManager = findChildMenuManager(allManager, "Order");
      action = findChildAction(orderManager, "Bring to Front");
      assertNotNull(action);
    }
    // run action
    action.run();
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:AbsolutePanel>",
        "    <g:at left='0' top='2'>",
View Full Code Here

      IMenuManager manager = getContextMenu(button);
      autoSizeAction = findChildAction(manager, "Autosize widget");
      assertNotNull(autoSizeAction);
    }
    // perform auto-size
    autoSizeAction.run();
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:AbsolutePanel>",
        "    <g:at left='1' top='2'>",
View Full Code Here

      // select "rootButton"
      canvas.select(rootButton);
      // do copy
      IAction copyAction = getCopyAction();
      assertTrue(copyAction.isEnabled());
      copyAction.run();
    }
    // paste
    {
      IAction pasteAction = getPasteAction();
      assertTrue(pasteAction.isEnabled());
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.