src/macosx/classes/com/apple/laf/AquaFileView.java

Print this page

        

*** 24,34 **** */ package com.apple.laf; import java.io.*; - import java.security.PrivilegedAction; import java.util.*; import java.util.Map.Entry; import javax.swing.Icon; import javax.swing.filechooser.FileView; --- 24,33 ----
*** 55,66 **** static final int kLSItemInfoAppIsScriptable = 0x00000800; /* App can be scripted*/ static final int kLSItemInfoIsVolume = 0x00001000; /* Item is a volume*/ static final int kLSItemInfoExtensionIsHidden = 0x00100000; /* Item has a hidden extension*/ static { ! java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("osxui")); } // TODO: Un-comment this out when the native version exists //private static native String getNativePathToRunningJDKBundle(); private static native String getNativePathToSharedJDKBundle(); --- 54,71 ---- static final int kLSItemInfoAppIsScriptable = 0x00000800; /* App can be scripted*/ static final int kLSItemInfoIsVolume = 0x00001000; /* Item is a volume*/ static final int kLSItemInfoExtensionIsHidden = 0x00100000; /* Item has a hidden extension*/ static { ! java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("osxui"); ! return null; } + }); + } // TODO: Un-comment this out when the native version exists //private static native String getNativePathToRunningJDKBundle(); private static native String getNativePathToSharedJDKBundle();