do not initialize Directoryindex in CoreProjectLoader. Do it later, after jdk init

This commit is contained in:
Evgeny Pasynkov
2012-06-06 13:50:12 +02:00
parent 3ca00eb8c8
commit 77d0db7ac1
2 changed files with 3 additions and 4 deletions
@@ -108,7 +108,8 @@ public class CoreApplicationEnvironment {
}
)
);
registerApplicationComponent(VirtualFilePointerManager.class, new CoreVirtualFilePointerManager());
//registerApplicationComponent(VirtualFilePointerManager.class, new CoreVirtualFilePointerManager());
myApplication.registerService(VirtualFilePointerManager.class, new CoreVirtualFilePointerManager());
myApplication.registerService(DefaultASTFactory.class, new CoreASTFactory());
myApplication.registerService(PsiBuilderFactory.class, new PsiBuilderFactoryImpl());
@@ -23,8 +23,6 @@ import com.intellij.openapi.components.impl.stores.StorageData;
import com.intellij.openapi.module.ModuleManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectRootManager;
import com.intellij.openapi.roots.impl.DirectoryIndex;
import com.intellij.openapi.roots.impl.DirectoryIndexImpl;
import com.intellij.openapi.roots.impl.ProjectRootManagerImpl;
import com.intellij.openapi.roots.impl.libraries.LibraryTableBase;
import com.intellij.openapi.roots.impl.libraries.ProjectLibraryTable;
@@ -86,7 +84,7 @@ public class CoreProjectLoader {
}
moduleManager.loadModules();
((DirectoryIndexImpl) DirectoryIndex.getInstance(project)).initialize();
//((DirectoryIndexImpl) DirectoryIndex.getInstance(project)).initialize();
}
public static StorageData loadStorageFile(ComponentManager componentManager, VirtualFile modulesXml) throws JDOMException, IOException {