Author: clopes
Date: 2012-06-12 14:45:25 -0700 (Tue, 12 Jun 2012)
New Revision: 29537
Modified:
core3/impl/trunk/application-impl/src/main/java/org/cytoscape/application/internal/CyApplicationManagerImpl.java
Log:
Just making sure the events are fired when the application manager is reset.
Modified:
core3/impl/trunk/application-impl/src/main/java/org/cytoscape/application/internal/CyApplicationManagerImpl.java
===================================================================
---
core3/impl/trunk/application-impl/src/main/java/org/cytoscape/application/internal/CyApplicationManagerImpl.java
2012-06-12 21:18:24 UTC (rev 29536)
+++
core3/impl/trunk/application-impl/src/main/java/org/cytoscape/application/internal/CyApplicationManagerImpl.java
2012-06-12 21:45:25 UTC (rev 29537)
@@ -220,12 +220,11 @@
@Override
public void setSelectedNetworkViews(final List<CyNetworkView>
networkViews) {
- if (networkViews == null)
- return;
-
synchronized (this) {
selectedNetworkViews.clear();
- selectedNetworkViews.addAll(networkViews);
+
+ if (networkViews != null)
+ selectedNetworkViews.addAll(networkViews);
CyNetworkView cv = getCurrentNetworkView();
@@ -312,11 +311,10 @@
@Override
public void reset() {
-
- this.selectedNetworkViews.clear();
- this.currentNetwork = null;
- this.currentNetworkView = null;
- this.currentRenderer = null;
- this.currentTable = null;
+ setCurrentNetwork(null);
+ setCurrentNetworkView(null);
+ setSelectedNetworkViews(null);
+ setCurrentRenderingEngine(null);
+ setCurrentTable(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.