private void registerFileSystem(@NotNull VirtualFileSystem fileSystem) { myCollector.addExplicitExtension(fileSystem.getProtocol(), fileSystem); if (!(fileSystem instanceof CachingVirtualFileSystem)) { fileSystem.addVirtualFileListener(myVirtualFileListenerMulticaster.getMulticaster()); } myPhysicalFileSystems.add(fileSystem); }
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; }
@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); } } }
private void registerFileSystem(@Nonnull VirtualFileSystem fileSystem) { myCollector.addExplicitExtension(fileSystem.getProtocol(), fileSystem); if (!(fileSystem instanceof CachingVirtualFileSystem)) { fileSystem.addVirtualFileListener(myVirtualFileListenerMulticaster.getMulticaster()); } myPhysicalFileSystems.add(fileSystem); }