bundles/org.eclipse.orion.client.ui/web/orion/webui/SideMenu.js
function(relatedLinks, exclusions) {
			this._categorizedRelatedLinks = {};
			relatedLinks.forEach(function(info) {
				var relatedLink = info.relatedLink;
				var command = info.command;
				var invocation = info.invocation;
				if (!exclusions || exclusions.indexOf(relatedLink.id) === -1) {
					var category = relatedLink.category;
					this._categorizedRelatedLinks[category] = this._categorizedRelatedLinks[category] || [];
					this._categorizedRelatedLinks[category].push({
						title: command.name,
						order: relatedLink.order || 100,
						href: command.hrefCallback.call(invocation.handler, invocation)
					});
				}
			}, this);
			this._updateCategoryAnchors();
			this._updateCategoryNotifications();
		}
function(relatedLinks, exclusions) {
			this._categorizedRelatedLinks = {};
			relatedLinks.forEach(function(info) {
				var relatedLink = info.relatedLink;
				var command = info.command;
				var invocation = info.invocation;
				if (!exclusions || exclusions.indexOf(relatedLink.id) === -1) {
					var category = relatedLink.category;
					this._categorizedRelatedLinks[category] = this._categorizedRelatedLinks[category] || [];
					this._categorizedRelatedLinks[category].push({
						title: command.name,
						order: relatedLink.order || 100,
						href: command.hrefCallback.call(invocation.handler, invocation)
					});
				}
			}, this);
			this._updateCategoryAnchors();
			this._updateCategoryNotifications();
		}
function ( relatedLinks , exclusions ) { this . _categorizedRelatedLinks = { } ; relatedLinks . forEach ( function ( info ) { var relatedLink = info . relatedLink ; var command = info . command ; var invocation = info . invocation ; if ( ! exclusions || exclusions . indexOf ( relatedLink . id ) === - 1 ) { var category = relatedLink . category ; this . _categorizedRelatedLinks [ category ] = this . _categorizedRelatedLinks [ category ] || [ ] ; this . _categorizedRelatedLinks [ category ] . push ( { title : command . name , order : relatedLink . order || 100 , href : command . hrefCallback . call ( invocation . handler , invocation ) } ) ; } } , this ) ; this . _updateCategoryAnchors ( ) ; this . _updateCategoryNotifications ( ) ; }
Called whenever the page target changes.
@param {Object} relatedLinks
@param {String[]} exclusions List of related link IDs that the page has requested to not be shown.
Called whenever the page target changes .