Package com.intellij.psi.util

Examples of com.intellij.psi.util.CachedValuesManager


  public static KarmaBasePathFinder getInstance() {
    return INSTANCE;
  }

  public String fetchBasePath(@NotNull final JSFile jsFile) {
    CachedValuesManager cachedValuesManager = CachedValuesManager.getManager(jsFile.getProject());
    return cachedValuesManager.getCachedValue(
      jsFile,
      myTestFileStructureRegistryKey,
      new CachedValueProvider<String>() {
        @Override
        public Result<String> compute() {
View Full Code Here


        @Nullable
        public Result<T> compute() {
          return computeValue(dataHolder);
        }
      };
      final CachedValuesManager manager = PsiManager.getInstance(myProject).getCachedValuesManager();
      cachedValue = manager.createCachedValue(myProvider, false);
      dataHolder.putUserData(myKey, cachedValue);
    }
    return cachedValue.getValue();
  }
View Full Code Here

TOP

Related Classes of com.intellij.psi.util.CachedValuesManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.