EditorSession
stores opened editors to reopen when loading ui
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
_listeners: {} |
|
private |
_loadedCurrentTab: boolean |
|
private |
_loadingCount: number |
|
private |
_openEditors: *[] |
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 |
openEditors(): * |
|
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:
Name | Type | Attribute | Description |
type | * | ||
cb | * |
public finishLoadingTab() source
public rememberOpenEditor(type: string, name: string, data: *, skipSetEditorTab: *): * source
remember an open editor
Params:
Name | Type | Attribute | Description |
type | string | ||
name | string | ||
data | * | ||
skipSetEditorTab | * |
Return:
* |
public remove(type: string, name: string) source
remove a editor session
Params:
Name | Type | Attribute | Description |
type | string | ||
name | string |