Examples of StopAction


Examples of games.stendhal.server.actions.attack.StopAction

   * Tests for onAction.
   */
  @Test
  public void testOnAction() {

    final StopAction sa = new StopAction();
    PlayerTestHelper.generatePlayerRPClasses();
    final Player player = new Player(new RPObject()) {
      @Override
      public void stopAttack() {
        stopattack = true;

      }

      @Override
      public void notifyWorldAboutChanges() {
        notify = true;

      }

    };
    final RPAction action = new RPAction();
    sa.onAction(player, action);

    assertTrue(notify);
    assertFalse(stopattack);
    action.put("attack", "value");
    notify = false;
    stopattack = false;

    sa.onAction(player, action);

    assertTrue(notify);
    assertTrue(stopattack);

  }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.actions.StopAction

        rename.setEnabled( false );

        run = new RunAction( this );
        run.setEnabled( false );

        stop = new StopAction( this );
        stop.setEnabled( false );

        createConnection = new CreateConnectionAction( this );
        createConnection.setEnabled( false );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.actions.StopAction

        rename.setEnabled( false );

        run = new RunAction( this );
        run.setEnabled( false );

        stop = new StopAction( this );
        stop.setEnabled( false );

        createConnection = new CreateConnectionAction( this );
        createConnection.setEnabled( false );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.actions.StopAction

        rename.setEnabled( false );

        run = new RunAction( this );
        run.setEnabled( false );

        stop = new StopAction( this );
        stop.setEnabled( false );

        createConnection = new CreateConnectionAction( this );
        createConnection.setEnabled( false );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.actions.StopAction

        rename.setEnabled( false );

        run = new RunAction( this );
        run.setEnabled( false );

        stop = new StopAction( this );
        stop.setEnabled( false );

        createConnection = new CreateConnectionAction( this );
        createConnection.setEnabled( false );
View Full Code Here

Examples of org.apache.directory.studio.ldapservers.actions.StopAction

        rename.setEnabled( false );

        start = new StartAction( this );
        start.setEnabled( false );

        stop = new StopAction( this );
        stop.setEnabled( false );

        properties = new PropertiesAction( this );
        properties.setEnabled( false );
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.runtime.io.StopAction

                            break;
                        case START:
                            task = new StartAction(in, out);
                            break;
                        case STOP:
                            task = new StopAction(in, out);
                            break;
                        case UNINSTALL:
                            task = new UninstallAction(in, out);
                            break;
                        case UPDATE:
View Full Code Here

Examples of org.apache.felix.sigil.common.runtime.io.StopAction

    public void stop(long bundle) throws IOException, BundleException
    {
        if (socket == null)
            throw new IllegalStateException("Not connected");
        new StopAction(in, out).client(bundle);
    }
View Full Code Here

Examples of org.jampa.gui.actions.StopAction

      }
    });
   
    btnStop.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        new StopAction().run();
      }
    });
   
    btnNext.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
View Full Code Here

Examples of org.jampa.gui.actions.StopAction

     */
    int seekStep = Controller.getInstance().getPreferenceStore().getInt(PreferenceConstants.PLAYERVIEW_SEEK_STEP);
   
    stopAction = new Action(Messages.getString("PlayerView.BtnStop"), SWT.NONE) {
      public void run() {
        new StopAction().run();
      }
    };
    stopAction.setImageDescriptor(ToolbarImageFactory.getInstance().getImageDescriptor("stop", _toolbarSize));
    stopAction.setEnabled(false);
   
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.