Author: rozagh
Date: 2012-08-10 12:54:55 -0700 (Fri, 10 Aug 2012)
New Revision: 30163
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
Log:
Fired tableabouttobedeleted event for each existing table in tablemanger when
the manager is called to reset.Not having this events fired causes the table
browser to keep its global tables while no references to table manager exist.
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
===================================================================
---
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
2012-08-10 18:57:17 UTC (rev 30162)
+++
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
2012-08-10 19:54:55 UTC (rev 30163)
@@ -91,6 +91,10 @@
@Override
public synchronized void reset() {
+
+ for (CyTable table : tables.values()){
+ eventHelper.fireEvent(new
TableAboutToBeDeletedEvent(this, table));
+ }
tables.clear();
}
--
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.