Author: neildhruva
Date: 2012-07-11 08:14:44 -0700 (Wed, 11 Jul 2012)
New Revision: 29827
Modified:
csplugins/trunk/soc/neildhruva/PrintTable/src/main/java/org/cytoscape/sample/internal/EventTableAdded.java
Log:
Method to retrieve myCyTable (custom CyTable) is changed from getting it from
CyTableManager to getting it from CyNetworkTableManager.
Modified:
csplugins/trunk/soc/neildhruva/PrintTable/src/main/java/org/cytoscape/sample/internal/EventTableAdded.java
===================================================================
---
csplugins/trunk/soc/neildhruva/PrintTable/src/main/java/org/cytoscape/sample/internal/EventTableAdded.java
2012-07-11 14:50:15 UTC (rev 29826)
+++
csplugins/trunk/soc/neildhruva/PrintTable/src/main/java/org/cytoscape/sample/internal/EventTableAdded.java
2012-07-11 15:14:44 UTC (rev 29827)
@@ -63,16 +63,7 @@
//myCyTable is the custom CyTable created for this app and
associated with each network.
CyTable myCyTable=null;
- CyTable tempCyTable;
- String compareString = "PrintTable "+cytable.getTitle();
- Iterator<CyTable> iterator =
cyTableManager.getAllTables(true).iterator();
- while(iterator.hasNext()) {
- tempCyTable = iterator.next();
- if(tempCyTable.getTitle().equals(compareString)){
- myCyTable=tempCyTable;
- break;
- }
- }
+ myCyTable = cyNetworkTableMgr.getTable(e.getNetwork(),
CyNetwork.class, "PrintTable");
if(myCyTable!=null) {
panelComponents.initCheckBoxArray(myCyTable, cytable);
--
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.