Package org.eclipse.jface.action

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


        public void handleEvent(Event e) {

          IAction actionToExecute = new ChangeModeAction(type, type.getShortName(),
                  AnnotationEditor.this);

          actionToExecute.run();
        }
      });
    }
  }
View Full Code Here


    IWorkbenchWindow activeWindow = HandlerUtil
        .getActiveWorkbenchWindowChecked(event);

    if (wizardId == null) {
      IAction wizardAction = createWizardChooserDialogAction(activeWindow);
      wizardAction.run();
    } else {

      IWizardRegistry wizardRegistry = getWizardRegistry();
      IWizardDescriptor wizardDescriptor = wizardRegistry
          .findWizard(wizardId);
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

    }
    // paste
    {
      IAction pasteAction = getPasteAction();
      assertTrue(pasteAction.isEnabled());
      pasteAction.run();
    }
    // move on "panel": has feedback, has command
    canvas.moveTo(panel);
    canvas.assertFeedbacks(canvas.getTargetPredicate(panel));
    canvas.assertCommandNotNull();
View Full Code Here

      // select "button"
      canvas.select(button);
      // do copy
      IAction copyAction = getCopyAction();
      assertTrue(copyAction.isEnabled());
      copyAction.run();
    }
    // paste
    {
      IAction pasteAction = getPasteAction();
      assertTrue(pasteAction.isEnabled());
View Full Code Here

    }
    // paste
    {
      IAction pasteAction = getPasteAction();
      assertTrue(pasteAction.isEnabled());
      pasteAction.run();
    }
    // move on "panel": has feedback, no command
    canvas.moveTo(panel);
    canvas.assertFeedbacks(canvas.getTargetPredicate(panel));
    canvas.assertCommandNull();
View Full Code Here

    //
    RunnableEx runnable = new RunnableEx() {
      public void run() throws Exception {
        IAction action = findChildAction(getContextMenu(item), "Open Command");
        assertNotNull(action);
        action.run();
      }
    };
    check_menuItem_openCommand(frame, runnable);
  }
View Full Code Here

  private void invokeAction(final String actionId) {
    final IAction action = ((ITextEditor) partReference.getEditor(false)).getAction(actionId);
    syncExec(new VoidResult() {
      public void run() {
        log.debug(MessageFormat.format("Activating action with id {0}", actionId));
        action.run();
      }
    });
  }

  private List<String> getRows(SWTBotTable table) {
View Full Code Here

  private void invokeAction(final String actionId) {
    final IAction action = ((ITextEditor) partReference.getEditor(false)).getAction(actionId);
    syncExec(new VoidResult() {
      public void run() {
        log.debug(MessageFormat.format("Activating action with id {0}", actionId));
        action.run();
      }
    });
  }

  private List<String> getRows(SWTBotTable table) {
View Full Code Here

    public void modeChanged(Type newMode) {
      IAction actionToExecute = new ChangeModeAction(newMode, newMode.getShortName(),
              AnnotationEditor.this);

      actionToExecute.run();
    }});

    modeMenuManager.add(modeMenu);

    // annotation menu
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.