Verified Owner
Top Fields Constructors Methods
org.jabref.gui.citationkeypattern

public Class GenerateCitationKeyAction

extends SimpleCommand
Class Inheritance
Imports
java.util.ArrayList, .List, .Optional, java.util.function.Supplier, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, .StandardActions, org.jabref.gui.util.UiTaskExecutor, org.jabref.logic.citationkeypattern.CitationKeyGenerator, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.undo.UndoManager, .UndoSuspension, org.jabref.logic.util.BackgroundTask, .TaskExecutor, org.jabref.model.FieldChange, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.undo.CompoundEdit, .UndoableFieldChange

Field Summary

Modifier and TypeField and Description
private final DialogService
private List<BibEntry>
private boolean
private final CliPreferences
private final StateManager
private final Supplier<LibraryTab>
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
GenerateCitationKeyAction(Supplier<LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, CliPreferences preferences)

Method Summary

Modifier and TypeMethod and Description
private void
public static boolean
public void
private String
formatOutputMessage(String start, int count)

private void
private org.jabref.logic.util.BackgroundTask<Void>
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
entriesback to summary
private List<BibEntry> entries
isCanceledback to summary
private boolean isCanceled
preferencesback to summary
private final CliPreferences preferences
stateManagerback to summary
private final StateManager stateManager
tabSupplierback to summary
private final Supplier<LibraryTab> tabSupplier
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

GenerateCitationKeyActionback to summary
public GenerateCitationKeyAction(Supplier<LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, CliPreferences preferences)

Method Detail

checkOverwriteKeysChosenback to summary
private void checkOverwriteKeysChosen()
confirmOverwriteKeysback to summary
public static boolean confirmOverwriteKeys(DialogService dialogService, CliPreferences preferences)
executeback to summary
public void execute()
Annotations
@Override
formatOutputMessageback to summary
private String formatOutputMessage(String start, int count)
generateKeysInback to summary
private void generateKeysIn(BibDatabaseContext databaseContext)
generateKeysInBackgroundback to summary
private org.jabref.logic.util.BackgroundTask<Void> generateKeysInBackground(BibDatabaseContext databaseContext)