Author: pwang
Date: 2008-12-11 16:19:09 -0800 (Thu, 11 Dec 2008)
New Revision: 15413

Modified:
   coreplugins/trunk/filters/src/cytoscape/filters/view/FilterMainPanel.java
Log:
fix bug#1939, 

Modified: 
coreplugins/trunk/filters/src/cytoscape/filters/view/FilterMainPanel.java
===================================================================
--- coreplugins/trunk/filters/src/cytoscape/filters/view/FilterMainPanel.java   
2008-12-11 23:53:50 UTC (rev 15412)
+++ coreplugins/trunk/filters/src/cytoscape/filters/view/FilterMainPanel.java   
2008-12-12 00:19:09 UTC (rev 15413)
@@ -130,7 +130,12 @@
                if 
(e.getPropertyName().equalsIgnoreCase(Cytoscape.ATTRIBUTES_CHANGED))
                {       
                        refreshAttributeCMB();
-                       
replaceFilterSettingPanel((CompositeFilter)cmbSelectFilter.getSelectedItem());  
                                
+                       
replaceFilterSettingPanel((CompositeFilter)cmbSelectFilter.getSelectedItem());
+                       
+                       FilterSettingPanel theSettingPanel= 
filter2SettingPanelMap.get((CompositeFilter)cmbSelectFilter.getSelectedItem());
+                       if (theSettingPanel != null) {
+                               theSettingPanel.refreshIndicesForWidgets();
+                       }
                }
                if 
(e.getPropertyName().equalsIgnoreCase(CytoscapeDesktop.NETWORK_VIEW_FOCUSED))
                {       
@@ -185,7 +190,7 @@
                                if 
(!attributes.getUserVisible(attributeNames[i])) {
                                        continue;
                                }
-                               if ((type == CyAttributes.TYPE_INTEGER)||(type 
== CyAttributes.TYPE_FLOATING)||(type == CyAttributes.TYPE_STRING)||(type == 
CyAttributes.TYPE_SIMPLE_LIST)) {
+                               if ((type == CyAttributes.TYPE_INTEGER)||(type 
== CyAttributes.TYPE_FLOATING)||(type == CyAttributes.TYPE_BOOLEAN)||(type == 
CyAttributes.TYPE_STRING)||(type == CyAttributes.TYPE_SIMPLE_LIST)) {
                                        
attributeList.add(pType+"."+attributeNames[i]);
                                }
                        } //for loop


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to