Java 类com.intellij.openapi.vfs.newvfs.CachingVirtualFileSystem 实例源码

项目:intellij-ce-playground    文件:VirtualFileManagerImpl.java   
private void registerFileSystem(@NotNull VirtualFileSystem fileSystem) {
  myCollector.addExplicitExtension(fileSystem.getProtocol(), fileSystem);
  if (!(fileSystem instanceof CachingVirtualFileSystem)) {
    fileSystem.addVirtualFileListener(myVirtualFileListenerMulticaster.getMulticaster());
  }
  myPhysicalFileSystems.add(fileSystem);
}
项目:intellij-ce-playground    文件:VirtualFileManagerImpl.java   
protected long doRefresh(boolean asynchronous, @Nullable Runnable postAction) {
  if (!asynchronous) {
    ApplicationManager.getApplication().assertIsDispatchThread();
  }

  for (VirtualFileSystem fileSystem : getPhysicalFileSystems()) {
    if (!(fileSystem instanceof CachingVirtualFileSystem)) {
      fileSystem.refresh(asynchronous);
    }
  }

  return 0;
}
项目:intellij-ce-playground    文件:VirtualFileManagerImpl.java   
@Override
public void refreshWithoutFileWatcher(final boolean asynchronous) {
  if (!asynchronous) {
    ApplicationManager.getApplication().assertIsDispatchThread();
  }

  for (VirtualFileSystem fileSystem : getPhysicalFileSystems()) {
    if (fileSystem instanceof CachingVirtualFileSystem) {
      ((CachingVirtualFileSystem)fileSystem).refreshWithoutFileWatcher(asynchronous);
    }
    else {
      fileSystem.refresh(asynchronous);
    }
  }
}
项目:tools-idea    文件:VirtualFileManagerImpl.java   
private void registerFileSystem(@NotNull VirtualFileSystem fileSystem) {
  myCollector.addExplicitExtension(fileSystem.getProtocol(), fileSystem);
  if (!(fileSystem instanceof CachingVirtualFileSystem)) {
    fileSystem.addVirtualFileListener(myVirtualFileListenerMulticaster.getMulticaster());
  }
  myPhysicalFileSystems.add(fileSystem);
}
项目:tools-idea    文件:VirtualFileManagerImpl.java   
protected long doRefresh(boolean asynchronous, @Nullable Runnable postAction) {
  if (!asynchronous) {
    ApplicationManager.getApplication().assertIsDispatchThread();
  }

  for (VirtualFileSystem fileSystem : getPhysicalFileSystems()) {
    if (!(fileSystem instanceof CachingVirtualFileSystem)) {
      fileSystem.refresh(asynchronous);
    }
  }

  return 0;
}
项目:tools-idea    文件:VirtualFileManagerImpl.java   
@Override
public void refreshWithoutFileWatcher(final boolean asynchronous) {
  if (!asynchronous) {
    ApplicationManager.getApplication().assertIsDispatchThread();
  }

  for (VirtualFileSystem fileSystem : getPhysicalFileSystems()) {
    if (fileSystem instanceof CachingVirtualFileSystem) {
      ((CachingVirtualFileSystem)fileSystem).refreshWithoutFileWatcher(asynchronous);
    }
    else {
      fileSystem.refresh(asynchronous);
    }
  }
}
项目:consulo    文件:VirtualFileManagerImpl.java   
private void registerFileSystem(@Nonnull VirtualFileSystem fileSystem) {
  myCollector.addExplicitExtension(fileSystem.getProtocol(), fileSystem);
  if (!(fileSystem instanceof CachingVirtualFileSystem)) {
    fileSystem.addVirtualFileListener(myVirtualFileListenerMulticaster.getMulticaster());
  }
  myPhysicalFileSystems.add(fileSystem);
}
项目:consulo    文件:VirtualFileManagerImpl.java   
protected long doRefresh(boolean asynchronous, @Nullable Runnable postAction) {
  if (!asynchronous) {
    ApplicationManager.getApplication().assertIsDispatchThread();
  }

  for (VirtualFileSystem fileSystem : getPhysicalFileSystems()) {
    if (!(fileSystem instanceof CachingVirtualFileSystem)) {
      fileSystem.refresh(asynchronous);
    }
  }

  return 0;
}
项目:consulo    文件:VirtualFileManagerImpl.java   
@Override
public void refreshWithoutFileWatcher(final boolean asynchronous) {
  if (!asynchronous) {
    ApplicationManager.getApplication().assertIsDispatchThread();
  }

  for (VirtualFileSystem fileSystem : getPhysicalFileSystems()) {
    if (fileSystem instanceof CachingVirtualFileSystem) {
      ((CachingVirtualFileSystem)fileSystem).refreshWithoutFileWatcher(asynchronous);
    }
    else {
      fileSystem.refresh(asynchronous);
    }
  }
}