Class: ActionsManager

ActionsManager

new ActionsManager()

Manager for the actions available for an editor.
Source:

Methods

getActionById(id) → {sync.actions.AbstractAction}

Parameters:
Name Type Description
id string The id of the action.
Source:
Returns:
The action with the given id.
Type
sync.actions.AbstractAction

invokeOperation(className, params, callback, opt_selectionopt)

Invokes an Author Operation asynchronously.
Parameters:
Name Type Attributes Description
className String The name of the Java class implementing the Author Operation.
params Object An object mapping param names to parameter values.
callback function The callback to call when the operation finished executing.
opt_selection sync.api.Selection <optional>
The selection in whose context to execute the operation, if not passed the current selection is used.
Source:

refreshActionsStatus(…actionIds)

Refresh the graphical appearance of the buttons that execute the given actions to match their status:

  • enabled or not

In order to determine the new status the corresponding methods are called.

Parameters:
Name Type Attributes Description
actionIds string <repeatable>
The ids of the actions that need to be refreshed.
Source:

registerAction(id, action, shortcutopt)

Registers an action for the given id.
Parameters:
Name Type Attributes Description
id string The id of the action.
action sync.actions.AbstractAction The action to register.
shortcut * <optional>
The shortcut which invokes this action.
Source:

setActionShortcut(id, newShortcut)

Sets the shortcut for an action.
Parameters:
Name Type Description
id The ID of the action.
newShortcut The new shortcut for the action.
Source:

unregisterAction(id)

Un-registers the action with a given id.
Parameters:
Name Type Description
id string The id of the action.
Source: