public static final class FileProvider.Result extends Object
Modifier and Type | Method and Description |
---|---|
void |
addFile(FileObject file)
Adds a file into the result
When the file is under processed
SourceGroup relative path
is displayed in the dialog. |
void |
addFileDescriptor(FileDescriptor desc)
Adds a
FileDescriptor into the result |
void |
pendingResult()
Notify caller that a provider should be called again because
of incomplete or inaccurate results.
|
void |
setMessage(String msg)
Optional message.
|
public void setMessage(String msg)
msg
- messagepublic void addFile(FileObject file)
SourceGroup
relative path
is displayed in the dialog. If the file is not under
SourceGroup
absolute path is used. Never add a file owned by
other SourceGroup
.file
- The file to be added into resultpublic void addFileDescriptor(FileDescriptor desc)
FileDescriptor
into the resultdesc
- The FileDescriptor
to be added into resultpublic void pendingResult()