src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/MasterTreeBaseController.js
function (sTopicId, oModel) {
				var oTree = this.byId("tree"),
					oData = oModel.getData();

				// Find the path to the new node, traversing the model
				var aTopicIds = this._oTreeUtil.getPathToNode(sTopicId, oData);

				// Expand all nodes on the path to the target node
				var oLastItem;
				aTopicIds.forEach(function(sId) {
					var oItem = this._findTreeItem(sId);
					if (oItem) {
						oTree.getBinding("items").expand(oTree.indexOfItem(oItem));
						oLastItem = oItem;
					}
				}, this);

				// Select the target node and scroll to it
				if (oLastItem) {
					oLastItem.setSelected(true);
					this.oSelectedItem = {
						sTopicId: sTopicId,
						oModel: oModel
					};
					// Only scroll after the dom is ready
					setTimeout(function () {
						if (oLastItem.getDomRef() && !isInViewport(oLastItem.getDomRef())) {
							this._scrollTreeItemIntoView(oLastItem);
						}
					}.bind(this), 0);
				}
			}
function (sTopicId, oModel) {
				var oTree = this.byId("tree"),
					oData = oModel.getData();

				// Find the path to the new node, traversing the model
				var aTopicIds = this._oTreeUtil.getPathToNode(sTopicId, oData);

				// Expand all nodes on the path to the target node
				var oLastItem;
				aTopicIds.forEach(function(sId) {
					var oItem = this._findTreeItem(sId);
					if (oItem) {
						oTree.getBinding("items").expand(oTree.indexOfItem(oItem));
						oLastItem = oItem;
					}
				}, this);

				// Select the target node and scroll to it
				if (oLastItem) {
					oLastItem.setSelected(true);
					this.oSelectedItem = {
						sTopicId: sTopicId,
						oModel: oModel
					};
					// Only scroll after the dom is ready
					setTimeout(function () {
						if (oLastItem.getDomRef() && !isInViewport(oLastItem.getDomRef())) {
							this._scrollTreeItemIntoView(oLastItem);
						}
					}.bind(this), 0);
				}
			}
function ( sTopicId , oModel ) { var oTree = this . byId ( "tree" ) , oData = oModel . getData ( ) ; // Find the path to the new node, traversing the model var aTopicIds = this . _oTreeUtil . getPathToNode ( sTopicId , oData ) ; // Expand all nodes on the path to the target node var oLastItem ; aTopicIds . forEach ( function ( sId ) { var oItem = this . _findTreeItem ( sId ) ; if ( oItem ) { oTree . getBinding ( "items" ) . expand ( oTree . indexOfItem ( oItem ) ) ; oLastItem = oItem ; } } , this ) ; // Select the target node and scroll to it if ( oLastItem ) { oLastItem . setSelected ( true ) ; this . oSelectedItem = { sTopicId : sTopicId , oModel : oModel } ; // Only scroll after the dom is ready setTimeout ( function ( ) { if ( oLastItem . getDomRef ( ) && ! isInViewport ( oLastItem . getDomRef ( ) ) ) { this . _scrollTreeItemIntoView ( oLastItem ) ; } } . bind ( this ) , 0 ) ; } }
Makes the tree open all nodes up to the node with "sTopicId" and then selects it
@private
Makes the tree open all nodes up to the node with sTopicId and then selects it