Author: kono
Date: 2011-01-14 10:30:48 -0800 (Fri, 14 Jan 2011)
New Revision: 23459

Modified:
   
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
Log:
Debug messages are removed.

Modified: 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
===================================================================
--- 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
       2011-01-14 17:47:54 UTC (rev 23458)
+++ 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
       2011-01-14 18:30:48 UTC (rev 23459)
@@ -124,7 +124,6 @@
        @Override
        protected void execute(final TaskFactory factory, boolean wait) {
                final SwingTaskMonitor taskMonitor = new 
SwingTaskMonitor(cancelExecutorService, parent);
-               System.out.println("###### Task Monitor created.");
                
                TaskIterator taskIterator;
                final Task first; 
@@ -156,24 +155,19 @@
                // submit the task thread for execution
                final Future<?> executorFuture = 
taskExecutorService.submit(executor);
                
-               System.out.println("###### Task submitted. IS EDT? = " + 
SwingUtilities.isEventDispatchThread());
-
                openTaskMonitorOnDelay(taskMonitor, executorFuture);
                
                // wait (possibly forever) to return if instructed
                if (wait) {
-                       System.out.println("###### Wait flag is ON");
                        // TODO - do we want a failsafe timeout here?
                        try {
                                executorFuture.get();
-                               System.out.println("###### Tasks finished.");
                        } catch (Exception e) {
                                taskMonitor.showException(e);   
                        } finally {
                                taskMonitor.close();
                        }
                }
-               System.out.println("###### ALL DONE ####################\n\n");
     }
 
        // This creates a thread on delay that conditionally displays the task 
monitor gui
@@ -184,20 +178,11 @@
                        public void run() {
                                if (!(executorFuture.isDone() || 
executorFuture.isCancelled())) {
                                        taskMonitor.open();
-                                       System.out.println("###### Monitor 
opened: Is EDT? = " + SwingUtilities.isEventDispatchThread());
                                }
                        }
                };
                
-//             if(SwingUtilities.isEventDispatchThread())
-//                     timedDialogExecutorService.schedule(timedOpen, 
DELAY_BEFORE_SHOWING_DIALOG, DELAY_TIMEUNIT);
-//             else
-               try {
-                       Thread.sleep(1000);
-                       SwingUtilities.invokeLater(timedOpen);
-               } catch (InterruptedException e) {
-                       taskMonitor.showException(e);
-               }       
+               timedDialogExecutorService.schedule(timedOpen, 
DELAY_BEFORE_SHOWING_DIALOG, DELAY_TIMEUNIT);
        }
 
        private class TaskThread implements Runnable {

-- 
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