bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js
function(scopeId, groupId, position, title, parentPath, emptyGroupMessage, imageClass, tooltip, selectionClass, defaultActionId, extraClasses) {
			if (!this._contributionsByScopeId[scopeId]) {
				this._contributionsByScopeId[scopeId] = {};
			}
			var parentTable = this._contributionsByScopeId[scopeId];
			if (parentPath) {
				parentTable = this._createEntryForPath(parentTable, parentPath);		
			}
			
			if (parentTable[groupId]) {
				// update existing group definition if info has been supplied
				if (title) {
					parentTable[groupId].title = title;
				}
				if (position) {
					parentTable[groupId].position = position;
				}
				if (imageClass) {
					parentTable[groupId].imageClass = imageClass;
				}
				if (tooltip) {
					parentTable[groupId].tooltip = tooltip;
				}
				if (selectionClass) {
					parentTable[groupId].selectionClass = selectionClass;
				}
				
				if (extraClasses) {
					parentTable[groupId].extraClass = extraClasses;
				}
				
				if(defaultActionId === true){
					parentTable[groupId].pretendDefaultActionId = true;
				} else {
					parentTable[groupId].defaultActionId = defaultActionId;
				}
				

				parentTable[groupId].emptyGroupMessage = emptyGroupMessage;
			} else {
				// create new group definition
				parentTable[groupId] = {title: title, 
										position: position, 
										emptyGroupMessage: emptyGroupMessage,
										imageClass: imageClass,
										tooltip: tooltip,
										selectionClass: selectionClass,
										defaultActionId: defaultActionId === true ? null : defaultActionId,
										pretendDefaultActionId: defaultActionId === true,
										children: {},
										extraClasses: extraClasses};
				parentTable.sortedContributions = null;
			}
		}
function(scopeId, groupId, position, title, parentPath, emptyGroupMessage, imageClass, tooltip, selectionClass, defaultActionId, extraClasses) {
			if (!this._contributionsByScopeId[scopeId]) {
				this._contributionsByScopeId[scopeId] = {};
			}
			var parentTable = this._contributionsByScopeId[scopeId];
			if (parentPath) {
				parentTable = this._createEntryForPath(parentTable, parentPath);		
			}
			
			if (parentTable[groupId]) {
				// update existing group definition if info has been supplied
				if (title) {
					parentTable[groupId].title = title;
				}
				if (position) {
					parentTable[groupId].position = position;
				}
				if (imageClass) {
					parentTable[groupId].imageClass = imageClass;
				}
				if (tooltip) {
					parentTable[groupId].tooltip = tooltip;
				}
				if (selectionClass) {
					parentTable[groupId].selectionClass = selectionClass;
				}
				
				if (extraClasses) {
					parentTable[groupId].extraClass = extraClasses;
				}
				
				if(defaultActionId === true){
					parentTable[groupId].pretendDefaultActionId = true;
				} else {
					parentTable[groupId].defaultActionId = defaultActionId;
				}
				

				parentTable[groupId].emptyGroupMessage = emptyGroupMessage;
			} else {
				// create new group definition
				parentTable[groupId] = {title: title, 
										position: position, 
										emptyGroupMessage: emptyGroupMessage,
										imageClass: imageClass,
										tooltip: tooltip,
										selectionClass: selectionClass,
										defaultActionId: defaultActionId === true ? null : defaultActionId,
										pretendDefaultActionId: defaultActionId === true,
										children: {},
										extraClasses: extraClasses};
				parentTable.sortedContributions = null;
			}
		}
function ( scopeId , groupId , position , title , parentPath , emptyGroupMessage , imageClass , tooltip , selectionClass , defaultActionId , extraClasses ) { if ( ! this . _contributionsByScopeId [ scopeId ] ) { this . _contributionsByScopeId [ scopeId ] = { } ; } var parentTable = this . _contributionsByScopeId [ scopeId ] ; if ( parentPath ) { parentTable = this . _createEntryForPath ( parentTable , parentPath ) ; } if ( parentTable [ groupId ] ) { // update existing group definition if info has been supplied if ( title ) { parentTable [ groupId ] . title = title ; } if ( position ) { parentTable [ groupId ] . position = position ; } if ( imageClass ) { parentTable [ groupId ] . imageClass = imageClass ; } if ( tooltip ) { parentTable [ groupId ] . tooltip = tooltip ; } if ( selectionClass ) { parentTable [ groupId ] . selectionClass = selectionClass ; } if ( extraClasses ) { parentTable [ groupId ] . extraClass = extraClasses ; } if ( defaultActionId === true ) { parentTable [ groupId ] . pretendDefaultActionId = true ; } else { parentTable [ groupId ] . defaultActionId = defaultActionId ; } parentTable [ groupId ] . emptyGroupMessage = emptyGroupMessage ; } else { // create new group definition parentTable [ groupId ] = { title : title , position : position , emptyGroupMessage : emptyGroupMessage , imageClass : imageClass , tooltip : tooltip , selectionClass : selectionClass , defaultActionId : defaultActionId === true ? null : defaultActionId , pretendDefaultActionId : defaultActionId === true , children : { } , extraClasses : extraClasses } ; parentTable . sortedContributions = null ; } }
Registers a command group and specifies visual information about the group.
@param {String} scopeId The id of a DOM element in which the group should be visible.  Required.
When commands are rendered for a particular element, the group will be shown only if its scopeId
matches the id being rendered.
@param {String} groupId The id of the group, must be unique.  May be used for a dom node id of
the element representing the group
@param {Number} position The relative position of the group within its parent.  Required.
@param {String} [title] The title of the group, optional
@param {String} [parentPath] The path of parent groups, separated by '/'.  For example,
a path of "group1Id/group2Id" indicates that the group belongs as a child of
group2Id, which is itself a child of group1Id.  Optional.
@param {String} [emptyGroupMessage] A message to show if the group is empty and the user activates the UI element
representing the group.  Optional.  If not specified, then the group UI element won't be shown when it is empty.
@param {String} [imageClass] CSS class of an image to use for this group.
@param {String} [tooltip] Tooltip to show on this group. If not provided, and the group uses an <code>imageClass</code>,
the <code>title</code> will be used as the tooltip.
@param {String} [selectionClass] CSS class to be appended when the command button is selected. Optional.
@param {String} or {boolean} [defaultActionId] Id of an action from this group that should be invoked when the group is selected. This will add an
arrow to the group that will open the dropdown. Optionally this can be set to <code>true</code> instead of adding a particular action.
If set to <code>true</code> the group will be rendered as if there was a default action, but instead of invoking the default action it will
open the dropdown. Optional.
@param {String} [extraClasses] A string containing space separated css classes that will be applied to group button
Registers a command group and specifies visual information about the group .