|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.sp.jedit.io.VFSManager
jEdit's virtual filesystem allows it to transparently edit files stored elsewhere than the local filesystem, for example on an FTP site.
Method Summary | |
static void |
error(java.awt.Component comp,
java.lang.String error,
java.lang.Object[] args)
Deprecated. Call the other error() method instead. |
static void |
error(java.awt.Component comp,
java.lang.String path,
java.lang.String messageProp,
java.lang.Object[] args)
Reports an I/O error. |
static boolean |
errorOccurred()
Returns if the last request caused an error. |
static java.util.Enumeration |
getFilesystems()
Returns an enumeration of all registered filesystems. |
static VFS |
getFileVFS()
Returns the local filesystem VFS. |
static WorkThreadPool |
getIOThreadPool()
Returns the I/O thread pool. |
static int |
getRequestCount()
Returns the number of pending I/O requests. |
static VFS |
getUrlVFS()
Returns the URL VFS. |
static VFS |
getVFSByName(java.lang.String name)
Returns the VFS for the specified name. |
static VFS |
getVFSForPath(java.lang.String path)
Returns the VFS for the specified path. |
static VFS |
getVFSForProtocol(java.lang.String protocol)
Returns the VFS for the specified protocol. |
static void |
init()
Do not call. |
static void |
registerVFS(java.lang.String protocol,
VFS vfs)
Registers a virtual filesystem. |
static void |
runInAWTThread(java.lang.Runnable run)
Executes the specified runnable in the AWT thread once all pending I/O requests are complete. |
static void |
runInWorkThread(java.lang.Runnable run)
Executes the specified runnable in one of the I/O threads. |
static void |
sendVFSUpdate(VFS vfs,
java.lang.String path,
boolean parent)
Sends a VFS update message. |
static void |
start()
Do not call. |
static void |
waitForRequests()
Returns when all pending requests are complete. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void init()
public static void start()
public static VFS getFileVFS()
public static VFS getUrlVFS()
public static VFS getVFSByName(java.lang.String name)
name
- The VFS namepublic static VFS getVFSForProtocol(java.lang.String protocol)
protocol
- The protocolpublic static VFS getVFSForPath(java.lang.String path)
path
- The pathpublic static void registerVFS(java.lang.String protocol, VFS vfs)
protocol
- The protocolvfs
- The VFSpublic static java.util.Enumeration getFilesystems()
public static WorkThreadPool getIOThreadPool()
public static void waitForRequests()
public static boolean errorOccurred()
public static int getRequestCount()
public static void runInAWTThread(java.lang.Runnable run)
public static void runInWorkThread(java.lang.Runnable run)
public static void error(java.awt.Component comp, java.lang.String error, java.lang.Object[] args)
error()
method instead.
public static void error(java.awt.Component comp, java.lang.String path, java.lang.String messageProp, java.lang.Object[] args)
comp
- The componentpath
- The path name that caused the errorargs
- Positional parameterspublic static void sendVFSUpdate(VFS vfs, java.lang.String path, boolean parent)
vfs
- The VFSpath
- The path that changedparent
- True if an update should be sent for the path's
parent too
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |