bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js
function CommandParameter (name, type, label, value, lines, eventListeners, validator) {
		this.name = name;
		this.type = type;
		this.label = label;
		this.value = value;
		this.lines = lines || 1;
		this.validator = validator;
		
		this.eventListeners = (Array.isArray(eventListeners)) ?
			eventListeners : (eventListeners ? [eventListeners] : []);
	}
function CommandParameter (name, type, label, value, lines, eventListeners, validator) {
		this.name = name;
		this.type = type;
		this.label = label;
		this.value = value;
		this.lines = lines || 1;
		this.validator = validator;
		
		this.eventListeners = (Array.isArray(eventListeners)) ?
			eventListeners : (eventListeners ? [eventListeners] : []);
	}
function CommandParameter ( name , type , label , value , lines , eventListeners , validator ) { this . name = name ; this . type = type ; this . label = label ; this . value = value ; this . lines = lines || 1 ; this . validator = validator ; this . eventListeners = ( Array . isArray ( eventListeners ) ) ? eventListeners : ( eventListeners ? [ eventListeners ] : [ ] ) ; }
A CommandParameter defines a parameter that is required by a command.

@param {String} name the name of the parameter
@param {String} type the type of the parameter, one of the HTML5 input types, or "boolean"
@param {String} [label] the (optional) label that should be used when showing the parameter
@param {String} [value] the (optional) default value for the parameter
@param {Number} [lines] the (optional) number of lines that should be shown when collecting the value.  Valid for type "text" only.
@param {Object|Array} [eventListeners] the (optional) array or single command event listener
@param {Function} [validator] a (optional) validator function

@name orion.commands.CommandParameter
@class
A CommandParameter defines a parameter that is required by a command .