don't update changelists while perforce is running some commands

This commit is contained in:
peter
2012-02-15 19:09:30 +01:00
parent 8d8705d389
commit c917d9f3ba
@@ -32,15 +32,22 @@ import java.util.List;
* @author yole
*/
public abstract class VcsBackgroundTask<T> extends Task.ConditionalModal {
@NotNull private final PerformInBackgroundOption myBackgroundOption;
private final Collection<T> myItems;
private final List<VcsException> myExceptions = new ArrayList<VcsException>();
public VcsBackgroundTask(final Project project, @NotNull final String title, @NotNull final PerformInBackgroundOption backgroundOption,
final Collection<T> 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 {