public interface FileProvider
SourceGroup
.Modifier and Type | Interface and Description |
---|---|
static class |
FileProvider.Context
Represents search context.
|
static class |
FileProvider.Result
Represents a collection of files that match
the given search criteria.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the current operation, if possible.
|
boolean |
computeFiles(FileProvider.Context context,
FileProvider.Result result)
Compute a list of files that match the given search text for the given
search type.
|
boolean computeFiles(FileProvider.Context context, FileProvider.Result result)
FileProvider.cancel()
on the file provider during the operation, in which
case the method can return incomplete results.
Note that a useful performance optimization is for the FileProvider to cache
a few of its most recent search results, and if the next search (e.g. more user
keystrokes) is a simple narrowing of the search, just filter the previous search
result. The same FileProvider
instance is used during the GoTo File session and
it's freed when the GoTo File dialog is closed.
context
- search context containg search text, type, project and SourceGroup
rootresult
- filled with files and optional messagevoid cancel()