You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ho...@apache.org on 2004/11/29 02:33:27 UTC

cvs commit: logging-log4j/src/java/org/apache/log4j/chainsaw/vfs DirectoryListTableModel.java VFSPlugin.java

hoju        2004/11/28 17:33:27

  Modified:    src/java/org/apache/log4j/chainsaw/vfs
                        DirectoryListTableModel.java VFSPlugin.java
  Log:
  Fix compile errors even though the vfs package isn't currently used.  It makes it easier to deal with when working in an IDE like Eclipse which reports all compile errors constantly.
  
  Jake
  
  Revision  Changes    Path
  1.6       +2 -0      logging-log4j/src/java/org/apache/log4j/chainsaw/vfs/DirectoryListTableModel.java
  
  Index: DirectoryListTableModel.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/vfs/DirectoryListTableModel.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DirectoryListTableModel.java	21 Nov 2004 07:01:26 -0000	1.5
  +++ DirectoryListTableModel.java	29 Nov 2004 01:33:27 -0000	1.6
  @@ -10,6 +10,8 @@
   
   import javax.swing.table.AbstractTableModel;
   
  +import org.apache.commons.vfs.FileObject;
  +import org.apache.commons.vfs.FileSystemException;
   import org.apache.log4j.LogManager;
   import org.apache.log4j.Logger;
   import org.apache.log4j.chainsaw.SortTableModel;
  
  
  
  1.10      +5 -2      logging-log4j/src/java/org/apache/log4j/chainsaw/vfs/VFSPlugin.java
  
  Index: VFSPlugin.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/vfs/VFSPlugin.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- VFSPlugin.java	21 Nov 2004 07:01:26 -0000	1.9
  +++ VFSPlugin.java	29 Nov 2004 01:33:27 -0000	1.10
  @@ -27,6 +27,10 @@
   import javax.swing.tree.DefaultTreeModel;
   import javax.swing.tree.TreePath;
   
  +import org.apache.commons.vfs.FileObject;
  +import org.apache.commons.vfs.FileSystemException;
  +import org.apache.commons.vfs.VFS;
  +import org.apache.commons.vfs.impl.StandardFileSystemManager;
   import org.apache.log4j.LogManager;
   import org.apache.log4j.Logger;
   import org.apache.log4j.chainsaw.PopupListener;
  @@ -156,8 +160,7 @@
        * Works out which of the supported File Systems are available.
        */
       private void determineSupportedFileSystems() {
  -        SystemInfo info = fileSystemManager.getSystemInfo();
  -        String[] schemes = info.getSchemes();
  +        String[] schemes = fileSystemManager.getSchemes();
           supportedSchemes.addAll(Arrays.asList(schemes));
   
           logger.info("Supported schemes: " + supportedSchemes);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org