Bug 157080 releng warnings in the carbon plug-in
bundles/org.eclipse.ui.carbon/src/org/eclipse/ui/carbon/CarbonUIEnhancer.java
}
	}
	
	/**
	 * Hook the window toolbar button to toggle the visibility of the coolbar
	 * and perspective bar.
	 * 
	 * @since 3.2
	 */
    protected void hookToolbarButtonCallback() {
		Object target = new Object() {
			public int toolbarProc (int nextHandler, int theEvent, int userData) {
				int eventKind = OS.GetEventKind (theEvent);
				if (eventKind != OS.kEventWindowToolbarSwitchMode)
					return OS.eventNotHandledErr;
				
				int [] theWindow = new int [1];
				OS.GetEventParameter (theEvent, OS.kEventParamDirectObject, OS.typeWindowRef, null, 4, null, theWindow);
				
				int [] theRoot = new int [1];
				OS.GetRootControl (theWindow [0], theRoot);
				Widget widget = Display.getCurrent().findWidget(theRoot [0]);
				
				if (!(widget instanceof Shell)) {
					return OS.eventNotHandledErr;
				}
				Shell shell = (Shell) widget;
				IWorkbenchWindow[] windows = PlatformUI.getWorkbench()
						.getWorkbenchWindows();
				for (int i = 0; i < windows.length; i++) {