Skip to main content
Version: Next

Interface: IEditorController

molecule.IEditorController

Hierarchy

Methods

count

Optional count(name): number

Count the service event

Parameters

NameTypeDescription
namestringEvent name

Returns

number

Inherited from

Partial.count

Defined in

common/event/eventBus.ts:28


emit

Optional emit(name, ...args): void

Emit the service event

Parameters

NameTypeDescription
namestringEvent name
...argsanyArguments

Returns

void

Inherited from

Partial.emit

Defined in

common/event/eventBus.ts:20


getViewState

Optional getViewState(id): ICodeEditorViewState

Parameters

NameType
idUniqueId

Returns

ICodeEditorViewState

Defined in

controller/editor.tsx:53


initEditorEvents

Optional initEditorEvents(editorInstance, groupId): void

Parameters

NameType
editorInstanceIStandaloneCodeEditor
groupIdUniqueId

Returns

void

Defined in

controller/editor.tsx:49


initView

Optional Abstract initView(): void

Returns

void

Inherited from

Partial.initView

Defined in

react/controller.ts:4


onChangeEditorProps

Optional onChangeEditorProps(preProps, nextProps): void

Parameters

NameType
prePropsIMonacoEditorProps
nextPropsIMonacoEditorProps

Returns

void

Defined in

controller/editor.tsx:40


onClickActions

onClickActions(action): void

Parameters

NameType
actionIEditorActionsProps

Returns

void

Defined in

controller/editor.tsx:46


onClickContextMenu

Optional onClickContextMenu(e, item, tabItem?): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
itemIMenuItemProps
tabItem?IEditorTab<BuiltInEditorTabDataType>

Returns

void

Defined in

controller/editor.tsx:29


onCloseAll

Optional onCloseAll(group): void

Parameters

NameType
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:34


onCloseOther

Optional onCloseOther(tab, group): void

Parameters

NameType
tabIEditorTab<BuiltInEditorTabDataType>
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:38


onCloseSaved

Optional onCloseSaved(group): void

Parameters

NameType
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:39


onCloseTab

Optional onCloseTab(tabId, group): void

Parameters

NameType
tabIdUniqueId
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:35


onCloseToLeft

Optional onCloseToLeft(tab, group): void

Parameters

NameType
tabIEditorTab<BuiltInEditorTabDataType>
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:36


onCloseToRight

Optional onCloseToRight(tab, group): void

Parameters

NameType
tabIEditorTab<BuiltInEditorTabDataType>
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:37


onMoveTab

Optional onMoveTab<T>(updateTabs, group): void

Type parameters

NameType
Tany

Parameters

NameType
updateTabsIEditorTab<T>[]
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:44


onPaneSizeChange

Optional onPaneSizeChange(newSize): void

Parameters

NameType
newSizenumber[]

Returns

void

Defined in

controller/editor.tsx:48


onSelectTab

Optional onSelectTab(tabId, group): void

Parameters

NameType
tabIdUniqueId
groupUniqueId

Returns

void

Defined in

controller/editor.tsx:45


onUpdateEditorIns

Optional onUpdateEditorIns(editorInstance, groupId): void

Parameters

NameType
editorInstanceany
groupIdUniqueId

Returns

void

Defined in

controller/editor.tsx:47


open

Optional open<T>(tab, groupId?): void

Type parameters

NameType
Tany

Parameters

NameType
tabIEditorTab<T>
groupId?UniqueId

Returns

void

Defined in

controller/editor.tsx:28


subscribe

Optional subscribe(name, listener): void

Subscribe the service event

Parameters

NameTypeDescription
namestring | string[]Event name
listenerFunctionListener function

Returns

void

Inherited from

Partial.subscribe

Defined in

common/event/eventBus.ts:11


unsubscribe

Optional unsubscribe(name, listener?): void

Unsubscribe the specific event and the listener function

Parameters

NameTypeDescription
nameanyThe event name
listener?Functionoptional, it unsubscribes events via name if not pass the listener function

Returns

void

Inherited from

Partial.unsubscribe

Defined in

common/event/eventBus.ts:37