Tabnine Logo
CndFileUtils.clearFileExistenceCache
Code IndexAdd Tabnine to your IDE (free)

How to use
clearFileExistenceCache
method
in
org.netbeans.modules.cnd.utils.cache.CndFileUtils

Best Java code snippets using org.netbeans.modules.cnd.utils.cache.CndFileUtils.clearFileExistenceCache (Showing top 4 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

static void reparseOnRemoved(Collection<FileImpl> removedPhysically, Collection<FileImpl> removedAsExcluded, ProjectBase project) {
  if (TRACE) {
    LOG.log(Level.INFO, "reparseOnRemoved \nPHYSICAL:{0}\nEXCLUDED:{1}", new Object[] {toString(removedPhysically), toString(removedAsExcluded)});
  }
  CndFileUtils.clearFileExistenceCache();
  Set<CsmFile> topParents = new HashSet<>();
  Set<CsmFile> coherence = new HashSet<>();
  // physically removed can cause broken #includes => we need to reparse parent and coherence files
  for (FileImpl impl : removedPhysically) {
    if (impl != null) {
      topParents.addAll(project.getGraph().getTopParentFiles(impl).getCompilationUnits());
      coherence.addAll(project.getGraph().getCoherenceFiles(impl).getCoherenceFiles());
      project.getGraph().removeFile(impl);
      topParents.remove(impl);
      coherence.remove(impl);
    }
  }
  // excluded are just removed, because their model excluded from model
  // but physically they could be in place, no need to reparse those who includes them
  for (FileImpl impl : removedAsExcluded) {
    project.getGraph().removeFile(impl);
    topParents.remove(impl);
    coherence.remove(impl);
  }
  addToReparse(project, topParents, coherence, false);
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

public final void onFileObjectExternalCreate(Collection<FileObject> files) {
  try {
    ParserQueue.instance().onStartAddingProjectFiles(this);
    CndFileUtils.clearFileExistenceCache();
    // #196664 - Code Model ignores the generated files"
    // when external file was created and assigned to this project => 
    // create csm file for it if possible
    List<NativeFileItem> nativeFileItems = new ArrayList<>();
    // Try to find native file
    if (getPlatformProject() instanceof NativeProject) {
      NativeProject prj = (NativeProject) getPlatformProject();
      for (FileObject fo : files) {
        if (prj != null) {
          NativeFileItem item = prj.findFileItem(fo);
          if (item != null) {
            nativeFileItems.add(item);
          }
        }
      }
    }
    // schedule reparse like added NFI
    if (!nativeFileItems.isEmpty()) {
      onFileItemsAdded(nativeFileItems);
    }
    // allow to fix broken includes
    DeepReparsingUtils.reparseOnAdded(nativeFileItems, this);
  } finally {
    ParserQueue.instance().onEndAddingProjectFiles(this);   
  }
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public void scheduleReparse(Collection<CsmProject> projects) {
  CndFileUtils.clearFileExistenceCache();
  ParserQueue.instance().clearParseWatch();
  APTFileCacheManager.invalidateAll();
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

private void cleanCaches() {
  TextCache.getManager().dispose();
  FilePathCache.getManager().dispose();
  QualifiedNameCache.getManager().dispose();
  NameCache.getManager().dispose();
  UniqueNameCache.getManager().dispose();
  FileNameCache.getManager().dispose();
  ProjectNameCache.getManager().dispose();
  APTDriver.close();
  APTFileCacheManager.close();
  UIDManager.instance().dispose();
  KeyManager.instance().dispose();
  CndFileUtils.clearFileExistenceCache();
  APTFileCacheManager.invalidateAll();
  APTSystemStorage.dispose();
}
org.netbeans.modules.cnd.utils.cacheCndFileUtilsclearFileExistenceCache

Popular methods of CndFileUtils

  • isLocalFileSystem
  • normalizeAbsolutePath
  • toFileObject
  • getLocalFileSystem
  • createLocalFile
  • normalizeFile
    normalize file
  • fileObjectToUrl
  • getFileSeparatorChar
  • isExistingFile
    Tests whether the file exists and not directory. One of file or filePath must be not null
  • normalizePath
  • urlToFileObject
  • areFilenamesEqual
  • urlToFileObject,
  • areFilenamesEqual,
  • getCanonicalFileObject,
  • getCanonicalPath,
  • isExistingDirectory,
  • isSystemCaseSensitive,
  • toFSPathList,
  • toFile,
  • changeStringCaseIfNeeded

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JComboBox (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now