bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js
function ParametersDescription (parameters, options, getParameters) {
		this._storeParameters(parameters);
		this._hasOptionalParameters = options && options.hasOptionalParameters;
		this._options = options;  // saved for making a copy
		this.optionsRequested = false;
		this.getParameters = getParameters;
		this.clientCollect = options && options.clientCollect;
		this.getParameterElement = options && options.getParameterElement;
		this.getSubmitName = options && options.getSubmitName;
		this.getCancelName = options && options.getCancelName;
		this.message = options && options.message;
	}
function ParametersDescription (parameters, options, getParameters) {
		this._storeParameters(parameters);
		this._hasOptionalParameters = options && options.hasOptionalParameters;
		this._options = options;  // saved for making a copy
		this.optionsRequested = false;
		this.getParameters = getParameters;
		this.clientCollect = options && options.clientCollect;
		this.getParameterElement = options && options.getParameterElement;
		this.getSubmitName = options && options.getSubmitName;
		this.getCancelName = options && options.getCancelName;
		this.message = options && options.message;
	}
function ParametersDescription ( parameters , options , getParameters ) { this . _storeParameters ( parameters ) ; this . _hasOptionalParameters = options && options . hasOptionalParameters ; this . _options = options ; // saved for making a copy this . optionsRequested = false ; this . getParameters = getParameters ; this . clientCollect = options && options . clientCollect ; this . getParameterElement = options && options . getParameterElement ; this . getSubmitName = options && options . getSubmitName ; this . getCancelName = options && options . getCancelName ; this . message = options && options . message ; }
A ParametersDescription defines the parameters required by a command, and whether there are additional
optional parameters that can be specified.  The command registry will attempt to collect required parameters
before calling a command callback.  The command is expected to provide UI for optional parameter, when the user has
signaled a desire to provide optional information.

@param {orion.commands.CommandParameter[]} parameters an array of CommandParameters that are required
@param {Object} options The parameters description options object.
@param {Boolean} options.hasOptionalParameters specifies whether there are additional optional parameters
that could be collected.  If true, then the collector will show an affordance for invoking an
additional options collector and the client can use the optionsRequested flag to determine whether
additional parameters should be shown.  Default is false.
@param {Boolean} options.clientCollect specifies whether the client will collect the parameters in its
callback.  Default is false, which means the callback will not be called until an attempt has
been made to collect parameters.
@param {Function} options.getParameterElement a function used to look up the DOM element for a given parameter.
@param {Function} options.getSubmitName a function used to return a name to use for the Submit button.

@param {Function} [getParameters] a function used to define the parameters just before the command is invoked.  This is used
when a particular invocation of the command will change the parameters. The function will be passed
the CommandInvocation as a parameter. Any stored parameters will be ignored, and
replaced with those returned by this function. If no parameters (empty array or <code>null</code>) are returned,
then it is assumed that the command should not try to obtain parameters before invoking the command's callback
(similar to <code>options.clientCollect === true</code>).
@name orion.commands.ParametersDescription
@class
A ParametersDescription defines the parameters required by a command and whether there are additional optional parameters that can be specified . The command registry will attempt to collect required parameters before calling a command callback . The command is expected to provide UI for optional parameter when the user has signaled a desire to provide optional information .