Extended IProgressIndicator with method to check if any progress bars are currently...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 15 Jun 2012 10:35:03 +0000 (11:35 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 15 Jun 2012 10:35:03 +0000 (11:35 +0100)
src/jalview/gui/AlignFrame.java
src/jalview/gui/Desktop.java
src/jalview/gui/IProgressIndicator.java

index 304cfb7..acdf745 100755 (executable)
@@ -829,6 +829,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
    *
    * @return true if any progress bars are still active
    */
+  @Override
   public boolean operationInProgress()
   {
     if (progressBars != null && progressBars.size() > 0)
index 300fcc2..5388605 100644 (file)
@@ -2328,6 +2328,20 @@ public class Desktop extends jalview.jbgui.GDesktop implements
   }
 
   /**
+   * 
+   * @return true if any progress bars are still active
+   */
+  @Override
+  public boolean operationInProgress()
+  {
+    if (progressBars != null && progressBars.size() > 0)
+    {
+      return true;
+    }
+    return false;
+  }
+
+  /**
    * This will return the first AlignFrame viewing AlignViewport av. It will
    * break if there are more than one AlignFrames viewing a particular av. This
    * 
index 3477153..0ada6af 100644 (file)
@@ -45,5 +45,10 @@ public interface IProgressIndicator
    */\r
   public abstract void registerHandler(long id,\r
           IProgressIndicatorHandler handler);\r
+  /**\r
+  *\r
+  * @return true if any progress bars are still active\r
+  */\r
+  boolean operationInProgress();\r
 \r
 }\r