IDEA-136705 (delay post-execution refresh to allow FS changes to reach the IDE)
[idea/community.git] / platform / platform-impl / src / com / intellij / ide / actions / SynchronizeAction.java
index 942d78a81e612f62938edf0c390fb51cdf95a9c3..525108ae518fdb571ff141d5647dd26b174b0d40 100644 (file)
@@ -15,7 +15,7 @@
  */
 package com.intellij.ide.actions;
 
-import com.intellij.ide.SaveAndSyncHandlerImpl;
+import com.intellij.ide.SaveAndSyncHandler;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.fileEditor.FileDocumentManager;
@@ -26,9 +26,7 @@ public class SynchronizeAction extends AnAction implements DumbAware {
   @Override
   public void actionPerformed(AnActionEvent e) {
     FileDocumentManager.getInstance().saveAllDocuments();
-
-    SaveAndSyncHandlerImpl.refreshOpenFiles();
-
+    SaveAndSyncHandler.getInstance().refreshOpenFiles();
     VirtualFileManager.getInstance().refreshWithoutFileWatcher(true);
   }
 }