Author: kono
Date: 2011-09-20 10:50:48 -0700 (Tue, 20 Sep 2011)
New Revision: 26880

Modified:
   
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/creation/CreateNetworkViewTask.java
Log:
Log message had been added.

Modified: 
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/creation/CreateNetworkViewTask.java
===================================================================
--- 
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/creation/CreateNetworkViewTask.java
       2011-09-20 16:52:23 UTC (rev 26879)
+++ 
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/creation/CreateNetworkViewTask.java
       2011-09-20 17:50:48 UTC (rev 26880)
@@ -41,9 +41,14 @@
 import org.cytoscape.view.model.CyNetworkViewManager;
 import org.cytoscape.work.TaskMonitor;
 import org.cytoscape.work.undo.UndoSupport;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 public class CreateNetworkViewTask extends AbstractNetworkTask {
+       
+       private static final Logger logger = 
LoggerFactory.getLogger(CreateNetworkViewTask.class);
+       
        private final UndoSupport undoSupport;
        private final CyNetworkViewManager networkViewManager;
        private final CyNetworkViewFactory viewFactory;
@@ -66,6 +71,8 @@
        }
 
        public void run(TaskMonitor taskMonitor) throws Exception {
+               final long start = System.currentTimeMillis();
+
                taskMonitor.setStatusMessage("Creating network view...");
                taskMonitor.setProgress(-1.0);
 
@@ -92,5 +99,7 @@
                taskMonitor.setProgress(1.0);
                taskMonitor.setStatusMessage("Network view successfully create 
for:  "
                                + network.getCyRow().get(CyTableEntry.NAME, 
String.class));
+               
+               logger.info("Network view creation finished in " + 
(System.currentTimeMillis() -start) + " msec.");
        }
 }

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