Author: ruschein
Date: 2011-06-24 15:15:32 -0700 (Fri, 24 Jun 2011)
New Revision: 25928

Modified:
   
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
Log:
Added, possibly temporary, hack to not break things for now.

Modified: 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
===================================================================
--- 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
        2011-06-24 21:42:56 UTC (rev 25927)
+++ 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
        2011-06-24 22:15:32 UTC (rev 25928)
@@ -158,7 +158,13 @@
 
                        fileChooser.addChoosableFileFilter(filter);
                }
-               fileChooser.setFileFilter(defaultFilter);
+
+               if (defaultFilter != null)
+                       fileChooser.setFileFilter(defaultFilter); // Note: This 
will not work, if
+                                                                 // followed 
by a call to
+                                                                 // 
setAcceptAllFileFilterUsed(false)!
+               else
+                       fileChooser.setAcceptAllFileFilterUsed(true);
        }
 
        private String getFileCategory() {

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