platform: allow manual refresh for non-local VFSes
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 16 Feb 2015 12:43:06 +0000 (13:43 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 16 Feb 2015 12:43:06 +0000 (13:43 +0100)
platform/vcs-impl/src/com/intellij/ide/actions/SynchronizeCurrentFileAction.java

index 146c795b982f05bd2f93cb820314a0fd4fc8b24a..9bcd04a41e61793dd2d4e9a90623b55b0a3a12f2 100644 (file)
@@ -23,9 +23,7 @@ import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.project.DumbAware;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vcs.changes.VcsDirtyScopeManager;
-import com.intellij.openapi.vfs.LocalFileSystem;
 import com.intellij.openapi.vfs.VirtualFile;
-import com.intellij.openapi.vfs.VirtualFileSystem;
 import com.intellij.openapi.vfs.newvfs.NewVirtualFile;
 import com.intellij.openapi.vfs.newvfs.RefreshQueue;
 import com.intellij.openapi.wm.StatusBar;
@@ -62,8 +60,7 @@ public class SynchronizeCurrentFileAction extends AnAction implements DumbAware
       @Override
       public void run() {
         for (VirtualFile file : files) {
-          VirtualFileSystem fs = file.getFileSystem();
-          if (fs instanceof LocalFileSystem && file instanceof NewVirtualFile) {
+          if (file instanceof NewVirtualFile) {
             ((NewVirtualFile)file).markDirtyRecursively();
           }
         }