Author: ruschein
Date: 2011-09-12 14:15:33 -0700 (Mon, 12 Sep 2011)
New Revision: 26751
Modified:
core3/impl/trunk/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/CyNetworkViewManagerImpl.java
Log:
Microoptimisation?
Modified:
core3/impl/trunk/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/CyNetworkViewManagerImpl.java
===================================================================
---
core3/impl/trunk/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/CyNetworkViewManagerImpl.java
2011-09-12 20:05:59 UTC (rev 26750)
+++
core3/impl/trunk/viewmodel-impl/impl/src/main/java/org/cytoscape/view/model/internal/CyNetworkViewManagerImpl.java
2011-09-12 21:15:33 UTC (rev 26751)
@@ -1,7 +1,7 @@
/*
File: CyNetworkViewManagerImpl.java
- Copyright (c) 2006, 2010, The Cytoscape Consortium (www.cytoscape.org)
+ Copyright (c) 2006, 2010-2011, The Cytoscape Consortium (www.cytoscape.org)
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
@@ -26,14 +26,16 @@
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
+*/
package org.cytoscape.view.model.internal;
+
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import org.cytoscape.di.util.DIUtil;
import org.cytoscape.event.CyEventHelper;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.events.NetworkAboutToBeDestroyedEvent;
@@ -46,11 +48,11 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
/**
* An implementation of CyNetworkViewManager.
*/
public class CyNetworkViewManagerImpl implements CyNetworkViewManager,
NetworkAboutToBeDestroyedListener {
-
private static final Logger logger =
LoggerFactory.getLogger(CyNetworkViewManagerImpl.class);
private final Map<Long, CyNetworkView> networkViewMap;
@@ -62,7 +64,7 @@
*/
public CyNetworkViewManagerImpl(final CyEventHelper cyEventHelper) {
networkViewMap = new HashMap<Long, CyNetworkView>();
- this.cyEventHelper = cyEventHelper;
+ this.cyEventHelper = DIUtil.stripProxy(cyEventHelper);
}
@Override
--
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.