|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.wizards.datatransfer.SelectFilesOperation | +--org.eclipse.ui.wizards.datatransfer.PopulateRootOperation
The PopulateFilesOperation is an operation used to populate a FileSystemElement one level deep rather than the whole way.
Constructor Summary | |
PopulateRootOperation(Object rootObject,
IImportStructureProvider structureProvider)
Create a new PopulateFilesOperation . |
Method Summary | |
protected FileSystemElement |
createElement(FileSystemElement parent,
Object fileSystemObject)
Creates and returns a FileSystemElement if the specified
file system object merits one. |
protected FileSystemElement |
createElement(FileSystemElement parent,
Object fileSystemObject,
int depth)
Creates and returns a FileSystemElement if the specified
file system object merits one. |
Methods inherited from class org.eclipse.ui.wizards.datatransfer.SelectFilesOperation |
getExtensionFor, getResult, hasDesiredExtension, run, setDesiredExtensions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PopulateRootOperation(Object rootObject, IImportStructureProvider structureProvider)
PopulateFilesOperation
.
rootObject
- the object to be populatedstructureProvider
- the object that defines how we are to populate it.Method Detail |
protected FileSystemElement createElement(FileSystemElement parent, Object fileSystemObject) throws InterruptedException
FileSystemElement
if the specified
file system object merits one. The criteria for this are:
- if the file system object is a container then it must have either a
child container or an associated file
- if the file system object is a file then it must have an extension
suitable for selection
createElement
in class SelectFilesOperation
InterruptedException
protected FileSystemElement createElement(FileSystemElement parent, Object fileSystemObject, int depth) throws InterruptedException
FileSystemElement
if the specified
file system object merits one. The criteria for this are:
- if the file system object is a container then it must have either a
child container or an associated file
- if the file system object is a file then it must have an extension
suitable for selection
recurse down for depth to populate children
InterruptedException
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |