| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final DialogService | |
| private final FilePreferences | |
| private final List | |
| private static final Logger | |
| private boolean | |
| private final @Nullable LinkedFilesEditorViewModel |
| Access | Constructor and Description |
|---|---|
| public | DeleteFileAction(DialogService dialogService, FilePreferences filePreferences, BibDatabaseContext databaseContext, @Nullable LinkedFilesEditorViewModel viewModel, List<LinkedFileViewModel> filesToDelete)
|
| public | DeleteFileAction(DialogService dialogService, FilePreferences filePreferences, BibDatabaseContext databaseContext, List<LinkedFileViewModel> filesToDelete)
Called when the user wants to delete a complete entry. |
| Modifier and Type | Method and Description |
|---|---|
| private DialogPane | |
| private void | deleteFileHelper(BibDatabaseContext databaseContext, LinkedFile
The LinkedFile (file which linked to an entry) to be deleted from disk linkedFile)Helper method to delete the specified file from disk |
| private void | deleteFiles(boolean
if true, the files are deleted from disk, otherwise they are only removed from the entry deleteFromDisk)Deletes the files from the entry and optionally from disk. |
| private boolean | |
| public void | |
| public boolean |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| filesToDelete | back to summary |
|---|---|
| private final List<LinkedFileViewModel> filesToDelete | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| success | back to summary |
|---|---|
| private boolean success | |
| viewModel | back to summary |
|---|---|
| private final @Nullable LinkedFilesEditorViewModel viewModel | |
| DeleteFileAction | back to summary |
|---|---|
| public DeleteFileAction(DialogService dialogService, FilePreferences filePreferences, BibDatabaseContext databaseContext, @Nullable LinkedFilesEditorViewModel viewModel, List<LinkedFileViewModel> filesToDelete) | |
| DeleteFileAction | back to summary |
|---|---|
| public DeleteFileAction(DialogService dialogService, FilePreferences filePreferences, BibDatabaseContext databaseContext, List<LinkedFileViewModel> filesToDelete) Called when the user wants to delete a complete entry. | |
| createDeleteFilesDialog | back to summary |
|---|---|
| private DialogPane createDeleteFilesDialog(String description) | |
| deleteFileHelper | back to summary |
|---|---|
| private void deleteFileHelper(BibDatabaseContext databaseContext, LinkedFile linkedFile) Helper method to delete the specified file from disk
| |
| deleteFiles | back to summary |
|---|---|
| private void deleteFiles(boolean deleteFromDisk) Deletes the files from the entry and optionally from disk.
| |
| deletionOfCompleteEntry | back to summary |
|---|---|
| private boolean deletionOfCompleteEntry() | |
| execute | back to summary |
|---|---|
public void execute()
| |
| isSuccess | back to summary |
|---|---|
| public boolean isSuccess() | |