From c917d9f3ba87cbb198c6ee8ba882d88d2837e1a1 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 15 Feb 2012 17:54:44 +0100 Subject: [PATCH] don't update changelists while perforce is running some commands --- .../src/com/intellij/util/ui/VcsBackgroundTask.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/vcs-api/src/com/intellij/util/ui/VcsBackgroundTask.java b/platform/vcs-api/src/com/intellij/util/ui/VcsBackgroundTask.java index 06cc1a094892..78a5f6abb0a2 100644 --- a/platform/vcs-api/src/com/intellij/util/ui/VcsBackgroundTask.java +++ b/platform/vcs-api/src/com/intellij/util/ui/VcsBackgroundTask.java @@ -32,15 +32,22 @@ import java.util.List; * @author yole */ public abstract class VcsBackgroundTask extends Task.ConditionalModal { + @NotNull private final PerformInBackgroundOption myBackgroundOption; private final Collection myItems; private final List myExceptions = new ArrayList(); public VcsBackgroundTask(final Project project, @NotNull final String title, @NotNull final PerformInBackgroundOption backgroundOption, final Collection itemsToProcess) { super(project, title, false, backgroundOption); + myBackgroundOption = backgroundOption; myItems = itemsToProcess; } + @NotNull + public PerformInBackgroundOption getBackgroundOption() { + return myBackgroundOption; + } + public void run(@NotNull ProgressIndicator indicator) { for(T item: myItems) { try {