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
* 
	 * @param window
	 *            the window to modify
	 * @since 3.2
	 */
	protected void modifyWindowShell(final IWorkbenchWindow window) {
		
		
		
		
		boolean coolBarInitiallyVsible = ((WorkbenchWindow) window)
				.getCoolBarVisible();
		boolean perspectiveBarInitiallyVsible = ((WorkbenchWindow) window)
				.getPerspectiveBarVisible();
		if (coolBarInitiallyVsible || perspectiveBarInitiallyVsible) {
			createDummyToolbar(window);
		}else {
			
			if(!(window instanceof WorkbenchWindow))
				return;
			final WorkbenchWindow workbenchWindow = (WorkbenchWindow) window;
			workbenchWindow.addPropertyChangeListener(new IPropertyChangeListener() {
				
				public void propertyChange(PropertyChangeEvent event) {
					if(workbenchWindow.PROP_COOLBAR_VISIBLE.equals(event.getProperty())) {
						createDummyToolbar(window);
						workbenchWindow.removePropertyChangeListener(this);
					}
				}
			});