Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Class. Switch Edit Mode Command

elementsToDeactivate

protected elementsToDeactivate: SModelElementImpl[] = []

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:51


handlesToRemove

protected handlesToRemove: object[] = []

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:52

handle

handle: SRoutingHandleImpl

parent

parent: SRoutableElementImpl

point?

optional point: Point


KIND

readonly static KIND: string = SwitchEditModeAction.KIND

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:46

Methods

doExecute()

protected doExecute(context): SModelRootImpl

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:81

Parameters

context

CommandExecutionContext

Returns

SModelRootImpl


execute()

execute(context): CommandReturn

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:58

Parameters

context

CommandExecutionContext

Returns

CommandReturn

Overrides

Command.execute


redo()

redo(context): CommandReturn

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:141

Parameters

context

CommandExecutionContext

Returns

CommandReturn

Overrides

Command.redo


shouldRemoveHandle()

protected shouldRemoveHandle(handle, parent): boolean

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:112

Parameters

handle

SRoutingHandleImpl

parent

SRoutableElementImpl

Returns

boolean


undo()

undo(context): CommandReturn

Defined in: packages/sprotty/src/features/edit/edit-routing.ts:120

Parameters

context

CommandExecutionContext

Returns

CommandReturn

Overrides

Command.undo