* Call "fileDirty" in the read action.
*/
public static void markFileAsDirty(final Project project, final VirtualFile file) {
final VcsDirtyScopeManager mgr = VcsDirtyScopeManager.getInstance(project);
ApplicationManager.getApplication().runReadAction(new Runnable() {
public void run() { mgr.fileDirty(file); }
});
}
public static void markFileAsDirty(final Project project, final FilePath path) {
ApplicationManager.getApplication().runReadAction(new Runnable() {