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

public final Enum EditSource

extends Enum<EditSource>
Class Inheritance
Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

Who is recording a change, as far as grouping into undo steps is concerned.

The journal groups a run of keystrokes into one step so that Ctrl+Z takes back a word rather than a letter, and it cannot tell a keystroke from anything else: a field editor and a command both record an org.jabref.model.undo.UndoableFieldChange against the same entry and field. So the caller says which it is, and only typing is eligible to continue the step it lands on.

Field Summary

Modifier and TypeField and Description
public static final EditSource
COMMAND

One user action, recorded by whoever performed it.

public static final EditSource
TYPING

One keystroke of a run in a text editor, which the journal may fold into the step the previous keystroke produced — see CoalescingPolicy.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EditSource
public static EditSource[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COMMANDback to summary
public static final EditSource COMMAND

One user action, recorded by whoever performed it. Never continues the step below it, and never invites the next change to continue it. The default.

TYPINGback to summary
public static final EditSource TYPING

One keystroke of a run in a text editor, which the journal may fold into the step the previous keystroke produced — see CoalescingPolicy.

Constructor Detail

EditSourceback to summary
private EditSource()

Method Detail

valueOfback to summary
public static EditSource valueOf(String name)
valuesback to summary
public static EditSource[] values()