Author: mes
Date: 2012-01-25 14:57:20 -0800 (Wed, 25 Jan 2012)
New Revision: 28110
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
Log:
added some status update messages for SIF reader task
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
===================================================================
---
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
2012-01-25 22:50:09 UTC (rev 28109)
+++
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
2012-01-25 22:57:20 UTC (rev 28110)
@@ -115,6 +115,7 @@
tm.setProgress(0.15);
tm.setStatusMessage("Processing the interactions...");
+ int numInteractionsRead = 0;
while ((line = br.readLine()) != null) {
if (cancelled) {
// Cancel called. Clean up the garbage.
@@ -135,10 +136,13 @@
// Simply ignore invalid lines.
continue;
}
+
+ if ( (++numInteractionsRead % 1000) == 0 )
+ tm.setStatusMessage("Processed " +
numInteractionsRead + " interactions so far.");
}
br.close();
-// tm.setStatusMessage("Network data loaded from data
source.\nCreating Cytoscape network...");
+ tm.setStatusMessage("Processed " + numInteractionsRead + "
interactions in total.");
nMap.clear();
nMap = null;
--
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.