bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer.js
function (parentId, model, options){
			parentId = typeof parentId === "string" ? parentId : (parentId.id || parentId); //$NON-NLS-0$
			if(this.selection) {
				this.selection.setSelections([]);
			}
			if(this.getNavHandler()){
				this.getNavHandler().destroy();
				this._navHandler = null;
			}
			var treeId = parentId + "innerTree"; //$NON-NLS-0$
			var existing = lib.node(treeId);
			if (existing) {
				lib.empty(existing);
			}
			if (model){
				model.rootId = treeId + "Root"; //$NON-NLS-0$
			}
			this.model = model;
			this._parentId = parentId;
			this.role = options && options.role;
			this._treeOptions = options;
			var useSelection = !options || (options && !options.noSelection);
			if(useSelection){
				this.selectionPolicy = options ? options.selectionPolicy : "";
				this._navDict = new mNavHandler.ExplorerNavDict(this.model);
			}
			this.myTree = new mTreeTable.TableTree({
				id: treeId,
				role: options ? options.role : undefined,
				name: options ? options.name : undefined,
				model: model,
				parent: parentId,
				onComplete: function(tree) {
					if(this.selectionPolicy === "cursorOnly"){ //$NON-NLS-0$
						this.initNavHandler();
						var navHandler = this.getNavHandler();
						if (navHandler) {
							navHandler.rowsChanged();
						}
					}
					if (options.onComplete) options.onComplete(tree);
				}.bind(this),
				labelColumnIndex: this.renderer.getLabelColumnIndex(),
				renderer: this.renderer,
				showRoot: options ? !!options.showRoot : false,  
				indent: options ? options.indent: undefined,
				preCollapse: options ? options.preCollapse: undefined,
				onCollapse: options && options.onCollapse ? options.onCollapse : function(model) {
					var navHandler = this.getNavHandler();
					if (navHandler) {
						navHandler.onCollapse(model);
					}
				}.bind(this),
				navHandlerFactory: options ? options.navHandlerFactory: undefined,
				tableElement: options ? options.tableElement : undefined,
				tableBodyElement: options ? options.tableBodyElement : undefined,
				tableRowElement: options ? options.tableRowElement : undefined
			});
			this.renderer._initializeUIState();
		}
function (parentId, model, options){
			parentId = typeof parentId === "string" ? parentId : (parentId.id || parentId); //$NON-NLS-0$
			if(this.selection) {
				this.selection.setSelections([]);
			}
			if(this.getNavHandler()){
				this.getNavHandler().destroy();
				this._navHandler = null;
			}
			var treeId = parentId + "innerTree"; //$NON-NLS-0$
			var existing = lib.node(treeId);
			if (existing) {
				lib.empty(existing);
			}
			if (model){
				model.rootId = treeId + "Root"; //$NON-NLS-0$
			}
			this.model = model;
			this._parentId = parentId;
			this.role = options && options.role;
			this._treeOptions = options;
			var useSelection = !options || (options && !options.noSelection);
			if(useSelection){
				this.selectionPolicy = options ? options.selectionPolicy : "";
				this._navDict = new mNavHandler.ExplorerNavDict(this.model);
			}
			this.myTree = new mTreeTable.TableTree({
				id: treeId,
				role: options ? options.role : undefined,
				name: options ? options.name : undefined,
				model: model,
				parent: parentId,
				onComplete: function(tree) {
					if(this.selectionPolicy === "cursorOnly"){ //$NON-NLS-0$
						this.initNavHandler();
						var navHandler = this.getNavHandler();
						if (navHandler) {
							navHandler.rowsChanged();
						}
					}
					if (options.onComplete) options.onComplete(tree);
				}.bind(this),
				labelColumnIndex: this.renderer.getLabelColumnIndex(),
				renderer: this.renderer,
				showRoot: options ? !!options.showRoot : false,  
				indent: options ? options.indent: undefined,
				preCollapse: options ? options.preCollapse: undefined,
				onCollapse: options && options.onCollapse ? options.onCollapse : function(model) {
					var navHandler = this.getNavHandler();
					if (navHandler) {
						navHandler.onCollapse(model);
					}
				}.bind(this),
				navHandlerFactory: options ? options.navHandlerFactory: undefined,
				tableElement: options ? options.tableElement : undefined,
				tableBodyElement: options ? options.tableBodyElement : undefined,
				tableRowElement: options ? options.tableRowElement : undefined
			});
			this.renderer._initializeUIState();
		}
function ( parentId , model , options ) { parentId = typeof parentId === "string" ? parentId : ( parentId . id || parentId ) ; //$NON-NLS-0$ if ( this . selection ) { this . selection . setSelections ( [ ] ) ; } if ( this . getNavHandler ( ) ) { this . getNavHandler ( ) . destroy ( ) ; this . _navHandler = null ; } var treeId = parentId + "innerTree" ; //$NON-NLS-0$ var existing = lib . node ( treeId ) ; if ( existing ) { lib . empty ( existing ) ; } if ( model ) { model . rootId = treeId + "Root" ; //$NON-NLS-0$ } this . model = model ; this . _parentId = parentId ; this . role = options && options . role ; this . _treeOptions = options ; var useSelection = ! options || ( options && ! options . noSelection ) ; if ( useSelection ) { this . selectionPolicy = options ? options . selectionPolicy : "" ; this . _navDict = new mNavHandler . ExplorerNavDict ( this . model ) ; } this . myTree = new mTreeTable . TableTree ( { id : treeId , role : options ? options . role : undefined , name : options ? options . name : undefined , model : model , parent : parentId , onComplete : function ( tree ) { if ( this . selectionPolicy === "cursorOnly" ) { //$NON-NLS-0$ this . initNavHandler ( ) ; var navHandler = this . getNavHandler ( ) ; if ( navHandler ) { navHandler . rowsChanged ( ) ; } } if ( options . onComplete ) options . onComplete ( tree ) ; } . bind ( this ) , labelColumnIndex : this . renderer . getLabelColumnIndex ( ) , renderer : this . renderer , showRoot : options ? ! ! options . showRoot : false , indent : options ? options . indent : undefined , preCollapse : options ? options . preCollapse : undefined , onCollapse : options && options . onCollapse ? options . onCollapse : function ( model ) { var navHandler = this . getNavHandler ( ) ; if ( navHandler ) { navHandler . onCollapse ( model ) ; } } . bind ( this ) , navHandlerFactory : options ? options . navHandlerFactory : undefined , tableElement : options ? options . tableElement : undefined , tableBodyElement : options ? options . tableBodyElement : undefined , tableRowElement : options ? options . tableRowElement : undefined } ) ; this . renderer . _initializeUIState ( ) ; }
Displays tree table containing filled with data provided by given model

@param {String|Element} parentId id of parent dom element, or the element itself
@param {Object} model providing data to display
@param {Object} options optional parameters of the tree(custom indent, onCollapse callback)
Displays tree table containing filled with data provided by given model