|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.filesystem.provider.FileTree
The abstract superclass of all IFileTree
implementations.
Clients may subclass this class to provide a file tree for their particular file system.
Field Summary | |
---|---|
protected IFileStore |
treeRoot
The root of the file tree |
Constructor Summary | |
---|---|
FileTree(IFileStore treeRoot)
Creates a new file tree with tree root as the root |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IFileStore treeRoot
Constructor Detail |
public FileTree(IFileStore treeRoot)
treeRoot
- the file store that is to act as the root of their FileTreeMethod Detail |
public 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 tree
IFileStore.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 for
IFileStore.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 tree
IFileStore.childStores(int, org.eclipse.core.runtime.IProgressMonitor)
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.