Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327310 - AppMenu is not firing the listeners
Summary: AppMenu is not firing the listeners
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 04:25 EDT by Prakash Rangaraj CLA
Modified: 2010-10-08 12:11 EDT (History)
1 user (show)

See Also:


Attachments
Sample (3.01 KB, text/plain)
2010-10-08 04:25 EDT, Prakash Rangaraj CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.