bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorer-table.js
function(path, force, postLoad) {
			if (path && typeof path === "object") {
				path = path.ChildrenLocation || path.ContentLocation;
			}
			path = mFileUtils.makeRelative(path);
			var self = this;
			if (force || path !== this.treeRoot.Path || path !== this._lastPath) {
				this._lastPath = path;
				return this.load(this.fileClient.read(path, true), i18nUtil.formatMessage(messages["Loading ${0}"], path), postLoad).then(function() {
					self.treeRoot.Path = path;
					return self.treeRoot;
				}, function(err) {
					self.treeRoot.Path = null;
					return new Deferred().reject(err);
				});
			}
			return new Deferred().resolve(self.treeRoot);
		}
function(path, force, postLoad) {
			if (path && typeof path === "object") {
				path = path.ChildrenLocation || path.ContentLocation;
			}
			path = mFileUtils.makeRelative(path);
			var self = this;
			if (force || path !== this.treeRoot.Path || path !== this._lastPath) {
				this._lastPath = path;
				return this.load(this.fileClient.read(path, true), i18nUtil.formatMessage(messages["Loading ${0}"], path), postLoad).then(function() {
					self.treeRoot.Path = path;
					return self.treeRoot;
				}, function(err) {
					self.treeRoot.Path = null;
					return new Deferred().reject(err);
				});
			}
			return new Deferred().resolve(self.treeRoot);
		}
function ( path , force , postLoad ) { if ( path && typeof path === "object" ) { path = path . ChildrenLocation || path . ContentLocation ; } path = mFileUtils . makeRelative ( path ) ; var self = this ; if ( force || path !== this . treeRoot . Path || path !== this . _lastPath ) { this . _lastPath = path ; return this . load ( this . fileClient . read ( path , true ) , i18nUtil . formatMessage ( messages [ "Loading ${0}" ] , path ) , postLoad ) . then ( function ( ) { self . treeRoot . Path = path ; return self . treeRoot ; } , function ( err ) { self . treeRoot . Path = null ; return new Deferred ( ) . reject ( err ) ; } ) ; } return new Deferred ( ) . resolve ( self . treeRoot ) ; }
Load the resource at the given path.
@name orion.explorer.FileExplorer#loadResourceList
@function
@param {String|Object} path The path of the resource to load, or an object with a ChildrenLocation or ContentLocation field giving the path.
@param {Boolean} [force] If true, force reload even if the path is unchanged. Useful
when the client knows the resource underlying the current path has changed.
@param {Function} postLoad a function to call after loading the resource. <b>Deprecated</b>: use the returned promise instead.
@returns {orion.Promise}
Load the resource at the given path .