Top Fields Constructors Methods
org.jabref.gui.cleanup

public Class CleanupAction

extends SimpleCommand
Class Inheritance
Imports
java.util.List, .Optional, java.util.function.Supplier, javax.swing.undo.UndoManager, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.undo.NamedCompound, .UndoableFieldChange, org.jabref.gui.util.BackgroundTask, .TaskExecutor, org.jabref.logic.cleanup.CleanupWorker, org.jabref.logic.l10n.Localization, org.jabref.model.FieldChange, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.preferences.CleanupPreferences, .PreferencesService

Field Summary

Modifier and TypeField and Description
private final DialogService
private boolean
private int
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
CleanupAction(Supplier<LibraryTab> tabSupplier, PreferencesService preferences, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
private void
cleanup(BibDatabaseContext databaseContext, CleanupPreferences cleanupPreferences)

private void
doCleanup(BibDatabaseContext databaseContext, CleanupPreferences preset, BibEntry entry, NamedCompound ce)

Runs the cleanup on the entry and records the change.

public void
private void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
isCanceledback to summary
private boolean isCanceled
modifiedEntriesCountback to summary
private int modifiedEntriesCount
preferencesback to summary
private final PreferencesService preferences
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

CleanupActionback to summary
public CleanupAction(Supplier<LibraryTab> tabSupplier, PreferencesService preferences, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor, UndoManager undoManager)

Method Detail

cleanupback to summary
private void cleanup(BibDatabaseContext databaseContext, CleanupPreferences cleanupPreferences)
doCleanupback to summary
private void doCleanup(BibDatabaseContext databaseContext, CleanupPreferences preset, BibEntry entry, NamedCompound ce)

Runs the cleanup on the entry and records the change.

executeback to summary
public void execute()
Annotations
@Override
showResultsback to summary
private void showResults()