View | Details | Raw Unified | Return to bug 272884 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java (-2 / +19 lines)
Lines 5073-5082 Link Here
5073
					Workbench workbench = (Workbench) getWorkbenchWindow().getWorkbench();
5073
					Workbench workbench = (Workbench) getWorkbenchWindow().getWorkbench();
5074
						workbench.largeUpdateStart();
5074
						workbench.largeUpdateStart();
5075
						try {
5075
						try {
5076
							for (int i = 0 ; i < inputs.length; i++) {
5076
							deferUpdates(true);
5077
							for (int i = inputs.length - 1; i >= 0; i--) {
5077
							   if (inputs[i] == null || editorIDs[i] == null)
5078
							   if (inputs[i] == null || editorIDs[i] == null)
5078
							        throw new IllegalArgumentException();
5079
							        throw new IllegalArgumentException();
5079
								boolean activate = (i ==0); // activate the first editor
5080
								// activate the first editor
5081
								boolean activate = (i == 0);
5080
								try {
5082
								try {
5081
									// check if there is an editor we can reuse
5083
									// check if there is an editor we can reuse
5082
							        IEditorReference ref = batchReuseEditor(inputs[i], editorIDs[i], 
5084
							        IEditorReference ref = batchReuseEditor(inputs[i], editorIDs[i], 
Lines 5086-5093 Link Here
5086
							        results[i] = ref;
5088
							        results[i] = ref;
5087
								} catch (PartInitException e) {
5089
								} catch (PartInitException e) {
5088
									exceptions[i] = e;
5090
									exceptions[i] = e;
5091
									results[i] = null;
5089
								}
5092
								}
5090
							}
5093
							}
5094
							deferUpdates(false);
5095
							// Update activation history. This can't be done
5096
							// "as we go" or editors will be materialized.
5097
							for (int i = inputs.length - 1; i >= 0; i--) {
5098
								if (results[i] == null)
5099
									continue;
5100
								activationList.bringToTop(results[i]);
5101
							}
5091
						} finally {
5102
						} finally {
5092
							workbench.largeUpdateEnd();
5103
							workbench.largeUpdateEnd();
5093
						}
5104
						}
Lines 5149-5154 Link Here
5149
	        } else
5160
	        } else
5150
	            bringToTop(editor);
5161
	            bringToTop(editor);
5151
		}
5162
		}
5163
5164
		/*
5165
		 * else if (ref != null) activationList.bringToTop(ref); // takes care
5166
		 * of the MRU list for // non-materialized editors //
5167
		 * internalBringToTop(ref);
5168
		 */
5152
		return ref;
5169
		return ref;
5153
    }
5170
    }
5154
	
5171
	

Return to bug 272884