public class PopulateRootOperation extends SelectFilesOperation
Constructor and Description |
---|
PopulateRootOperation(Object rootObject,
IImportStructureProvider structureProvider)
Create a new
PopulateFilesOperation . |
Modifier and Type | Method and Description |
---|---|
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. |
getExtensionFor, getResult, hasDesiredExtension, run, setDesiredExtensions
public PopulateRootOperation(Object rootObject, IImportStructureProvider structureProvider)
PopulateFilesOperation
.rootObject
- the object to be populatedstructureProvider
- the object that defines how we are to populate it.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 selectioncreateElement
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 childrenInterruptedException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.