| java.lang.Object org.gjt.sp.jedit.io.VFSManager
VFSManager | public class VFSManager (Code) | | jEdit's virtual filesystem allows it to transparently edit files
stored elsewhere than the local filesystem, for example on an FTP
site. See the
VFS class for implementation details.
Note that most of the jEdit API is not thread-safe, so special care
must be taken when making jEdit API calls. Also, it is not safe to
call SwingUtilities.invokeAndWait() from a work request;
it can cause a deadlock if the given runnable then later calls
VFSManager.waitForRequests() .
author: Slava Pestov version: $Id: VFSManager.java 8286 2006-12-30 12:11:59Z kpouer $ |
Inner Class :static class SendVFSUpdatesSafely implements Runnable | |
Field Summary | |
final public static String | SERVICE The service type. |
Method Summary | |
public static void | error(IOException e, String path, Component comp) Handle an I/O error. | public static void | error(Component comp, String error, Object[] args) | public static void | error(Component comp, String path, String messageProp, Object[] args) Reports an I/O error. | public static boolean | errorOccurred() Returns if the last request caused an error. | public static VFS | getFileVFS() Returns the local filesystem VFS. | public static Enumeration<VFS> | getFilesystems() | public static WorkThreadPool | getIOThreadPool() Returns the I/O thread pool. | public static int | getRequestCount() Returns the number of pending I/O requests. | public static VFS | getUrlVFS() Returns the URL VFS. | public static VFS | getVFSByName(String name) | public static VFS | getVFSForPath(String path) Returns the VFS for the specified path. | public static VFS | getVFSForProtocol(String protocol) Returns the VFS for the specified protocol. | public static String[] | getVFSs() Returns a list of all registered filesystems. | public static void | init() Do not call. | public static void | registerVFS(String protocol, VFS vfs) | public static void | runInAWTThread(Runnable run) Executes the specified runnable in the AWT thread once all
pending I/O requests are complete. | public static void | runInWorkThread(Runnable run) Executes the specified runnable in one of the I/O threads. | public static void | sendVFSUpdate(VFS vfs, String path, boolean parent) Sends a VFS update message. | public static void | start() Do not call. | public static void | waitForRequests() Returns when all pending requests are complete. |
error | public static void error(Component comp, String path, String messageProp, Object[] args)(Code) | | Reports an I/O error.
Parameters: comp - The component Parameters: path - The path name that caused the error Parameters: messageProp - The error message property name Parameters: args - Positional parameters since: jEdit 4.0pre3 |
errorOccurred | public static boolean errorOccurred()(Code) | | Returns if the last request caused an error.
|
getFileVFS | public static VFS getFileVFS()(Code) | | Returns the local filesystem VFS.
since: jEdit 2.5pre1 |
getRequestCount | public static int getRequestCount()(Code) | | Returns the number of pending I/O requests.
|
getUrlVFS | public static VFS getUrlVFS()(Code) | | Returns the URL VFS.
since: jEdit 2.5pre1 |
getVFSForPath | public static VFS getVFSForPath(String path)(Code) | | Returns the VFS for the specified path.
Parameters: path - The path since: jEdit 2.6pre4 |
getVFSForProtocol | public static VFS getVFSForProtocol(String protocol)(Code) | | Returns the VFS for the specified protocol.
Parameters: protocol - The protocol since: jEdit 2.5pre1 |
getVFSs | public static String[] getVFSs()(Code) | | Returns a list of all registered filesystems.
since: jEdit 4.2pre1 |
init | public static void init()(Code) | | Do not call.
|
runInAWTThread | public static void runInAWTThread(Runnable run)(Code) | | Executes the specified runnable in the AWT thread once all
pending I/O requests are complete.
since: jEdit 2.5pre1 |
runInWorkThread | public static void runInWorkThread(Runnable run)(Code) | | Executes the specified runnable in one of the I/O threads.
since: jEdit 2.6pre2 |
sendVFSUpdate | public static void sendVFSUpdate(VFS vfs, String path, boolean parent)(Code) | | Sends a VFS update message.
Parameters: vfs - The VFS Parameters: path - The path that changed Parameters: parent - True if an update should be sent for the path'sparent too since: jEdit 2.6pre4 |
start | public static void start()(Code) | | Do not call.
|
waitForRequests | public static void waitForRequests()(Code) | | Returns when all pending requests are complete.
since: jEdit 2.5pre1 |
|
|