Author: scooter
Date: 2010-09-07 09:31:26 -0700 (Tue, 07 Sep 2010)
New Revision: 21720
Modified:
csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java
Log:
Fix bug in argument handling -- need to make sure we don't fire
execution until after Cytoscape has finished initializing
Modified:
csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java
===================================================================
--- csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java
2010-09-07 16:24:45 UTC (rev 21719)
+++ csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java
2010-09-07 16:31:26 UTC (rev 21720)
@@ -129,7 +129,7 @@
public void propertyChange(PropertyChangeEvent evt) {
- if (initialized) return;
+ if (initialized ||
!evt.getPropertyName().equals(Cytoscape.CYTOSCAPE_INITIALIZED)) return;
initialized = true;
@@ -168,9 +168,9 @@
}
}
if (initialized) {
+ initialized = false;
Cytoscape.getPropertyChangeSupport()
.addPropertyChangeListener(Cytoscape.CYTOSCAPE_INITIALIZED, this);
- initialized = false;
}
}
}
--
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.