Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 377777
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js (-2 / +2 lines)
Lines 250-258 Link Here
250
		 * because the command framework will open and close parameter collectors as needed and 
250
		 * because the command framework will open and close parameter collectors as needed and 
251
		 * call the command callback with the values of those parameters.
251
		 * call the command callback with the values of those parameters.
252
		 */
252
		 */
253
		closeParameterCollector: function() {
253
		closeParameterCollector: function(toolbarId) {
254
			if (this._parameterCollector) {
254
			if (this._parameterCollector) {
255
				this._parameterCollector.close();
255
				this._parameterCollector.close(toolbarId);
256
			}
256
			}
257
		},
257
		},
258
		
258
		
(-)a/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js (-1 / +1 lines)
Lines 129-135 Link Here
129
		}
129
		}
130
		// close any open slideouts because if we are retargeting the command
130
		// close any open slideouts because if we are retargeting the command
131
		if (toolbarItem.Location !== lastItemLoaded.Location) {
131
		if (toolbarItem.Location !== lastItemLoaded.Location) {
132
			commandRegistry.closeParameterCollector();
132
			commandRegistry.closeParameterCollector(toolbarId);
133
			lastItemLoaded.Location = toolbarItem.Location;
133
			lastItemLoaded.Location = toolbarItem.Location;
134
		}
134
		}
135
135
(-)a/bundles/org.eclipse.orion.client.ui/web/orion/parameterCollectors.js (-1 / +4 lines)
Lines 37-44 Link Here
37
	
37
	
38
	CommandParameterCollector.prototype = /** @lends orion.parametercollectors.CommandParameterCollector.prototype */ {
38
	CommandParameterCollector.prototype = /** @lends orion.parametercollectors.CommandParameterCollector.prototype */ {
39
	
39
	
40
		close: function () {
40
		close: function (toolbarId) {
41
			if (this._activeElements) {
41
			if (this._activeElements) {
42
				if (toolbarId && this._activeElements.toolbar && this._activeElements.toolbar.id !== toolbarId) {
43
					return;
44
				}
42
				if (this._activeElements.parameterArea) {
45
				if (this._activeElements.parameterArea) {
43
					lib.empty(this._activeElements.parameterArea);
46
					lib.empty(this._activeElements.parameterArea);
44
				}
47
				}

Return to bug 377777