Bug 314623 [Mac] Toggle toolbar button is missing in the first workbench window
Only for the first workbench window, the button is missing. From the second window onwards it comes correctly. Looks like a regression in 3.6, in earlier versions it works fine.
bundles/org.eclipse.ui.cocoa/src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java
prefMenuItem.setTarget(delegate);
    		invokeMethod(NSMenuItem.class, prefMenuItem, "setAction", new Object[] {wrapPointer(sel_preferencesMenuItemSelected_)});
    		aboutMenuItem.setTarget(delegate);
    		invokeMethod(NSMenuItem.class, aboutMenuItem, "setAction", new Object[] {wrapPointer(sel_aboutMenuItemSelected_)});
    	} catch (Exception e) {
			
			
			log(e);
		}
    }
	/**
     * Locate an action with the given id in the current menu bar and run it.
     */
    private void runAction(String actionId) {
        IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        if (window != null) {
        	IMenuManager manager = ((WorkbenchWindow)window).getActionBars().getMenuManager();
        	IAction action = findAction(actionId, manager);
        	if (action != null && action.isEnabled()) {
        		try {
        			NSMenu mainMenu = NSApplication.sharedApplication().mainMenu();
        			NSMenuItem mainMenuItem = (NSMenuItem) invokeMethod(NSMenu.class, mainMenu, "itemAtIndex", new Object[] {wrapPointer(0)});
        			NSMenu appMenu = mainMenuItem.submenu();
        			NSMenuItem aboutMenuItem = (NSMenuItem) invokeMethod(NSMenu.class, appMenu, "itemAtIndex", new Object[] {wrapPointer(kAboutMenuItem)});
        			NSMenuItem prefMenuItem = (NSMenuItem) invokeMethod(NSMenu.class, appMenu, "itemAtIndex", new Object[] {wrapPointer(kPreferencesMenuItem)});
        			try {
        				prefMenuItem.setEnabled(false);
        				aboutMenuItem.setEnabled(false);
        				action.run();
        			}