jni for internals

This commit is contained in:
Dmitry Avdeev
2009-12-22 18:13:59 +03:00
parent 5ff218ff82
commit cb951b5354
@@ -19,6 +19,7 @@
*/
package com.intellij.openapi.vfs.newvfs.persistent;
import com.intellij.openapi.application.ex.ApplicationManagerEx;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.vfs.LocalFileSystem;
@@ -58,7 +59,7 @@ public class RefreshWorker {
}
else {
if (delegate.getProtocol().equals(LocalFileSystem.PROTOCOL) &&
root.isDirectory() &&
root.isDirectory() && ApplicationManagerEx.getApplicationEx().isInternal() &&
Registry.is("filesystem.useNative")) {
if (SystemInfo.isWindows && Win32LocalFileSystem.isAvailable()) {