Bug 257723 [Mac] Menu items "About Eclipse SDk" and "Preferences" of Top menu "Eclipse" not disable after show the dialog of "About Eclipse SDK"
bundles/org.eclipse.ui.cocoa/src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java
* and links them to the corresponding workbench commands. 
 * This must be done in a MacOS X fragment because SWT doesn't provide an abstraction
 * for the (MacOS X only) application menu and we have to use MacOS specific natives.
 * The fragment is for the org.eclipse.ui plugin because we need access to the
 * Workbench "About" and "Preference" actions.
 * 
 * @noreference this class is not intended to be referenced by any client.
 * @since 1.0
 */
public class CocoaUIEnhancer implements IStartup {
	private static final int kAboutMenuItem = 0;
	private static final int kPreferencesMenuItem = 2;
	private static final int kServicesMenuItem = 4;
	private static final int kHideApplicationMenuItem = 6;
	private static final int kQuitMenuItem = 10;
	
	static Callback proc3Args;
	static final String SWT_OBJECT = "SWT_OBJECT"; 
	static final int  sel_toolbarButtonClicked_ = OS.sel_registerName("toolbarButtonClicked:"); 
	static final int  sel_preferencesMenuItemSelected_ = OS.sel_registerName("preferencesMenuItemSelected:"); 
	static final int  sel_aboutMenuItemSelected_ = OS.sel_registerName("aboutMenuItemSelected:"); 
	static {
		String className = "SWTCocoaEnhancerDelegate"; 
		
		String types = "*"; 
		int size = C.PTR_SIZEOF, align = C.PTR_SIZEOF == 4 ? 2 : 3;
		Class clazz = CocoaUIEnhancer.class;
		proc3Args = new Callback(clazz, "actionProc", 3); 
		int  proc3 = proc3Args.getAddress();
		if (proc3 == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);