logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r824593 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/FileLoadAction.java
Date Tue, 13 Oct 2009 05:35:53 GMT
Author: sdeboy
Date: Tue Oct 13 05:35:53 2009
New Revision: 824593

URL: http://svn.apache.org/viewvc?rev=824593&view=rev
Log:
Fix 35180: Multiple lines "XML files (*.xml)" in drop down list "Files of type"

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/FileLoadAction.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/FileLoadAction.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/FileLoadAction.java?rev=824593&r1=824592&r2=824593&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/FileLoadAction.java (original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/FileLoadAction.java Tue
Oct 13 05:35:53 2009
@@ -84,22 +84,22 @@
         if (!remoteURL) {
             if (chooser == null) {
                 chooser = new JFileChooser();
-            }
 
-            chooser.setDialogTitle("Load Events from XML file...");
+                chooser.setDialogTitle("Load Events from XML file...");
 
-            chooser.setAcceptAllFileFilterUsed(true);
+                chooser.setAcceptAllFileFilterUsed(true);
 
-            chooser.setFileFilter(new FileFilter() {
-                public boolean accept(File f) {
-                    return (f.getName().toLowerCase().endsWith(".xml") || f
-                            .isDirectory());
-                }
+                chooser.setFileFilter(new FileFilter() {
+                    public boolean accept(File f) {
+                        return (f.getName().toLowerCase().endsWith(".xml") || f
+                                .isDirectory());
+                    }
 
-                public String getDescription() {
-                    return "XML files (*.xml)";
-                }
-            });
+                    public String getDescription() {
+                        return "XML files (*.xml)";
+                    }
+                });
+            }
 
             int i = chooser.showOpenDialog(parent);
             if (i != JFileChooser.APPROVE_OPTION) {



Mime
View raw message