Revision: 5968
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=5968&view=rev
Author:   dnaber
Date:     2011-11-25 13:40:03 +0000 (Fri, 25 Nov 2011)
Log Message:
-----------
bugfix: file filter didn't display directories, making navigation impossible

Modified Paths:
--------------
    trunk/JLanguageTool/CHANGES.txt
    trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java

Modified: trunk/JLanguageTool/CHANGES.txt
===================================================================
--- trunk/JLanguageTool/CHANGES.txt     2011-11-25 13:36:14 UTC (rev 5967)
+++ trunk/JLanguageTool/CHANGES.txt     2011-11-25 13:40:03 UTC (rev 5968)
@@ -24,6 +24,8 @@
  -Italian:
    -several new rules (Paolo Bianchini)
 
+ -GUI: small cleanup of the user interface
+ 
  -XML output encoding was wrong in server mode on platforms not using UTF-8
 
  -Internal changes:

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java 2011-11-25 
13:36:14 UTC (rev 5967)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java 2011-11-25 
13:40:03 UTC (rev 5968)
@@ -725,7 +725,8 @@
 
     @Override
     public boolean accept(final File f) {
-      return f.getName().toLowerCase().endsWith(".txt");
+        final boolean isTextFile = f.getName().toLowerCase().endsWith(".txt");
+        return isTextFile || f.isDirectory();
     }
 
     @Override

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to