Author: ruschein
Date: 2011-08-16 09:55:01 -0700 (Tue, 16 Aug 2011)
New Revision: 26568
Modified:
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
Log:
Removed debugging code.
Modified:
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
===================================================================
---
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
2011-08-16 15:41:31 UTC (rev 26567)
+++
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
2011-08-16 16:55:01 UTC (rev 26568)
@@ -165,7 +165,7 @@
}
// create the task thread
- final Runnable tasks = new TaskThread(first, taskMonitor,
taskIterator, factory);
+ final Runnable tasks = new TaskThread(first, taskMonitor,
taskIterator);
// submit the task thread for execution
final Future<?> executorFuture =
taskExecutorService.submit(tasks);
@@ -193,17 +193,14 @@
private final SwingTaskMonitor taskMonitor;
private final TaskIterator taskIterator;
private final Task first;
- private final TaskFactory factory;
- TaskThread(final Task first, final SwingTaskMonitor tm, final
TaskIterator ti, final TaskFactory factory) {
+ TaskThread(final Task first, final SwingTaskMonitor tm, final
TaskIterator ti) {
this.first = first;
this.taskMonitor = tm;
this.taskIterator = ti;
- this.factory = factory;
}
public void run() {
- final long startTime = System.currentTimeMillis();
try {
// actually run the first task
// don't dispaly the tunables here - they were
handled above.
@@ -229,17 +226,11 @@
} catch (Exception exception) {
logger.warn("Caught exception executing task.
", exception);
taskMonitor.showException(exception);
- } finally {
- final long endTime = System.currentTimeMillis();
-System.err.println("+++ Factory " + factory + ": " + (endTime-startTime) +
"ms");
}
// clean up the task monitor
if (taskMonitor.isOpened() &&
!taskMonitor.isShowingException())
taskMonitor.close();
-
-final long endTime2 = System.currentTimeMillis();
-System.err.println("+++ Factory " + factory + ": " + (endTime2-startTime) +
"ms (2)");
}
}
--
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.