org.apache.jmeter.gui.action

## Class AbstractActionWithNoRunningTest

- java.lang.Object
- - org.apache.jmeter.gui.action.AbstractAction
  - - org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest

- All Implemented Interfaces:
    Command
  Direct Known Subclasses:
    ChangeLanguage, Close, ExitCommand, Load, Restart, RevertProject, TemplatesCommand

      public abstract class AbstractActionWithNoRunningTest
      extends AbstractAction

  `AbstractAction` implementation that check no test is running before calling `doActionAfterCheck(ActionEvent)`
  Since:
    3.1

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractActionWithNoRunningTest()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `doAction(ActionEvent e)`
    `protected abstract void` | `doActionAfterCheck(ActionEvent e)` Called to handle `ActionEvent` only if no test is running

    - ### Methods inherited from class org.apache.jmeter.gui.action.AbstractAction

      `getParentFrame, popupCheckExistingFileListener, popupShouldSave`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.jmeter.gui.action.Command

      `getActionNames`

- - ### Constructor Detail

    - #### AbstractActionWithNoRunningTest

          public AbstractActionWithNoRunningTest()

  - ### Method Detail

    - #### doAction

          public final void doAction(ActionEvent e)
                              throws IllegalUserActionException

      Specified by:
        `doAction` in interface `Command`
      Overrides:
        `doAction` in class `AbstractAction`
      Throws:
        `IllegalUserActionException`
      See Also:
        `Command.doAction(ActionEvent)`

    - #### doActionAfterCheck

          protected abstract void doActionAfterCheck(ActionEvent e)
                                              throws IllegalUserActionException

      Called to handle `ActionEvent` only if no test is running
      Parameters:
        `e` - `ActionEvent`
      Throws:
        `IllegalUserActionException` - when user action is invalid

Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.