Class: ActionsManager

ActionsManager

new ActionsManager()

Manager for the actions available for an editor.
Source:

Methods

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)

Registers an action for the given id.
Parameters:
Name Type Description
id string The id of the action.
action sync.actions.AbstractAction The action to register.
Source:

unregisterAction(id)

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