public interface FileActionPerformer
Modifier and Type | Method and Description |
---|---|
boolean |
enable(FileObject file)
Called when the context of the action changes and the action should
be enabled or disabled within the new context, according to the newly
selected file.
|
void |
perform(FileObject file)
Called when the user invokes the action.
|
boolean enable(FileObject file)
file
- the currently selected file, or null if no file is selectedvoid perform(@NonNull FileObject file)
file
- the file this action was invoked for