On the mac, the "About", "Quit", and "Preferences..." menu items are in the application menu. Does anyone know how I can hook up my own handlers to these menu items in a E4 application with no compatibility layer?
In your main project, there is a *.e4xmi file (usually Application.e4xmi if you used the e4 Application Project wizard).
You can edit this file using the e4 Workbench Model Editor.
Find the Handler (Application > Handlers) which points to the Command (i.e. aboutCommand) you are looking for.
Change the Class URI an let it point to your own implementation (or use the link to open the default implementation and change it).
So ist there a bunch of "standard" handlers that get hooked up to the system menu? If so it's not working for the "quit" command. I know how register REGULAR menu items, I just don't know how to hook up the system menu on the Mac.
The Cocoa addon (org.eclipse.e4.ui.workbench.renderers.swt.cocoa) redirects About, Preferences, and Quit to the corresponding Eclipse 3.x command ids (respectively org.eclipse.ui.help.aboutAction, org.eclipse.ui.window.preferences, and org.eclipse.ui.file.exit). Declare a command for those ids in your .e4xmi and provide a handler.