Top Fields Constructors Methods
org.jabref.gui.specialfields

public Class SpecialFieldAction

extends SimpleCommand
Class Inheritance
Imports
java.util.ArrayList, .List, .Objects, .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.logic.l10n.Localization, org.jabref.logic.util.UpdateField, org.jabref.model.FieldChange, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.SpecialField, org.jabref.preferences.PreferencesService, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final DialogService
private static final Logger
private final boolean
private final PreferencesService
private final SpecialField
private final StateManager
private final Supplier<LibraryTab>
private final UndoManager
private final String
private final String
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
SpecialFieldAction(Supplier<LibraryTab> tabSupplier, SpecialField specialField, String value, boolean
- false also causes that doneTextPattern has two place holders %0 for the value and %1 for the sum of entries
nullFieldIfValueIsTheSame
,
String undoText, DialogService dialogService, PreferencesService preferencesService, UndoManager undoManager, StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
public void
private String
getTextDone(SpecialField field, String... params)

Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER
nullFieldIfValueIsTheSameback to summary
private final boolean nullFieldIfValueIsTheSame
preferencesServiceback to summary
private final PreferencesService preferencesService
specialFieldback to summary
private final SpecialField specialField
stateManagerback to summary
private final StateManager stateManager
tabSupplierback to summary
private final Supplier<LibraryTab> tabSupplier
undoManagerback to summary
private final UndoManager undoManager
undoTextback to summary
private final String undoText
valueback to summary
private final String value

Constructor Detail

SpecialFieldActionback to summary
public SpecialFieldAction(Supplier<LibraryTab> tabSupplier, SpecialField specialField, String value, boolean nullFieldIfValueIsTheSame, String undoText, DialogService dialogService, PreferencesService preferencesService, UndoManager undoManager, StateManager stateManager)
Parameters
nullFieldIfValueIsTheSame:boolean

- false also causes that doneTextPattern has two place holders %0 for the value and %1 for the sum of entries

Method Detail

executeback to summary
public void execute()
Annotations
@Override
getTextDoneback to summary
private String getTextDone(SpecialField field, String... params)