(viewClass: BaseViewType)
| 70 | } |
| 71 | |
| 72 | unregisterView(viewClass: BaseViewType) { |
| 73 | if (!this.#views.includes(viewClass)) |
| 74 | throw new Error(`There is no View named "${viewClass.name}".`); |
| 75 | const assistantManager = require('./assistant-manager').default; |
| 76 | if (assistantManager.getAssistants().find(a => a.viewClass == viewClass)) |
| 77 | throw new Error(`Can not unregister View "${viewClass.name}" because there is an assistant using it.`); |
| 78 | this.#views.splice(this.#views.indexOf(viewClass), 1); |
| 79 | } |
| 80 | |
| 81 | getRegisteredViews() { |
| 82 | return this.#views; |
nothing calls this directly
no test coverage detected