diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/CallbackData.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/CallbackData.java index fa71fdda5208..b2e21956b050 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/CallbackData.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/CallbackData.java @@ -69,7 +69,7 @@ class CallbackData { } else { if (mode.isSynchronous()) { - final Waiter waiter = new Waiter(project, afterUpdate, state, + final Waiter waiter = new Waiter(project, afterUpdate, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), mode.isCancellable()); return new CallbackData( new Runnable() { diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FictiveBackgroundable.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FictiveBackgroundable.java index 3130dbf9b699..86c2906e059e 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FictiveBackgroundable.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FictiveBackgroundable.java @@ -32,7 +32,7 @@ class FictiveBackgroundable extends Task.Backgroundable { final ModalityState state) { super(project, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), cancellable); myState = state; - myWaiter = new Waiter(project, runnable, state, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), cancellable); + myWaiter = new Waiter(project, runnable, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), cancellable); } public void run(@NotNull final ProgressIndicator indicator) { diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/Waiter.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/Waiter.java index 9a714e33027d..3a8b491fc54f 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/Waiter.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/Waiter.java @@ -15,7 +15,6 @@ */ package com.intellij.openapi.vcs.changes; -import com.intellij.openapi.application.ModalityState; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.Task; @@ -25,16 +24,14 @@ import org.jetbrains.annotations.NotNull; public class Waiter extends Task.Modal { private final Logger LOG = Logger.getInstance("#com.intellij.openapi.vcs.changes.Waiter"); - private final ModalityState myState; private final Runnable myRunnable; private boolean myStarted; private boolean myDone; private final Object myLock = new Object(); - public Waiter(final Project project, final Runnable runnable, final ModalityState state, final String title, final boolean cancellable) { + public Waiter(final Project project, final Runnable runnable, final String title, final boolean cancellable) { super(project, title, cancellable); myRunnable = runnable; - myState = state; myDone = false; myStarted = false; setCancelText("Skip");