StopControllersTool.js 524 B

123456789101112131415161718192021222324
  1. /*
  2. * StopControllersTool.js
  3. *
  4. * @author realor
  5. */
  6. import { Tool } from './Tool.js'
  7. class StopControllersTool extends Tool {
  8. constructor(application, options) {
  9. super(application)
  10. this.name = 'stop_controllers'
  11. this.label = 'tool.stop_controllers.label'
  12. this.className = 'stop_controllers'
  13. this.immediate = true
  14. this.setOptions(options)
  15. }
  16. execute() {
  17. this.application.stopControllers()
  18. }
  19. }
  20. export { StopControllersTool }