The method FileSystemView.getFileSystemView() has been marked as not
implemented although there is already an implementation. I removed that.
There's still a fixme in it that there should be implementations for
non-Unix filesystems, but that doesn't justify that this method is marke
as not implemented.
2006-10-16 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/filechooser/FileSystemView.java
(getFileSystemView): Mark as implemented.
/Roman
Index: javax/swing/filechooser/FileSystemView.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/filechooser/FileSystemView.java,v
retrieving revision 1.12
diff -u -1 -5 -r1.12 FileSystemView.java
--- javax/swing/filechooser/FileSystemView.java 17 Aug 2006 16:08:52 -0000 1.12
+++ javax/swing/filechooser/FileSystemView.java 16 Oct 2006 11:26:23 -0000
@@ -25,32 +25,30 @@
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.swing.filechooser;
-import gnu.classpath.NotImplementedException;
-
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.swing.Icon;
import javax.swing.JFileChooser;
/**
* The base class providing a view of the file system for use by the
* [EMAIL PROTECTED] JFileChooser} component.
*/
public abstract class FileSystemView
{
/** The instance returned by [EMAIL PROTECTED] #getFileSystemView()}. */
@@ -159,31 +157,30 @@
return files;
ArrayList trim = new ArrayList();
for (int i = 0; i < files.length; i++)
if (! files[i].isHidden())
trim.add(files[i]);
File[] value = (File[]) trim.toArray(new File[trim.size()]);
return value;
}
/**
* Returns a default [EMAIL PROTECTED] FileSystemView} appropriate for the platform.
*
* @return A default [EMAIL PROTECTED] FileSystemView} appropriate for the platform.
*/
public static FileSystemView getFileSystemView()
- throws NotImplementedException
{
if (defaultFileSystemView == null)
{
// FIXME: We need to support other file systems too.
defaultFileSystemView = new UnixFileSystemView();
}
return defaultFileSystemView;
}
/**
* Returns the home directory for the current user.
*
* @return The home directory for the current user.
*/
public File getHomeDirectory()