Package org.jampa.gui.actions

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


    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

    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

TOP

Related Classes of org.jampa.gui.actions.PauseAction

Copyright © 2018 www.massapicom. 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.