Project: Eclipse_Platform_UI
Bug 178780 [MPE] Improve MultiPageEditorPart.setActiveEditor
Reported: 2007-03-22 09:24:41 | Status: verified fixed

This method in MultiPageEditorPart would be improved by adding a break statement after the setActivePage call.: public final void setActiveEditor(IEditorPart editorPart) { int count = getPageCount(); for (int i = 0; i < count; i++) { IEditorPart editor = getEditor(i); if (editor == editorPart) { setActivePage(i); } } }

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java