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

Bug 316238

Summary: [Widgets] Main menu lost when using "open in new window"
Product: [Eclipse Project] Platform Reporter: Zhang Peng <nemo.zhp>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact: Silenio Quarti <Silenio_Quarti>
Severity: normal    
Priority: P3 CC: eclipse.felipe, lshanmug, nemo.zhp, prakash, raji, remy.suen
Version: 3.4Flags: eclipse.felipe: review+
Target Milestone: 3.6.1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
fix for HEAD none

Description Zhang Peng CLA 2010-06-09 00:59:12 EDT
Build Identifier: I20080617-2000

Main menu will lost after minimize and maximize the windows when there are more than one window.

Reproducible: Always

Steps to Reproduce:
1. Open Eclipse, select a project.
2. Right click the project, and choose "open in new window".
3. When the new window opened, minimize the window, then minimize the main(parent) window.
4. Move focus to other things(Let the Eclipse main menu changed);
5. Maximize the new window, then maximize the main window.

The Eclipse main menu disappeared after maximize the main window. If in the 5th step, firstly maximize the main window, then maximize the new window, then the main menu will disappear when new window mazimized.
Comment 1 Prakash Rangaraj CLA 2010-06-14 01:24:15 EDT
Reproducible only on Carbon builds - not on Cocoa. Assigning to SWT for comments
Comment 2 Lakshmi P Shanmugam CLA 2010-06-14 08:58:11 EDT
Shell.kEventWindowDeactivated is not being called for Main window in either step3 or step4. Hence, when kEventWindowActivated is called for Main window in step5 we are not trying to set the menubar.
Comment 3 Silenio Quarti CLA 2010-08-04 15:19:30 EDT
Created attachment 175877 [details]
fix for HEAD
Comment 4 Silenio Quarti CLA 2010-08-04 15:26:59 EDT
Fixed > 20100804 (HEAD only).

Same patch applies for R3_4_maintenance and R3_5_maintenance.
Comment 5 Raji Akella CLA 2010-08-04 15:35:53 EDT
Can this be included in 3.6.1?
Comment 6 Silenio Quarti CLA 2010-08-06 12:30:56 EDT
Felipe, please review for 3.6.1
Comment 7 Silenio Quarti CLA 2010-08-06 14:52:13 EDT
Fixed released to R3_6_maintenance