public class TGDummyParent extends FileStore
TGFileStore
s. An instance of this
is returned by all TGFileStores when their TGFileStore.getParent()
method is called, since Eclipse does not expect a null
result.
This works around
EMPTY_FILE_INFO_ARRAY, EMPTY_STRING_ARRAY
Modifier and Type | Method and Description |
---|---|
String[] |
childNames(int options,
IProgressMonitor monitor) |
IFileInfo |
fetchInfo(int options,
IProgressMonitor monitor) |
IFileStore |
getChild(String name) |
String |
getName() |
IFileStore |
getParent() |
IFileStore |
mkdir(int options,
IProgressMonitor monitor)
mkdir() calls cause all that fuzz.
|
InputStream |
openInputStream(int options,
IProgressMonitor monitor) |
URI |
toURI()
Returns a dummy URI.
|
childInfos, childStores, copy, copyDirectory, copyFile, delete, equals, fetchInfo, getChild, getFileStore, getFileSystem, hashCode, isParentOf, move, openOutputStream, putInfo, toLocalFile, toString
getAdapter
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAdapter
public String[] childNames(int options, IProgressMonitor monitor) throws CoreException
childNames
in interface IFileStore
childNames
in class FileStore
CoreException
public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException
fetchInfo
in interface IFileStore
fetchInfo
in class FileStore
CoreException
public IFileStore getChild(String name)
getChild
in interface IFileStore
getChild
in class FileStore
public String getName()
getName
in interface IFileStore
getName
in class FileStore
public IFileStore getParent()
getParent
in interface IFileStore
getParent
in class FileStore
public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException
openInputStream
in interface IFileStore
openInputStream
in class FileStore
CoreException
public URI toURI()
toURI
in interface IFileStore
toURI
in class FileStore
FileStore.toURI()
public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException
mkdir
in interface IFileStore
mkdir
in class FileStore
CoreException
FileStore.mkdir(int,
org.eclipse.core.runtime.IProgressMonitor)