Ejemplo n.º 1
0
 public static void refreshFiles(Project project, HashSet<FilePath> paths) {
   for (FilePath path : paths) {
     VirtualFile vFile = path.getVirtualFile();
     if (vFile != null) {
       if (vFile.isDirectory()) {
         markFileAsDirty(project, vFile);
       } else {
         vFile.refresh(true, vFile.isDirectory());
       }
     }
   }
 }
Ejemplo n.º 2
0
 public static void markFileAsDirty(final Project project, final String path) {
   final FilePath filePath =
       VcsContextFactory.SERVICE.getInstance().createFilePathOn(new File(path));
   markFileAsDirty(project, filePath);
 }