move PsiCachedValue and friends to core-impl; register it in CoreEnvironment
authorDmitry Jemerov <yole@jetbrains.com>
Sat, 1 Oct 2011 09:22:12 +0000 (11:22 +0200)
committerDmitry Jemerov <yole@jetbrains.com>
Tue, 4 Oct 2011 14:02:00 +0000 (16:02 +0200)
platform/core-impl/src/com/intellij/core/CoreEnvironment.java
platform/core-impl/src/com/intellij/psi/impl/PsiCachedValue.java [moved from platform/lang-impl/src/com/intellij/psi/impl/PsiCachedValue.java with 100% similarity]
platform/core-impl/src/com/intellij/psi/impl/PsiCachedValueImpl.java [moved from platform/lang-impl/src/com/intellij/psi/impl/PsiCachedValueImpl.java with 100% similarity]
platform/core-impl/src/com/intellij/psi/impl/PsiCachedValuesFactory.java [moved from platform/lang-impl/src/com/intellij/psi/impl/PsiCachedValuesFactory.java with 100% similarity]
platform/core-impl/src/com/intellij/psi/impl/PsiParameterizedCachedValue.java [moved from platform/lang-impl/src/com/intellij/psi/impl/PsiParameterizedCachedValue.java with 100% similarity]
platform/platform-resources/src/META-INF/LangExtensions.xml

index ad74656bc4581f14ea3f15c9fbde8b8efaa73ed9..9e378fb472bc99d3a5ce7c960a58918f33798db1 100644 (file)
@@ -34,6 +34,7 @@ import com.intellij.openapi.util.Disposer;
 import com.intellij.openapi.util.Getter;
 import com.intellij.psi.PsiFileFactory;
 import com.intellij.psi.PsiManager;
+import com.intellij.psi.impl.PsiCachedValuesFactory;
 import com.intellij.psi.impl.PsiFileFactoryImpl;
 import com.intellij.psi.impl.PsiManagerImpl;
 import com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry;
@@ -85,7 +86,7 @@ public class CoreEnvironment {
     registerComponentInstance(projectContainer, PsiManager.class, psiManager);
 
     myProject.registerService(PsiFileFactory.class, new PsiFileFactoryImpl(psiManager));
-    myProject.registerService(CachedValuesManager.class, new CachedValuesManagerImpl(myProject, null));
+    myProject.registerService(CachedValuesManager.class, new CachedValuesManagerImpl(myProject, new PsiCachedValuesFactory(psiManager)));
   }
 
   public Project getProject() {
index c1e39d7b453708beb74d1b5a9ed715e5350eb285..a77bbeeb54bfd7c3c01406d0c62b7558f442e991 100644 (file)
   <projectService serviceInterface="com.intellij.psi.impl.include.FileIncludeManager"
                   serviceImplementation="com.intellij.psi.impl.include.FileIncludeManagerImpl"/>
   <projectService serviceInterface="com.intellij.util.CachedValuesFactory"
-                  serviceImplementation="com.intellij.psi.impl.PsiCachedValuesFactory"/> 
+                  serviceImplementation="com.intellij.psi.impl.PsiCachedValuesFactory"/>
 
 
   <projectService serviceInterface="com.intellij.openapi.roots.impl.libraries.ProjectLibraryTable"