Author: ruschein
Date: 2010-10-21 14:12:24 -0700 (Thu, 21 Oct 2010)
New Revision: 22335

Modified:
   
cytoscape/trunk/coreplugins/browser/src/main/java/browser/ui/AttributeBrowserToolBar.java
Log:
Automatically display new attributes in the attribute browser unless there are 
10 or more.

Modified: 
cytoscape/trunk/coreplugins/browser/src/main/java/browser/ui/AttributeBrowserToolBar.java
===================================================================
--- 
cytoscape/trunk/coreplugins/browser/src/main/java/browser/ui/AttributeBrowserToolBar.java
   2010-10-21 20:38:54 UTC (rev 22334)
+++ 
cytoscape/trunk/coreplugins/browser/src/main/java/browser/ui/AttributeBrowserToolBar.java
   2010-10-21 21:12:24 UTC (rev 22335)
@@ -167,7 +167,7 @@
                // This will handle the case for the change of attribute 
userVisibility
                if (e.getPropertyName() == Cytoscape.NEW_ATTRS_LOADED && 
e.getOldValue() == attributes) {
                        final Set<String> newAttrNames = 
(Set<String>)e.getNewValue();
-                       if (JOptionPane.showConfirmDialog(
+                       if (newAttrNames.size() < 10 || 
JOptionPane.showConfirmDialog(
                                getActiveFrame(),
                                "Display " + newAttrNames.size() + " newly 
loaded attribute(s) in the attribute browser?",
                                "Confirmation", JOptionPane.YES_NO_OPTION)

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