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

public Class UndoAction

extends SimpleCommand
Class Inheritance
Annotations
@NullMarked
Imports
org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.actions.SimpleCommand, org.jabref.logic.l10n.Localization, org.jabref.logic.undo.UndoStep, org.jspecify.annotations.NullMarked

Undoes the last change made to the library the user is looking at.

The library, and so the journal, is read when the action runs rather than when it was built: one instance serves every library the session opens.

Field Summary

Modifier and TypeField and Description
private final DialogService
private final StateManager
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
UndoAction(DialogService dialogService, StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
public void
private static String
private void
undo(GuiUndoManager undoManager)

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

Field Detail

dialogServiceback to summary
private final DialogService dialogService
stateManagerback to summary
private final StateManager stateManager

Constructor Detail

UndoActionback to summary
public UndoAction(DialogService dialogService, StateManager stateManager)

Method Detail

executeback to summary
public void execute()
Annotations
@Override
messageback to summary
private static String message(UndoStep step)
undoback to summary
private void undo(GuiUndoManager undoManager)