Home Reference Source
import EditorSession from './ui/elements/tabpanel/editor_session.js'
public class | source

EditorSession

stores opened editors to reopen when loading ui

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private
private

_loadingCount: number

private

Method Summary

Public Methods
public

addListener(type: *, cb: *)

add listener, a callback will be executed for this type when editor is reopened.

public
public

loaded(): *

public

open()

reopen saved editors

public
public

rememberOpenEditor(type: string, name: string, data: *, skipSetEditorTab: *): *

remember an open editor

public

remove(type: string, name: string)

remove a editor session

public
public

store()

Public Constructors

public constructor() source

Private Members

private _listeners: {} source

private _loadedCurrentTab: boolean source

private _loadingCount: number source

private _openEditors: *[] source

Public Methods

public addListener(type: *, cb: *) source

add listener, a callback will be executed for this type when editor is reopened.

Params:

NameTypeAttributeDescription
type *
cb *

public finishLoadingTab() source

public loaded(): * source

Return:

*

public open() source

reopen saved editors

public openEditors(): * source

Return:

*

public rememberOpenEditor(type: string, name: string, data: *, skipSetEditorTab: *): * source

remember an open editor

Params:

NameTypeAttributeDescription
type string
name string
data *
skipSetEditorTab *

Return:

*

public remove(type: string, name: string) source

remove a editor session

Params:

NameTypeAttributeDescription
type string
name string

public startLoadingTab() source

public store() source