dsto.dfc.swt.carbon
Class CarbonMenus

java.lang.Object
  extended by dsto.dfc.swt.carbon.CarbonMenus

public final class CarbonMenus
extends Object

Extended menu support for Mac OS X.

Adapted from code snippet at http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet178.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

Author:
Matthew Phillips

Method Summary
static void hookAppMenu(org.eclipse.swt.widgets.Display display, Command cmdAbout, Command cmdPreferences)
          Hook the OS X application menu "Preferences" and "About' commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hookAppMenu

public static void hookAppMenu(org.eclipse.swt.widgets.Display display,
                               Command cmdAbout,
                               Command cmdPreferences)
Hook the OS X application menu "Preferences" and "About' commands.

Parameters:
display - The display instance.
cmdAbout - The "About" command.
cmdPreferences - The "Preferences" command.


Copyright © 2008 Commonwealth of Australia