Bug 34129 - [Workbench] Window activated/deactivated event not always fired
Summary: [Workbench] Window activated/deactivated event not always fired
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2003-03-07 14:37 EST by Simon Arsenault CLA
Modified: 2009-08-30 02:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Arsenault CLA 2003-03-07 14:37:45 EST
Using build I200303071024

- Launch eclipse in debug mode
- Open a new window (so that you have at least 2 windows now)
- Close all perspectives in the new window
- Go to your host eclipse and set a breakpoint on 
Workbench.fireWindowDeactivated method
- Go back to the new window
- Switch to the another window of the target eclipse (launched one)

Notice the breakpoint is not hit.

- Switch to the new window

Notice the breakpoint is hit.

The problem is that WorkbenchWindow.trackShellActivation only fires 
activated/deactivated events if the active page is not null. Since our window 
does not have any open perspective, it also does not have an open page.

We should move the fire activate/deactivate method calls outside the check for 
null active page (its not dependent on having a page anyway).

If this is done, then we could simply the tracking of the last activated 
window. Instead of the workbench window calling the setActivatedWindow method, 
the workbench could just handle this in the fireWindowActivated method.
Comment 1 Nick Edgar CLA 2003-03-11 16:07:22 EST
Defer
Comment 2 Tod Creasey CLA 2006-06-26 09:17:41 EDT
Is this still an issue in 3.2?
Comment 3 Denis Roy CLA 2009-08-30 02:09:40 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.