Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit.io
Class FileRootsVFS  view FileRootsVFS download FileRootsVFS.java

java.lang.Object
  extended byorg.gjt.sp.jedit.io.VFS
      extended byorg.gjt.sp.jedit.io.FileRootsVFS

public class FileRootsVFS
extends VFS

A VFS that lists local root filesystems.

Version:
$Id: FileRootsVFS.java,v 1.16 2003/11/18 20:51:58 spestov Exp $

Nested Class Summary
(package private) static class FileRootsVFS.RootsEntry
           
 
Nested classes inherited from class org.gjt.sp.jedit.io.VFS
VFS.ColorEntry, VFS.DirectoryEntry, VFS.DirectoryEntryCompare
 
Field Summary
private static javax.swing.filechooser.FileSystemView fsView
           
private static java.lang.reflect.Method getRoots
           
private static java.lang.reflect.Method getSystemDisplayName
           
private static java.lang.reflect.Method isDrive
           
private static java.lang.reflect.Method isFileSystemRoot
           
private static java.lang.reflect.Method isFloppyDrive
           
static java.lang.String PROTOCOL
           
 
Fields inherited from class org.gjt.sp.jedit.io.VFS
BROWSE_CAP, CASE_INSENSITIVE_CAP, DELETE_CAP, EA_MODIFIED, EA_SIZE, EA_STATUS, EA_TYPE, LOW_LATENCY_CAP, MKDIR_CAP, READ_CAP, RENAME_CAP, WRITE_CAP
 
Constructor Summary
FileRootsVFS()
           
 
Method Summary
 VFS.DirectoryEntry _getDirectoryEntry(java.lang.Object session, java.lang.String path, java.awt.Component comp)
          Returns the specified directory entry.
 VFS.DirectoryEntry[] _listDirectory(java.lang.Object session, java.lang.String url, java.awt.Component comp)
          Lists the specified directory.
 java.lang.String getParentOfPath(java.lang.String path)
          Returns the parent of the specified path.
private static java.io.File[] listRoots()
           
 
Methods inherited from class org.gjt.sp.jedit.io.VFS
_backup, _canonPath, _createInputStream, _createOutputStream, _delete, _endVFSSession, _listDirectory, _mkdir, _rename, _saveComplete, constructPath, createVFSSession, getCapabilities, getDefaultColorFor, getExtendedAttributes, getFileName, getFileSeparator, getName, getTwoStageSaveName, insert, load, reloadDirectory, save, showBrowseDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final java.lang.String PROTOCOL
See Also:
Constant Field Values

fsView

private static javax.swing.filechooser.FileSystemView fsView

getSystemDisplayName

private static java.lang.reflect.Method getSystemDisplayName

getRoots

private static java.lang.reflect.Method getRoots

isFileSystemRoot

private static java.lang.reflect.Method isFileSystemRoot

isFloppyDrive

private static java.lang.reflect.Method isFloppyDrive

isDrive

private static java.lang.reflect.Method isDrive
Constructor Detail

FileRootsVFS

public FileRootsVFS()
Method Detail

getParentOfPath

public java.lang.String getParentOfPath(java.lang.String path)
Description copied from class: VFS
Returns the parent of the specified path. This must be overridden to return a non-null value for browsing of this filesystem to work.

Overrides:
getParentOfPath in class VFS

_listDirectory

public VFS.DirectoryEntry[] _listDirectory(java.lang.Object session,
                                           java.lang.String url,
                                           java.awt.Component comp)
Description copied from class: VFS
Lists the specified directory.

Overrides:
_listDirectory in class VFS

_getDirectoryEntry

public VFS.DirectoryEntry _getDirectoryEntry(java.lang.Object session,
                                             java.lang.String path,
                                             java.awt.Component comp)
Description copied from class: VFS
Returns the specified directory entry.

Overrides:
_getDirectoryEntry in class VFS

listRoots

private static java.io.File[] listRoots()