From 195021d1fbfc8d6082ceabd26fcae56309941af5 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 17 Oct 2007 12:46:16 +0000
Subject: [PATCH] Simplify the ProgressUpdateListenerDelegate interface.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java
index 4a38ae3..55af64a 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java
@@ -265,7 +265,7 @@
    */
   public void setProgressMessageFormatter(ProgressMessageFormatter formatter) {
     this.formatter = formatter;
-    this.listenerDelegate = new ProgressUpdateListenerDelegate(formatter);
+    this.listenerDelegate = new ProgressUpdateListenerDelegate();
   }
 
   /**
@@ -597,6 +597,17 @@
   abstract public void cancel();
 
   /**
+   * Checks whether the operation has been aborted.  If it has throws an
+   * ApplicationException.  All the applications that support abort must
+   * provide their implementation as the default implementation is empty.
+   *
+   * @throws ApplicationException thrown if the application was aborted.
+   */
+  public void checkAbort() throws ApplicationException
+  {
+  }
+
+  /**
    * Makes available a <code>UserInteraction</code> class that can be used
    * by the application to interact with the user.  If the user has requested
    * a quiet session this method returns null.

--
Gitblit v1.10.0