Verified Owner
Top Fields Constructors Methods
org.jabref.gui.edit.automaticfieldeditor

public abstract Class AbstractAutomaticFieldEditorTabViewModel

extends AbstractViewModel
Class Inheritance
Known Direct Subclasses
org.jabref.gui.edit.automaticfieldeditor.clearcontent.ClearContentViewModel, org.jabref.gui.edit.automaticfieldeditor.copyormovecontent.CopyOrMoveFieldContentTabViewModel, org.jabref.gui.edit.automaticfieldeditor.editfieldcontent.EditFieldContentViewModel, org.jabref.gui.edit.automaticfieldeditor.renamefield.RenameFieldViewModel
Imports
java.util.Collection, .Comparator, .EnumSet, .HashSet, .Set, javafx.collections.FXCollections, .ObservableList, javafx.util.Duration, org.jabref.gui.AbstractViewModel, .DialogService, .Notifications, .StateManager, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabase, org.jabref.model.entry.field.Field, .StandardField, org.jabref.model.undo.CompoundEdit, org.jspecify.annotations.NonNull

Field Summary

Modifier and TypeField and Description
private final ObservableList<Field>
private final @NonNull CompoundEdit
protected final @NonNull DialogService
protected final @NonNull StateManager

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
addEdit(CompoundEdit edits, int affectedEntries)

Folds edits into the dialog's step and reports how many entries it touched.

private void
addFields(Collection<? extends Field> fields)

public ObservableList<Field>

Field Detail

allFieldsback to summary
private final ObservableList<Field> allFields
compoundEditback to summary
private final @NonNull CompoundEdit compoundEdit
dialogServiceback to summary
protected final @NonNull DialogService dialogService
stateManagerback to summary
protected final @NonNull StateManager stateManager

Constructor Detail

AbstractAutomaticFieldEditorTabViewModelback to summary
public AbstractAutomaticFieldEditorTabViewModel(@NonNull BibDatabase bibDatabase, @NonNull CompoundEdit compoundEdit, @NonNull DialogService dialogService, @NonNull StateManager stateManager)

Method Detail

addEditback to summary
protected void addEdit(CompoundEdit edits, int affectedEntries)

Folds edits into the dialog's step and reports how many entries it touched.

affectedEntries is passed rather than carried by edits, because it is what this notification says to the user and not part of the change being recorded. An AutomaticFieldEditorUndoableEdit subclass used to carry it, which cost CompoundEdit its final and gave a value type a field the undo model never reads.

addFieldsback to summary
private void addFields(Collection<? extends Field> fields)
getAllFieldsback to summary
public ObservableList<Field> getAllFields()