RebuildTool.js 510 B

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