bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js
function(scopeId, selectionService) {
			if (!this._contributionsByScopeId[scopeId]) {
				this._contributionsByScopeId[scopeId] = {};
			}
			this._contributionsByScopeId[scopeId].localSelectionService = selectionService;
		}
function(scopeId, selectionService) {
			if (!this._contributionsByScopeId[scopeId]) {
				this._contributionsByScopeId[scopeId] = {};
			}
			this._contributionsByScopeId[scopeId].localSelectionService = selectionService;
		}
function ( scopeId , selectionService ) { if ( ! this . _contributionsByScopeId [ scopeId ] ) { this . _contributionsByScopeId [ scopeId ] = { } ; } this . _contributionsByScopeId [ scopeId ] . localSelectionService = selectionService ; }
Register a selection service that should be used for certain command scopes.
@param {String} scopeId The id describing the scope for which this selection service applies.  Required.
Only contributions made to this scope will use the selection service.
@param {orion.selection.Selection} selectionService the selection service for the scope.
Register a selection service that should be used for certain command scopes .