(fallBack: boolean = true)
| 379 | public getActiveHelpPanel(): HelpPanel |
| 380 | public getActiveHelpPanel(fallBack?: boolean): HelpPanel | undefined |
| 381 | public getActiveHelpPanel(fallBack: boolean = true): HelpPanel | undefined { |
| 382 | for (const helpPanel of this.helpPanels) { |
| 383 | if (helpPanel.panel && helpPanel.panel.active) { |
| 384 | return helpPanel; |
| 385 | } |
| 386 | } |
| 387 | if (fallBack) { |
| 388 | return this.getNewestHelpPanel(); |
| 389 | } |
| 390 | return undefined; |
| 391 | } |
| 392 | |
| 393 | // return the newest help panel |
| 394 | // if no help panel is available and createNewPanel==true, a new panel is created |
no test coverage detected