Author: kono
Date: 2011-10-20 17:31:04 -0700 (Thu, 20 Oct 2011)
New Revision: 27259

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkViewManager.java
Log:
Unnecessary warning removed.  View will be created always when user wants.

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkViewManager.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkViewManager.java
   2011-10-21 00:10:30 UTC (rev 27258)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkViewManager.java
   2011-10-21 00:31:04 UTC (rev 27259)
@@ -287,23 +287,23 @@
                CyNetworkView networkView = nvae.getNetworkView();
                final CyNetwork model = networkView.getModel();
                final int graphObjectCount = model.getNodeCount() + 
model.getEdgeCount();
+               
+//             // Render only when graph size is smaller than threshold.
+//             if (graphObjectCount > viewThreshold) {
+//                     int createFlag = JOptionPane
+//                                     .showConfirmDialog(
+//                                                     null,
+//                                                     "Network contains "
+//                                                                     + 
graphObjectCount
+//                                                                     + " 
objects.\nDo you still want to create visualization?\nThis is not recommended 
for machines with small amount of memory.",
+//                                                     "Large Network Data 
Loaded", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
+//                     if (createFlag == JOptionPane.NO_OPTION) {
+//                             
networkViewManager.destroyNetworkView(networkView);
+//                             networkView = null;
+//                             return;
+//                     }
+//             }
 
-               // Render only when graph size is smaller than threshold.
-               if (graphObjectCount > viewThreshold) {
-                       int createFlag = JOptionPane
-                                       .showConfirmDialog(
-                                                       null,
-                                                       "Network contains "
-                                                                       + 
graphObjectCount
-                                                                       + " 
objects.\nDo you still want to create visualization?\nThis is not recommended 
for machines with small amount of memory.",
-                                                       "Large Network Data 
Loaded", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
-                       if (createFlag == JOptionPane.NO_OPTION) {
-                               
networkViewManager.destroyNetworkView(networkView);
-                               networkView = null;
-                               return;
-                       }
-               }
-
                render(nvae.getNetworkView());
        }
 

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