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()
IFileTree
getTreeRoot
in interface IFileTree
public abstract IFileInfo[] getChildInfos(IFileStore store)
IFileTree
IFileInfo
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 IFileTree
store
- 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 IFileTree
store
- the store to return the file info forIFileStore.fetchInfo(int, org.eclipse.core.runtime.IProgressMonitor)
public abstract IFileStore[] getChildStores(IFileStore store)
IFileTree
IFileStore
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 IFileTree
store
- a file store in this treeIFileStore.childStores(int, org.eclipse.core.runtime.IProgressMonitor)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.