Search in sources :

Example 1 with SvnFileUrlMappingImpl

use of org.jetbrains.idea.svn.SvnFileUrlMappingImpl in project intellij-community by JetBrains.

the class SvnTestCase method refreshSvnMappingsSynchronously.

protected void refreshSvnMappingsSynchronously() {
    final SvnVcs vcs = SvnVcs.getInstance(myProject);
    if (!myInitChangeListManager) {
        return;
    }
    final Semaphore semaphore = new Semaphore();
    semaphore.down();
    ((SvnFileUrlMappingImpl) vcs.getSvnFileUrlMapping()).realRefresh(() -> semaphore.up());
    semaphore.waitFor();
}
Also used : SvnFileUrlMappingImpl(org.jetbrains.idea.svn.SvnFileUrlMappingImpl) Semaphore(com.intellij.util.concurrency.Semaphore) SvnVcs(org.jetbrains.idea.svn.SvnVcs)

Aggregations

Semaphore (com.intellij.util.concurrency.Semaphore)1 SvnFileUrlMappingImpl (org.jetbrains.idea.svn.SvnFileUrlMappingImpl)1 SvnVcs (org.jetbrains.idea.svn.SvnVcs)1