BCFTool.js 681 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * BCFTool.js
  3. *
  4. * @author realor
  5. */
  6. import { Tool } from './Tool.js'
  7. import { BCFPanel } from '../ui/BCFPanel.js'
  8. import { I18N } from '../i18n/I18N.js'
  9. class BCFTool extends Tool {
  10. constructor(application, options) {
  11. super(application)
  12. this.name = 'bcf'
  13. this.label = 'bim|tool.bcf.label'
  14. this.help = 'bim|tool.bcf.help'
  15. this.className = 'bcf'
  16. this.immediate = true
  17. this.setOptions(options)
  18. this.panel = new BCFPanel(this.application)
  19. application.panelManager.addPanel(this.panel)
  20. }
  21. execute() {
  22. this.panel.visible = true
  23. }
  24. }
  25. export { BCFTool }