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

Bug 327310

Summary: AppMenu is not firing the listeners
Product: [Eclipse Project] Platform Reporter: Prakash Rangaraj <prakash>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: skovatch
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Sample none

Description Prakash Rangaraj CLA 2010-10-08 04:25:46 EDT
Created attachment 180478 [details]
Sample

Sample code in the attachment
Comment 1 Scott Kovatch CLA 2010-10-08 12:11:01 EDT
Prakash, your example isn't right. Display.getAppMenuBar() returns a Menu with the SWT.BAR flag set. Menu listeners should be attached to Menus with the DROP_DOWN flag set, so in this example the menu listener should be attached to windowSubMenu at line 52.

When I make that change I see menuHidden and menuShown events as expected.