| Modifier and Type | Field and Description |
|---|---|
protected IFileStore |
treeRoot
The root of the file tree
|
| Constructor and Description |
|---|
FileTree(IFileStore treeRoot)
Creates a new file tree with tree root as the root
|
| Modifier and Type | Method and Description |
|---|---|
abstract IFileInfo[] |
getChildInfos(IFileStore store)
Returns an
IFileInfo instance for each file and directory contained
within the given store at the time this file tree was created. |
abstract IFileStore[] |
getChildStores(IFileStore store)
Returns an
IFileStore instance for each file and directory contained
within the given store at the time this file tree was created. |
abstract IFileInfo |
getFileInfo(IFileStore store)
Returns information about this file at the time this file tree was created.
|
IFileStore |
getTreeRoot()
Returns the root of this tree
|
protected IFileStore treeRoot
public FileTree(IFileStore treeRoot)
treeRoot - the file store that is to act as the root of their FileTreepublic IFileStore getTreeRoot()
IFileTreegetTreeRoot in interface IFileTreepublic abstract IFileInfo[] getChildInfos(IFileStore store)
IFileTreeIFileInfo instance for each file and directory contained
within the given store at the time this file tree was created.
An empty array is returned if the given store has no children, or is not in this file tree.
getChildInfos in interface IFileTreestore - a file store in this treeIFileStore.childInfos(int, org.eclipse.core.runtime.IProgressMonitor)public abstract IFileInfo getFileInfo(IFileStore store)
IFileTree
This method succeeds regardless of whether a corresponding
file exists in the file tree. In the case of a non-existent
file, the returned info will include the file's name and will return false
when IFileInfo.exists() is called, but all other information will assume default
values.
getFileInfo in interface IFileTreestore - the store to return the file info forIFileStore.fetchInfo(int, org.eclipse.core.runtime.IProgressMonitor)public abstract IFileStore[] getChildStores(IFileStore store)
IFileTreeIFileStore instance for each file and directory contained
within the given store at the time this file tree was created.
An empty array is returned if the given store has no children, or is not in this file tree.
getChildStores in interface IFileTreestore - a file store in this treeIFileStore.childStores(int, org.eclipse.core.runtime.IProgressMonitor)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.