Community
Participate
Working Groups
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
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...
FWIW, it's not called "Exit". It's called "Quit ApplicationName", where ApplicationName is Xcode or Stickies or whatever.
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
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.
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
"Check for Updates" is another item that seems to live below the "About" entry and is currently missing from Eclipse under Mac OS.
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.