Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FrontendApplication

Hierarchy

  • FrontendApplication

Index

Constructors

constructor

Properties

Protected Readonly _shell

Protected Readonly commands

commands: CommandRegistry

Protected Readonly contributions

Protected Readonly corePreferences

corePreferences: CorePreferences

Protected inComposition

inComposition: boolean = false

Protected Readonly keybindings

keybindings: KeybindingRegistry

Protected Readonly layoutRestorer

layoutRestorer: ShellLayoutRestorer

Protected Readonly menus

Protected Readonly stateService

Protected Readonly windowsService

windowsService: WindowService

Accessors

shell

Methods

Protected attachShell

  • attachShell(host: HTMLElement): void

Protected createDefaultLayout

  • createDefaultLayout(): Promise<void>

Protected fireOnDidInitializeLayout

  • fireOnDidInitializeLayout(): Promise<void>

Protected getHost

  • getHost(): Promise<HTMLElement>

Protected getStartupIndicator

  • getStartupIndicator(host: HTMLElement): HTMLElement | undefined

Protected initializeLayout

  • initializeLayout(): Promise<void>

Protected measure

  • measure<T>(name: string, fn: () => MaybePromise<T>): Promise<T>

Protected registerCompositionEventListeners

  • registerCompositionEventListeners(): void

Protected registerEventListeners

  • registerEventListeners(): void

Protected restoreLayout

  • restoreLayout(): Promise<boolean>

Protected revealShell

  • revealShell(host: HTMLElement): Promise<void>
  • If a startup indicator is present, it is first hidden with the theia-hidden CSS class and then removed after a while. The delay until removal is taken from the CSS transition duration.

    Parameters

    • host: HTMLElement

    Returns Promise<void>

start

  • start(): Promise<void>
  • Start the frontend application.

    Start up consists of the following steps:

    • start frontend contributions
    • attach the application shell to the host element
    • initialize the application shell layout
    • reveal the application shell if it was hidden by a startup indicator

    Returns Promise<void>

Protected startContributions

  • startContributions(): Promise<void>

Protected stopContributions

  • stopContributions(): void