Bug 73816 - [Mac] Allow to control items in application Menu
Summary: [Mac] Allow to control items in application Menu
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-13 18:05 EDT by Benjamin Pasero CLA
Modified: 2019-09-06 16:15 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Pasero CLA 2004-09-13 18:05:46 EDT
Hi,

each application on Mac gets its application Menu with "Exit" item for example. 
It should be possible to access that application Menu with the API of SWT.

Ben
Comment 1 Andre Weinand CLA 2004-09-14 16:31:21 EDT
Silenio, for Eclipse I hacked that in the org.eclipse.ui.carbon fragment. I'm not sure how to get this 
under the (probably non-existing) SWT API but I'm willing to help...
Comment 2 Brian Schack CLA 2005-04-08 02:37:26 EDT
FWIW, it's not called "Exit". It's called "Quit ApplicationName", where ApplicationName is Xcode or 
Stickies or whatever.
Comment 3 Benjamin Pasero CLA 2005-08-19 19:12:30 EDT
I really think that SWT should provide API to create a Menu to the application
Menu of Mac applications using SWT. It is used for RCP applications anyways and
in Eclipse, but with the cost of non-os independant source code. For most
applications that want to keep platform-independant code, this is a reason not
to use it.

Why not have a static hook on display, e.g. Display#setAppMenu, that allows to
apply a Menu to the application-menu dock on Mac? 

Ben
Comment 4 Elliotte Rusty Harold CLA 2005-08-19 19:39:18 EDT
The basic idea is good, but it needs to be menu items rather than a full menu.
Many of the menu items in the aplpication menu are set up by the runtime and you
don't want to replace them. Then again some you may want to replace. For
instance you might want to install your own Quit handler even though the Quit
menu item is automatic.

I.e. this needs to be more granular than the whole menu. 
Comment 5 Benjamin Pasero CLA 2005-08-19 19:57:44 EDT
Well yes. I think there are only two important menuitems to be provided: About
and Preferences. Exit is provided automatically, so why not provide these
automatically as well?

SWT could then send an event to the application when these are triggered.

Ben
Comment 6 Benjamin Pasero CLA 2009-12-30 16:47:23 EST
"Check for Updates" is another item that seems to live below the "About" entry and is currently missing from Eclipse under Mac OS.
Comment 7 Eclipse Webmaster CLA 2019-09-06 16:15:40 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.