Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 402322

Summary: [WorkbenchParts] Workbench window can report an active part/editor while firing page closed
Product: [Eclipse Project] Platform Reporter: Paul Webster <pwebster>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3    
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Paul Webster CLA 2013-03-04 09:00:46 EST
From  bug 394499 comment #9

The refactoring of the method-calls in org.eclipse.ui.internal.WorkbenchWindow:
- firePageClosed();
- fireWindowClosed();
from hardClose(boolean) to busyClose(boolean)
causes a concurrency problem in the workbench-shutdown.
First, the NavigatorSaveablesService gets disposed on the firePage-Event and later the SaveAction that wants to update on the same event, trying to access the NavigatorSaveablesService, already disposed at that time.
I believe, adding a check to the disposal-state of the NavigatorSaveablesService within getActiveSaveables() will take of the state, when the workbench is closed without any active/open editor.
Comment 1 Paul Webster CLA 2013-03-04 09:01:46 EST
It looks like the workbench window/page is reporting an active part or editor still, even though it is firing pageClosed event (everything should be gone)

PW
Comment 2 Eclipse Genie CLA 2020-07-23 11:21:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.