Author: ruschein
Date: 2010-10-21 15:36:13 -0700 (Thu, 21 Oct 2010)
New Revision: 22339
Modified:
cytoscape/trunk/coreplugins/browser/src/main/java/browser/ui/AttributeBrowserToolBar.java
Log:
Removed dialog pop-up. We will now automatically render up to 10 newly loaded
attributes.
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 21:49:06 UTC (rev 22338)
+++
cytoscape/trunk/coreplugins/browser/src/main/java/browser/ui/AttributeBrowserToolBar.java
2010-10-21 22:36:13 UTC (rev 22339)
@@ -167,16 +167,14 @@
// 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 (newAttrNames.size() < 10 ||
JOptionPane.showConfirmDialog(
- getActiveFrame(),
- "Display " + newAttrNames.size() + " newly
loaded attribute(s) in the attribute browser?",
- "Confirmation", JOptionPane.YES_NO_OPTION)
- == JOptionPane.YES_OPTION)
- {
- for (final String newAttrName : newAttrNames)
- orderedCol.add(newAttrName);
- tableModel.setTableData(null, orderedCol);
+ final int MAX_DISPLAY_COUNT = 10;
+ int displayCount = 0;
+ for (final String newAttrName : newAttrNames) {
+ orderedCol.add(newAttrName);
+ if (++displayCount > MAX_DISPLAY_COUNT)
+ break;
}
+ tableModel.setTableData(null, orderedCol);
}
}
--
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.