Project: Eclipse_Platform_UI
Bug 16146 setActiveEditor is not called when last editor closed
Reported: 2002-05-16 10:14:41 | Status: resolved fixed

Build 20020515 Kai reports that EditorActionBarContributor.setActiveEditor is not getting called with null when the last editor of that type is closed. This used to happen, and they rely on it to properly unhook / dispose things. This may be the cause of some of the NPEs we've been seeing since a disposed editor may be referred to from these actions, and the actions are still hooked as listeners on the page.

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/IEditorActionBarContributor.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorActionBuilder.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorManager.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/part/EditorActionBarContributor.java