Examples of PauseAction


Examples of org.destecs.ide.simeng.actions.PauseAction

   * The constructor.
   */
  public InfoTableView() {
    // createMenu();
    this.terminationAction = new TerminationAction();
    this.pauseAction = new PauseAction();
    this.resumeAction = new ResumeAction();
    this.resumeAction.setEnabled(false);

    // this.pauseAction.setResume(this.resumeAction);
    // this.resumeAction.setPause(this.pauseAction);
View Full Code Here

Examples of org.jampa.gui.actions.PauseAction

 
  private void connectListenners() {
    btnPause.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        if (Controller.getInstance().getEngine().isPlaying()) {
          new PauseAction().run();                   
        }
      }
    });
   
    btnStop.addSelectionListener(new SelectionAdapter() {
View Full Code Here

Examples of org.jampa.gui.actions.PauseAction

    stopAction.setImageDescriptor(ToolbarImageFactory.getInstance().getImageDescriptor("stop", _toolbarSize));
    stopAction.setEnabled(false);
   
    pauseAction = new Action(Messages.getString("PlayerView.BtnPause"), SWT.TOGGLE) {
      public void run() {
        new PauseAction().run();
      }
    };
    pauseAction.setImageDescriptor(ToolbarImageFactory.getInstance().getImageDescriptor("pause", _toolbarSize));
    pauseAction.setEnabled(false);   
   
View Full Code Here

Examples of org.jampa.gui.actions.PauseAction

    handlerService.activateHandler("Jampa.menuStop", new ActionHandler(stopAction));
    stopAction.setEnabled(false);
   
    pauseAction = new Action(Messages.getString("Menu.Actions.Pause"), SWT.NONE) {
      public void run() {
        new PauseAction().run();
      }
    };
    pauseAction.setImageDescriptor(Activator.getImageDescriptor("/icons/pause_16.png"));
    pauseAction.setActionDefinitionId("Jampa.menuPause");
    handlerService.activateHandler("Jampa.menuPause", new ActionHandler(pauseAction));
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.support.actions.PauseAction

    public boolean start() throws Exception {
        // record this input
        getPauseAction().add(this);

        // This node causes the flow to pause at this point so we mark it as a "Pause Node".
        node.addAction(new PauseAction("Input"));

        String baseUrl = '/' + run.getUrl() + getPauseAction().getUrlName() + '/';
        if (input.getParameters().isEmpty()) {
            String thisUrl = baseUrl + Util.rawEncode(getId()) + '/';
            listener.getLogger().printf("%s%n%s or %s%n", input.getMessage(),
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.support.actions.PauseAction

        };

        Assert.assertEquals(false, PauseAction.isPaused(flowNode));
        Assert.assertEquals(0L, PauseAction.getPauseDuration(flowNode));

        flowNode.addAction(new PauseAction("P1"));
        PauseAction firstPause = PauseAction.getCurrentPause(flowNode);
        Assert.assertEquals("P1", firstPause.getCause());
        Assert.assertEquals(true, PauseAction.isPaused(flowNode));
        Thread.sleep(200);
        Assert.assertTrue(PauseAction.getPauseDuration(flowNode) > 100L);

        PauseAction.endCurrentPause(flowNode);
        Assert.assertEquals(false, PauseAction.isPaused(flowNode));
        long firstPauseDuration = firstPause.getPauseDuration();

        Thread.sleep(200);
        Assert.assertEquals(firstPauseDuration, PauseAction.getPauseDuration(flowNode));

        flowNode.addAction(new PauseAction("P2"));
        PauseAction secondPause = PauseAction.getCurrentPause(flowNode);
        Assert.assertEquals("P2", secondPause.getCause());
        Assert.assertEquals(true, PauseAction.isPaused(flowNode));
        Thread.sleep(200);
        Assert.assertTrue(PauseAction.getPauseDuration(flowNode) > firstPauseDuration);

        PauseAction.endCurrentPause(flowNode);
        Assert.assertEquals(false, PauseAction.isPaused(flowNode));
        long secondPauseDuration = secondPause.getPauseDuration();

        Thread.sleep(200);
        Assert.assertEquals((firstPauseDuration + secondPauseDuration), PauseAction.getPauseDuration(flowNode));
    }
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.