Author: ruschein
Date: 2010-10-22 15:32:18 -0700 (Fri, 22 Oct 2010)
New Revision: 22344
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/actions/ListFromFileSelectionAction.java
Log:
Fixed a bug reported by Rohith where all nodes were being selected instead of
only those listed in a file.
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/actions/ListFromFileSelectionAction.java
===================================================================
---
cytoscape/trunk/application/src/main/java/cytoscape/actions/ListFromFileSelectionAction.java
2010-10-22 00:25:58 UTC (rev 22343)
+++
cytoscape/trunk/application/src/main/java/cytoscape/actions/ListFromFileSelectionAction.java
2010-10-22 22:32:18 UTC (rev 22344)
@@ -1,15 +1,8 @@
/*
File: ListFromFileSelectionAction.java
- Copyright (c) 2006, The Cytoscape Consortium (www.cytoscape.org)
+ Copyright (c) 2006, 2010, The Cytoscape Consortium (www.cytoscape.org)
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
@@ -34,9 +27,9 @@
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-
package cytoscape.actions;
+
import giny.model.Node;
import java.awt.event.ActionEvent;
@@ -132,8 +125,10 @@
int selectCount = 0;
for (Node node: nodeList) {
- network.setSelectedNodeState(node, true);
- selectCount++;
+ if (fileNodes.contains(node.getIdentifier())) {
+ network.setSelectedNodeState(node, true);
+ selectCount++;
+ }
}
if (selectCount == 0) {
--
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.