mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs tests
This commit is contained in:
+3
-1
@@ -83,7 +83,9 @@ public class NewMappings {
|
||||
|
||||
vcsManager.addInitializationRequest(VcsInitObject.MAPPINGS, new DumbAwareRunnable() {
|
||||
public void run() {
|
||||
activateActiveVcses();
|
||||
if (!myProject.isDisposed()) {
|
||||
activateActiveVcses();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.zmlx.hg4idea;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.components.AbstractProjectComponent;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
@@ -141,8 +142,14 @@ public class HgRepositoryWatcher extends AbstractProjectComponent implements Bul
|
||||
|
||||
@Override
|
||||
public void directoryMappingChanged() {
|
||||
for (VirtualFile root : myVcsManager.getRootsUnderVcs(myVcs)) {
|
||||
registerRoot(root);
|
||||
}
|
||||
ApplicationManager.getApplication().runReadAction(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (myProject.isDisposed()) return;
|
||||
for (VirtualFile root : myVcsManager.getRootsUnderVcs(myVcs)) {
|
||||
registerRoot(root);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user