pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r712368 - in /incubator/pdfbox/trunk: Resources/ src/main/java/org/apache/pdfbox/PDFDebugger.java src/main/java/org/apache/pdfbox/util/ExtensionFileFilter.java
Date Sat, 08 Nov 2008 09:05:04 GMT
Author: jeremias
Date: Sat Nov  8 01:05:03 2008
New Revision: 712368

URL: http://svn.apache.org/viewvc?rev=712368&view=rev
Log:
Small improvements to PDFDebugger:
- Use system L&F
- Fixed file chooser so you can comfortably navigate the directory tree.

Added:
    incubator/pdfbox/trunk/Resources/
Modified:
    incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/PDFDebugger.java
    incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/util/ExtensionFileFilter.java

Modified: incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/PDFDebugger.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/PDFDebugger.java?rev=712368&r1=712367&r2=712368&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/PDFDebugger.java (original)
+++ incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/PDFDebugger.java Sat Nov  8 01:05:03
2008
@@ -41,6 +41,7 @@
 import javax.swing.JFileChooser;
 import javax.swing.JScrollPane;
 import javax.swing.JPanel;
+import javax.swing.UIManager;
 
 import java.io.ByteArrayOutputStream;
 import java.io.File;
@@ -347,6 +348,7 @@
      */
     public static void main(String[] args) throws Exception
     {
+        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
         PDFDebugger viewer = new PDFDebugger();
         if( args.length >0 )
         {

Modified: incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/util/ExtensionFileFilter.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/util/ExtensionFileFilter.java?rev=712368&r1=712367&r2=712368&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/util/ExtensionFileFilter.java (original)
+++ incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/util/ExtensionFileFilter.java Sat
Nov  8 01:05:03 2008
@@ -17,6 +17,7 @@
 package org.apache.pdfbox.util;
 
 import java.io.File;
+
 import javax.swing.filechooser.FileFilter;
 
 
@@ -48,6 +49,10 @@
      */
     public boolean accept(File pathname)
     {
+        if (pathname.isDirectory())
+        {
+            return true;
+        }
         boolean acceptable = false;
         String name = pathname.getName().toUpperCase();
         for( int i=0; !acceptable && i<extensions.length; i++ )



Mime
View raw message