Author: pwang
Date: 2011-07-12 12:20:55 -0700 (Tue, 12 Jul 2011)
New Revision: 26155

Modified:
   
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
Log:
Use filter "All network files" since we can not detect current filter

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-07-12 19:08:03 UTC (rev 26154)
+++ 
core3/work-swing-impl/trunk/impl/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
        2011-07-12 19:20:55 UTC (rev 26155)
@@ -190,11 +190,13 @@
                public void actionPerformed(ActionEvent ae) {
                                try_again:  {
        
-                               //We can not detect the filter current used, so 
we we use filter "All image files"
+                               //We can not detect the filter current used, so 
we we use filter "All image files" or 
+                               //"All network files" for the cases of image 
export or network export
                                FileChooserFilter filter = null;
                                for (int i=0; i<filters.size(); i++){
                                        filter = 
(FileChooserFilter)filters.get(i);
-                                       if 
(filter.getDescription().trim().equalsIgnoreCase("All image files")){
+                                       if 
(filter.getDescription().trim().equalsIgnoreCase("All image files") ||
+                                                       
filter.getDescription().trim().equalsIgnoreCase("All network files")){
                                                filters = new ArrayList();
                                                filters.add(filter);
                                                break;

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