Author: kono
Date: 2011-12-13 09:28:39 -0800 (Tue, 13 Dec 2011)
New Revision: 27778

Modified:
   
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
Log:
Minor update only (parameter name change).

Modified: 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
===================================================================
--- 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
  2011-12-13 16:53:29 UTC (rev 27777)
+++ 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskMonitor.java
  2011-12-13 17:28:39 UTC (rev 27778)
@@ -1,7 +1,6 @@
 package org.cytoscape.work.internal.task;
 
 
-import java.awt.Dialog.ModalityType;
 import java.awt.Window;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
@@ -40,8 +39,8 @@
                this.parent = parent;
        }
 
-       public void setExpectedNumTasks(int numTasks) {
-               this.expectedNumTasks = numTasks;
+       public void setExpectedNumTasks(final int expectedNumTasks) {
+               this.expectedNumTasks = expectedNumTasks;
                this.fractionOfOverall = 1.0/(double)expectedNumTasks;
        }
 
@@ -119,9 +118,12 @@
                        if (dialog != null)
                                dialog.setPercentCompleted(-1);
                } else {
+                       logger.info("Set Progeress called: " + progress);
                        double completed = 
(double)currentTaskNum/(double)expectedNumTasks;
                        double adjustedProgress = (progress * 
fractionOfOverall) + completed;
                        this.progress = (int) Math.floor(100.0 * 
adjustedProgress); 
+                       
+                       logger.info("## Set Progeress converted: " + 
this.progress);
                        if (dialog != null)
                                dialog.setPercentCompleted(this.progress);
                }

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to