Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.mergeentries

pack-priv Class UpdateOriginalEntry

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.util.Comparator, .Optional, .Set, .TreeSet, org.jabref.gui.DialogService, org.jabref.logic.l10n.Localization, org.jabref.logic.undo.UndoManager, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.Field, .FieldFactory, org.jabref.model.entry.types.EntryType, org.jabref.model.undo.CompoundEdit, .UndoableChangeType, org.jspecify.annotations.NullMarked

A class that is desired to update the original entry with the merged entry in the multi-way merge dialog.

Field Summary

Modifier and TypeField and Description
private final DialogService
private final String
private final Optional<BibEntry>
private final BibEntry
private final String
private final UndoManager

Constructor Summary

AccessConstructor and Description
pack-priv
UpdateOriginalEntry(BibEntry originalEntry, Optional<BibEntry> mergedEntry, DialogService dialogService, UndoManager undoManager, String editName, String successMessage)

Method Summary

Modifier and TypeMethod and Description
public void
private void
updateEntryType(BibEntry mergedEntry, CompoundEdit recorder)

private void
updateFields(BibEntry mergedEntry, CompoundEdit recorder)

private void
updateOriginalEntry(BibEntry mergedEntry)

If any differences are found between the original entry and the merged entry, the original entry will be updated with the merged entry's information.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialogServiceback to summary
private final DialogService dialogService
editNameback to summary
private final String editName
mergedEntryback to summary
private final Optional<BibEntry> mergedEntry
originalEntryback to summary
private final BibEntry originalEntry
successMessageback to summary
private final String successMessage
undoManagerback to summary
private final UndoManager undoManager

Constructor Detail

UpdateOriginalEntryback to summary
pack-priv UpdateOriginalEntry(BibEntry originalEntry, Optional<BibEntry> mergedEntry, DialogService dialogService, UndoManager undoManager, String editName, String successMessage)

Method Detail

updateback to summary
public void update()
updateEntryTypeback to summary
private void updateEntryType(BibEntry mergedEntry, CompoundEdit recorder)
updateFieldsback to summary
private void updateFields(BibEntry mergedEntry, CompoundEdit recorder)
updateOriginalEntryback to summary
private void updateOriginalEntry(BibEntry mergedEntry)

If any differences are found between the original entry and the merged entry, the original entry will be updated with the merged entry's information.