mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't update changelists while perforce is running some commands
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user