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
return convertToLong(object);
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.ui.IStartup#earlyStartup()
     */
    public void earlyStartup() {
        final Display display = Display.getDefault();
        display.syncExec(new Runnable() {
            public void run() {
            	try {
            		delegate = new SWTCocoaEnhancerDelegate();
            		delegate.alloc().init();
            		
					Method method = OS.class.getMethod("NewGlobalRef", new Class[] { Object.class });
					Object object = method.invoke(OS.class, new Object[] {CocoaUIEnhancer.this});
					delegateJniRef = convertToLong(object);
            	} catch (Exception e) {
					
					
					log(e);
				}
        		if (delegateJniRef == 0) SWT.error(SWT.ERROR_NO_HANDLES);
				try {
					Field idField = SWTCocoaEnhancerDelegate.class.getField("id");
					Object idValue = idField.get(delegate);
					invokeMethod(OS.class, "object_setInstanceVariable",
							new Object[] { idValue,
									SWT_OBJECT, wrapPointer(delegateJniRef) });
					hookApplicationMenu();