Top Fields Constructors Methods
org.jabref.gui.citationkeypattern

public Class GenerateCitationKeyAction

extends SimpleCommand
Class Inheritance
Imports
java.util.List, java.util.function.Consumer, .Supplier, javax.swing.undo.UndoManager, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.undo.NamedCompound, .UndoableKeyChange, org.jabref.gui.util.BackgroundTask, .TaskExecutor, .UiTaskExecutor, org.jabref.logic.citationkeypattern.CitationKeyGenerator, org.jabref.logic.l10n.Localization, org.jabref.model.entry.BibEntry, org.jabref.preferences.PreferencesService

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
GenerateCitationKeyAction(Supplier<LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, PreferencesService preferencesService, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
private void
public static boolean
confirmOverwriteKeys(DialogService dialogService, PreferencesService preferencesService)

public void
private String
formatOutputMessage(String start, int count)

private 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
preferencesServiceback to summary
private final PreferencesService preferencesService
stateManagerback to summary
private final StateManager stateManager
tabSupplierback to summary
private final Supplier<LibraryTab> tabSupplier
taskExecutorback to summary
private final TaskExecutor taskExecutor
undoManagerback to summary
private final UndoManager undoManager

Constructor Detail

GenerateCitationKeyActionback to summary
public GenerateCitationKeyAction(Supplier<LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, PreferencesService preferencesService, UndoManager undoManager)

Method Detail

checkOverwriteKeysChosenback to summary
private void checkOverwriteKeysChosen()
confirmOverwriteKeysback to summary
public static boolean confirmOverwriteKeys(DialogService dialogService, PreferencesService preferencesService)
executeback to summary
public void execute()
Annotations
@Override
formatOutputMessageback to summary
private String formatOutputMessage(String start, int count)
generateKeysInBackgroundback to summary
private BackgroundTask<Void> generateKeysInBackground()