Verified Owner
Top Description Constructors Methods
org.jabref.logic.undo

public Class BibChangeDescriber

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
org.jabref.logic.l10n.Localization, org.jabref.model.entry.field.FieldTextMapper, org.jabref.model.undo.BibChange, .ChangeSet, .UndoableChangeType, .UndoableFieldChange, .UndoableGroupTreeChange, .UndoableInsertEntries, .UndoableInsertString, .UndoableMetaDataChange, .UndoablePreambleChange, .UndoableRemoveEntries, .UndoableRemoveString, .UndoableReplaceStrings, .UndoableStringChange, org.jspecify.annotations.NullMarked

Names a change as the user would recognise it, for the message the Undo and Redo actions show.

The text lives here rather than on the change records: a BibChange is a model value and carries no user-facing text.

A ChangeSet describes itself, because its name is the label of the control the user activated and no derived text can beat that. Everything else is a change recorded on its own, which has no such name, so it is described by what it does.

The switch is exhaustive over the sealed interface: a new kind of change does not compile until it has been given a description here.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BibChangeDescriberback to summary
private BibChangeDescriber()

Method Detail

describeback to summary
public static String describe(BibChange change)