|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.filebuffers.FileBuffers
public final class FileBuffers
Facade for the file buffers plug-in. Provides access to the text file buffer manager and helper methods for location handling. This facade is available independent from the activation status of the file buffers plug-in.
This class must not be used by clients that do not want to require
org.eclipse.core.resources. Use ITextFileBufferManager.DEFAULT
to get the default text file buffer manager.
| Field Summary | |
|---|---|
static java.lang.String |
PLUGIN_ID
File buffer plug-in ID (value "org.eclipse.core.filebuffers"). |
| Method Summary | |
|---|---|
static ITextFileBufferManager |
createTextFileBufferManager()
Creates and returns an unshared text file buffer manager. |
static IFileStore |
getFileStoreAtLocation(IPath location)
Returns the file in the local file system for the given location. |
static java.io.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 IFile |
getWorkspaceFileAtLocation(IPath location,
boolean isNormalized)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PLUGIN_ID
"org.eclipse.core.filebuffers").
| Method Detail |
|---|
public static ITextFileBufferManager getTextFileBufferManager()
null if
the file buffers plug-in is not active. This is, for example, the
case when the method is called on plug-in shutdown.
Use ITextFileBufferManager.DEFAULT to get the default text
file buffer manager if you do not want to depend on
org.eclipse.core.resources.
nullpublic static ITextFileBufferManager createTextFileBufferManager()
nullpublic static IFile getWorkspaceFileAtLocation(IPath location)
null if
the location is not a valid location in the workspace.
location - the location
null
public static IFile getWorkspaceFileAtLocation(IPath location,
boolean isNormalized)
null if
the location is not a valid location in the workspace.
location - the locationisNormalized - true if the given location is already normalized
nullpublic 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 normalized
pathOrLocationpublic 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 location
IFileStore in the local file system for the given locationpublic static java.io.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 location
File in the local file system for the given location
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.