19 package org.sleuthkit.autopsy.progress;
21 import java.util.concurrent.Future;
22 import org.openide.util.Cancellable;
23 import org.openide.util.NbBundle;
55 public synchronized void setFuture(Future<?> future) {
61 "TaskCanceller.progress.cancellingMessage=Cancelling..."
63 public synchronized boolean cancel() {
64 progress.
setCancelling(Bundle.TaskCanceller_progress_cancellingMessage());
65 return future.cancel(
true);
TaskCancellable(ProgressIndicator progress)
default void setCancelling(String cancellingMessage)
synchronized boolean cancel()
final ProgressIndicator progress
synchronized void setFuture(Future<?> future)