< prev index next >

src/java.desktop/share/classes/javax/swing/filechooser/FileSystemView.java

Print this page

        

*** 71,80 **** --- 71,84 ---- static FileSystemView genericFileSystemView = null; private boolean useSystemExtensionHiding = UIManager.getDefaults().getBoolean("FileChooser.useSystemExtensionHiding"); + /** + * Returns the file system view. + * @return the file system view + */ public static FileSystemView getFileSystemView() { if(File.separatorChar == '\\') { if(windowsFileSystemView == null) { windowsFileSystemView = new WindowsFileSystemView(); }
*** 99,108 **** --- 103,115 ---- genericFileSystemView = new GenericFileSystemView(); } return genericFileSystemView; } + /** + * Constructs a FileSystemView. + */ public FileSystemView() { final WeakReference<FileSystemView> weakReference = new WeakReference<FileSystemView>(this); UIManager.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) {
*** 422,431 **** --- 429,442 ---- // Providing default implementations for the remaining methods // because most OS file systems will likely be able to use this // code. If a given OS can't, override these methods in its // implementation. + /** + * Returns the home directory. + * @return the home directory + */ public File getHomeDirectory() { return createFileObject(System.getProperty("user.home")); } /**
< prev index next >