bundles/org.eclipse.orion.client.ui/web/orion/tasks.js
function TaskList(options) {
		var parent = lib.node(options.parent);
		if (!parent) { throw messages['no parent']; }
		if (!options.serviceRegistry) {throw messages["no service registry"]; }
		this._parent = parent;
		this._registry = options.serviceRegistry;	
		this._description = options.description;
		this._tasks = options.tasks;
		this._title = options.title || messages["Tasks"];
		this._collapsed = options.collapsed;
		this._id = options.id || this._parent.id + "taskList"; //$NON-NLS-0$
		this._contentId = this._parent.id + "taskContent"; //$NON-NLS-0$
		this._item = options.item;
		this._handler = options.handler;
		this._commandService = options.commandService;
		this._descriptionProperty = options.descriptionProperty;
		
		this.renderTasks();
	}
function TaskList(options) {
		var parent = lib.node(options.parent);
		if (!parent) { throw messages['no parent']; }
		if (!options.serviceRegistry) {throw messages["no service registry"]; }
		this._parent = parent;
		this._registry = options.serviceRegistry;	
		this._description = options.description;
		this._tasks = options.tasks;
		this._title = options.title || messages["Tasks"];
		this._collapsed = options.collapsed;
		this._id = options.id || this._parent.id + "taskList"; //$NON-NLS-0$
		this._contentId = this._parent.id + "taskContent"; //$NON-NLS-0$
		this._item = options.item;
		this._handler = options.handler;
		this._commandService = options.commandService;
		this._descriptionProperty = options.descriptionProperty;
		
		this.renderTasks();
	}
function TaskList ( options ) { var parent = lib . node ( options . parent ) ; if ( ! parent ) { throw messages [ 'no parent' ] ; } if ( ! options . serviceRegistry ) { throw messages [ "no service registry" ] ; } this . _parent = parent ; this . _registry = options . serviceRegistry ; this . _description = options . description ; this . _tasks = options . tasks ; this . _title = options . title || messages [ "Tasks" ] ; this . _collapsed = options . collapsed ; this . _id = options . id || this . _parent . id + "taskList" ; //$NON-NLS-0$ this . _contentId = this . _parent . id + "taskContent" ; //$NON-NLS-0$ this . _item = options . item ; this . _handler = options . handler ; this . _commandService = options . commandService ; this . _descriptionProperty = options . descriptionProperty ; this . renderTasks ( ) ; }
Creates a new user interface element showing a list of tasks

@name orion.tasks.TaskList
@class A user interface element showing a list of various user tasks.
@param {Object} options The service options
@param {Object} options.parent The parent of this task list
@prarm {String} options.id The id of the section
@param {String} options.tasks The array of tasks this list should display
@param {String} options.title The title of the task list
@param {String} options.description A description of the task list shown the user
@param {orion.serviceregistry.ServiceRegistry} options.serviceRegistry The service registry
@param {Boolean} options.collapsed Whether the list should be initially collapsed
@param {Object} options.item  The item used as the target when running a task command
@param {Object} options.handler The handler when running a task command
@param {orion.commands.CommandService} The command service used for running commands
@param {String} options.descriptionProperty The name of the property on the command that will provide the description.  Optional.
The command tooltip will be used as the description if no descriptionProperty is provided.
Creates a new user interface element showing a list of tasks