Bug 326924 Compiler warnings in N20101003-2000
1. WARNING in /src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java (at line 334) if(workbenchWindow.PROP_COOLBAR_VISIBLE.equals(event.getProperty())) { The static field WorkbenchWindow.PROP_COOLBAR_VISIBLE should be accessed in a static way "workbenchWindow" should be replaced with "WorkbenchWindow".
bundles/org.eclipse.ui.cocoa/src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java
}
	}
	/**
	 * Add an empty, hidden tool bar to the window. Without this the tool bar
	 * button at the top right of the window will not appear even when
	 * setShowsToolbarButton(true) is called.
	 * 
	 * @param window
	 */
	private void createDummyToolbar(IWorkbenchWindow window) {
		NSToolbar dummyBar = new NSToolbar();
		dummyBar.alloc();
		dummyBar.initWithIdentifier(NSString.stringWith("SWTToolbar")); 
		dummyBar.setVisible(false);
		
		Shell shell = window.getShell();
		NSWindow nsWindow = shell.view.window();
		nsWindow.setToolbar(dummyBar);
		dummyBar.release();
		nsWindow.setShowsToolbarButton(true);
		
		
		try {
			Object fieldValue = wrapPointer(NSWindowToolbarButton);
			NSButton toolbarButton = (NSButton) invokeMethod(NSWindow.class, nsWindow, "standardWindowButton", new Object[] {fieldValue});
			if (toolbarButton != null) {
				toolbarButton.setTarget(delegate);
				invokeMethod(NSControl.class, toolbarButton, "setAction",
						new Object[] { wrapPointer(sel_toolbarButtonClicked_) });
			}