mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
05.04.2008 e290fc8fe50c2cf6e97e0e7b782101da5b5a94dc
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/BackgroundTask.java
@@ -36,6 +36,7 @@
public abstract class BackgroundTask<T>
{
  private BackgroundTaskThread<T> taskThread;
  private boolean interrupted;
  /**
   * Creates a new thread and begins running the task in the background.  When
   * the task has completed, the {@code backgroundTaskCompleted} method will be
@@ -43,6 +44,7 @@
   */
  public final void startBackgroundTask()
  {
    interrupted = false;
    taskThread = new BackgroundTaskThread<T>(this);
    taskThread.start();
  }
@@ -53,6 +55,7 @@
   */
  public final void interrupt()
  {
    interrupted = true;
    if (taskThread != null)
    {
      taskThread.interrupt();
@@ -67,14 +70,7 @@
   */
  public boolean isInterrupted()
  {
    if (taskThread != null)
    {
      return taskThread.isInterrupted();
    }
    else
    {
      return false;
    }
    return interrupted;
  }
  /**