bundles/org.eclipse.orion.client.ui/web/orion/treeModelIterator.js
function(forward, roundTrip) {
			var topSibling = this._findSibling(this._getTopLevelParent(this.cursor()), forward);
			if(topSibling){
				this.setCursor(topSibling);
			} else if(roundTrip && this.firstLevelChildren.length > 0) {
				this.setCursor(forward ? this.firstLevelChildren[0] : this.firstLevelChildren[this.firstLevelChildren.length - 1]);
			}
		}
function(forward, roundTrip) {
			var topSibling = this._findSibling(this._getTopLevelParent(this.cursor()), forward);
			if(topSibling){
				this.setCursor(topSibling);
			} else if(roundTrip && this.firstLevelChildren.length > 0) {
				this.setCursor(forward ? this.firstLevelChildren[0] : this.firstLevelChildren[this.firstLevelChildren.length - 1]);
			}
		}
function ( forward , roundTrip ) { var topSibling = this . _findSibling ( this . _getTopLevelParent ( this . cursor ( ) ) , forward ) ; if ( topSibling ) { this . setCursor ( topSibling ) ; } else if ( roundTrip && this . firstLevelChildren . length > 0 ) { this . setCursor ( forward ? this . firstLevelChildren [ 0 ] : this . firstLevelChildren [ this . firstLevelChildren . length - 1 ] ) ; } }
Iterate from the current cursor only on the top level children
@param {boolean} forward the iteration direction. If true then iterate to next, otherwise previous.
@param {boolean} roundTrip the round trip flag. If true then iterate to the beginning at bottom or end at beginning.
Iterate from the current cursor only on the top level children