Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321789 - [Mac] Mac: Standard app-menu About and Preferences items require redundant menu items elsewhere
Summary: [Mac] Mac: Standard app-menu About and Preferences items require redundant me...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M3   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Prakash Rangaraj CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 15:57 EDT by Andy Thomas-Cramer CLA
Modified: 2011-07-08 18:43 EDT (History)
2 users (show)

See Also:


Attachments
Patch v01 (37.63 KB, patch)
2010-10-11 14:15 EDT, Prakash Rangaraj CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Thomas-Cramer CLA 2010-08-04 15:57:26 EDT
Build Identifier: Helios platform release

Observed: 

From observation and looking at the code of org.eclipse.ui.internal.carbon.CarbonUIEnhancer, it appears that the About and Preferences items in the Mac application menu require redundant, non-standard menu items elsewhere with IDs "about" and "preferences".

For example, if I include a Help>About menu item, the application menu "About" item works correctly. If I omit Help>About, the application menu "About" does nothing, even though the "about" action is registered.

Desirable: 

The application menu "About" and "Preferences" items should work even in the absence of parallel items elsewhere in the menus.

Question:

Should the search be looking in the registry of actions rather than the menus?

Reproducible: Always
Comment 1 Prakash Rangaraj CLA 2010-08-24 13:54:12 EDT
Scott is working on Application level menu. If that goes into 3.7, I'll try to push this as well.
Comment 2 Prakash Rangaraj CLA 2010-10-11 14:15:07 EDT
Created attachment 180612 [details]
Patch v01

Patch v01
Comment 3 Prakash Rangaraj CLA 2010-10-11 14:17:39 EDT
Patch v01 released to HEAD
Comment 4 Prakash Rangaraj CLA 2010-10-12 08:03:23 EDT
(In reply to comment #3)
> Patch v01 released to HEAD
Comment 5 Prakash Rangaraj CLA 2010-10-26 04:35:48 EDT
Verified in I20101025-1800
Comment 6 Andy Thomas-Cramer CLA 2011-07-08 18:43:58 EDT
Prakash: Thanks for fixing this.

Others: Using the fix in an RCP app is simple -- in the ActionBarAdvisor, add the About and Preferences items to menus only if not running on a Mac.

		if ( ! isRunningOnAMac ) {
			menu.add(new Separator());
			menu.add(m_actionHelpAbout);
		}