MCPcopy Index your code
hub / github.com/DTStack/molecule / IEditorController

Interface IEditorController

src/controller/editor.tsx:27–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25import type { UniqueId } from 'mo/common/types';
26
27export interface IEditorController extends Partial<Controller> {
28 open?<T = any>(tab: IEditorTab<T>, groupId?: UniqueId): void;
29 onClickContextMenu?: (
30 e: React.MouseEvent,
31 item: IMenuItemProps,
32 tabItem?: IEditorTab
33 ) => void;
34 onCloseAll?: (group: UniqueId) => void;
35 onCloseTab?: (tabId: UniqueId, group: UniqueId) => void;
36 onCloseToLeft?: (tab: IEditorTab, group: UniqueId) => void;
37 onCloseToRight?: (tab: IEditorTab, group: UniqueId) => void;
38 onCloseOther?: (tab: IEditorTab, group: UniqueId) => void;
39 onCloseSaved?: (group: UniqueId) => void;
40 onChangeEditorProps?: (
41 preProps: IMonacoEditorProps,
42 nextProps: IMonacoEditorProps
43 ) => void;
44 onMoveTab?: <T = any>(updateTabs: IEditorTab<T>[], group: UniqueId) => void;
45 onSelectTab?: (tabId: UniqueId, group: UniqueId) => void;
46 onClickActions: (action: IEditorActionsProps) => void;
47 onUpdateEditorIns?: (editorInstance: any, groupId: UniqueId) => void;
48 onPaneSizeChange?: (newSize: number[]) => void;
49 initEditorEvents?: (
50 editorInstance: MonacoEditor.IStandaloneCodeEditor,
51 groupId: UniqueId
52 ) => void;
53 getViewState?: (id: UniqueId) => MonacoEditor.ICodeEditorViewState;
54}
55@singleton()
56export class EditorController extends Controller implements IEditorController {
57 private editorStates = new Map();

Callers 8

openMethod · 0.65
showHideProblemsMethod · 0.65
editor.test.tsFile · 0.65
activateFunction · 0.65
addPanelMethod · 0.65
newEditorMethod · 0.65
newPaneMethod · 0.65
getFileFunction · 0.65

Implementers 3

EditorControllersrc/controller/editor.tsx
EditorServicesrc/services/workbench/editorService.t
PanelServicesrc/services/workbench/panelService.ts

Calls

no outgoing calls

Tested by

no test coverage detected