EditorSession
stores opened editors to reopen when loading ui
Constructor Summary
| Public Constructor | ||
| public |
constructor(userInteraction: boolean) |
|
Member Summary
| Public Members | ||
| public |
|
|
| Private Members | ||
| private |
_loadedCurrentTab: boolean |
|
| private |
_loadingCount: number |
|
| private |
listeners: * |
|
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: object, skipSetEditorTab: boolean): EditorSessionOptions remember an open editor |
|
| public |
remove(type: string, name: string) remove a editor session |
|
| public |
|
|
| public |
store() |
|
Public Constructors
public constructor(userInteraction: boolean) source
Params:
| Name | Type | Attribute | Description |
| userInteraction | boolean |
Public Members
public : *[] source
Private Members
private _loadedCurrentTab: boolean source
private _loadingCount: number source
private listeners: * 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: object, skipSetEditorTab: boolean): EditorSessionOptions source
remember an open editor
Params:
| Name | Type | Attribute | Description |
| type | string | ||
| name | string | ||
| data | object |
|
|
| skipSetEditorTab | boolean |
|
public remove(type: string, name: string) source
remove a editor session
Params:
| Name | Type | Attribute | Description |
| type | string | ||
| name | string |