public final class FileBuffers extends Object
| Modifier and Type | Method and Description |
|---|---|
static IFileStore |
getFileStoreAtLocation(IPath location)
Returns the file in the local file system for the given location.
|
static File |
getSystemFileAtLocation(IPath location)
Deprecated.
As of 3.2, replaced by
getFileStoreAtLocation(IPath) |
static ITextFileBufferManager |
getTextFileBufferManager()
Returns the text file buffer manager.
|
static IFile |
getWorkspaceFileAtLocation(IPath location)
Returns the workspace file at the given location or
null if
the location is not a valid location in the workspace. |
static IPath |
normalizeLocation(IPath pathOrLocation)
Returns the normalized form of the given path or location.
|
public static ITextFileBufferManager getTextFileBufferManager()
null if
the file buffers plug-in may no be activated. This is, for example, the
case when the method is called on plug-in shutdown.nullpublic static IFile getWorkspaceFileAtLocation(IPath location)
null if
the location is not a valid location in the workspace.location - the locationnullpublic static IPath normalizeLocation(IPath pathOrLocation)
The normalized form is defined as follows:
exists
a workspace file, the normalized form is that file's workspace
relative, absolute path as returned by
IFile.getFullPath().absolute form of the path.absolute form of the location.pathOrLocation - the path or location to be normalizedpathOrLocationpublic static IFileStore getFileStoreAtLocation(IPath location)
The location is either a full path of a workspace resource or an absolute path in the local file system.
location - the locationIFileStore in the local file system for the given locationpublic static File getSystemFileAtLocation(IPath location)
getFileStoreAtLocation(IPath)The location is either a full path of a workspace resource or an absolute path in the local file system.
location - the locationFile in the local file system for the given locationGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.