Source: actionsmanager.js

goog.provide('sync.api.ActionsManager');


/**
 * Manager for the actions available for an editor.
 *
 * @constructor
 */
sync.api.ActionsManager = function() {
};


/**
 * Invokes an Author Operation asynchronously.
 *
 * @param {String} className The name of the Java class implementing the Author Operation.
 * @param {Object} params An object mapping param names to parameter values.
 * @param {function()} callback The callback to call when the operation finished executing.
 * @param {sync.api.Selection=} opt_selection The selection in whose context to execute the operation,
 * if not passed the current selection is used.
 */
sync.api.ActionsManager.prototype.invokeOperation = function(className, params, callback, opt_selection) {
};


/**
 * Registers an action for the given id.
 *
 * @param {string} id The id of the action.
 * @param {sync.actions.AbstractAction} action The action to register.
 */
sync.api.ActionsManager.prototype.registerAction = function(id, action) {
};


/**
 * Un-registers the action with a given id.
 *
 * @param {string} id The id of the action.
 */
sync.api.ActionsManager.prototype.unregisterAction = function(id) {
};

/**
 * <p>Refresh the graphical appearance of the buttons that execute the given actions to match their status:
 * <ul>
 *   <li>enabled or not
 * </ul>
 *
 * <p>In order to determine the new status the corresponding methods are called.
 *
 * @param {...string} actionIds The ids of the actions that need to be refreshed.
 */
sync.api.ActionsManager.prototype.refreshActionsStatus = function(actionIds) {
};