Project: Eclipse_Platform_UI
Bug 11294 Internal error opening workbench editors dialog
Reported: 2002-03-13 14:36:41 | Status: resolved fixed

Build 20020312 I pressed Ctrl+W to open a recently closed editor, and an internal error occurred. I had recently recovered from another crash of the workbench, I don't know if that's related. I can now consistently reproduce the error in my workspace, even if I shut down and restart. My UI setup is a single workbench window with three perspectives inside it: java, debug, resources. The editor area was hidden in the resource perspective, but otherwise there were several editors open. java.lang.ArrayIndexOutOfBoundsException: 2 at org.eclipse.ui.internal.dialogs.WorkbenchEditorsDialog$Adapter.compareTo(Workben chEditorsDialog.java:481) at java.util.Arrays.mergeSort(Arrays.java:1065) at java.util.Arrays.mergeSort(Arrays.java:1072) at java.util.Arrays.sort(Arrays.java:1015) at org.eclipse.ui.internal.dialogs.WorkbenchEditorsDialog.sort(WorkbenchEditorsDial og.java:321) at org.eclipse.ui.internal.dialogs.WorkbenchEditorsDialog.updateItems(WorkbenchEdit orsDialog.java:301) at org.eclipse.ui.internal.dialogs.WorkbenchEditorsDialog.createDialogArea(Workbenc hEditorsDialog.java:186) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:465) at org.eclipse.jface.window.Window.create(Window.java:263) at org.eclipse.jface.window.Window.open(Window.java:512) at org.eclipse.ui.internal.WorkbenchEditorsAction.run(WorkbenchEditorsAction.java:2 9) at org.eclipse.jface.action.Action.runWithEvent(Action.java:466) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont ributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContribu tionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem. java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java:47) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:675) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:77 7) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java