Project: Eclipse_Platform_UI
Bug 188380 [EditorMgmt] Topmost editor not restored when editor area does not have focus on shutdown
Reported: 2007-05-22 13:01:29 | Status: verified fixed

3.3 RC1 The topmost editor is not restored when the editor area does not have focus on shutdown. Steps: - open a Java editor and set the caret somewhere inside the text - open a second Java editor and set the caret somewhere inside the text - select a view (e.g. Problems) - with the second editor tab on top and the editor area unfocused, restart the workbench => Expected: restores state as before: | Was: -----------------------------------------+---------------------------------- - second editor on top | - first editor on top - view focused | - first editor focused - carets at previous locations | - caret of second editor at | beginning, not previous location Furthermore, the keyboard focus is on the workbench toolbar and not in the editor (no matter whether an editor or a view had focus on shutdown).

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java