Verified Owner
Top Fields Constructors Methods
org.jabref.gui.git

public Class GitDiffDialogView

extends BaseDialog<Void>
Class Inheritance
Annotations
@NullMarked
Imports
java.util.HashMap, .List, .Map, javafx.beans.property.SimpleStringProperty, javafx.fxml.FXML, javafx.scene.Node, javafx.scene.control.Label, .RadioButton, .SelectionMode, .TableColumn, .TableView, .ToggleGroup, javafx.scene.layout.BorderPane, org.jabref.gui.collab.DatabaseChange, org.jabref.gui.collab.entrychange.EntryChange, .EntryWithPreviewAndSourceDetailsView, org.jabref.gui.collab.groupchange.GroupChange, .GroupChangeDetailsView, org.jabref.gui.collab.metedatachange.MetadataChange, .MetadataChangeDetailsView, org.jabref.gui.collab.preamblechange.PreambleChange, .PreambleChangeDetailsView, org.jabref.gui.collab.stringadd.BibTexStringAdd, .BibTexStringAddDetailsView, org.jabref.gui.collab.stringchange.BibTexStringChange, .BibTexStringChangeDetailsView, org.jabref.gui.collab.stringdelete.BibTexStringDelete, .BibTexStringDeleteDetailsView, org.jabref.gui.collab.stringrename.BibTexStringRename, .BibTexStringRenameDetailsView, org.jabref.gui.mergeentries.threewaymerge.diffhighlighter.DiffHighlighter, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.preview.PreviewViewer, org.jabref.gui.util.BaseDialog, org.jabref.logic.l10n.Localization, org.jabref.logic.util.TaskExecutor, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntryTypesManager, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject, org.jspecify.annotations.NullMarked

Field Summary

Modifier and TypeField and Description
private BorderPane
private TableColumn<DatabaseChange, String>
private final List<DatabaseChange>
private TableView<DatabaseChange>
private final Map<DatabaseChange, Node>
private DialogService
private ToggleGroup
private BibEntryTypesManager
private final BibDatabaseContext
private RadioButton
private RadioButton
private final String
private final String
private GuiPreferences
private TaskExecutor
private final BibDatabaseContext

Constructor Summary

AccessConstructor and Description
public
GitDiffDialogView(List<DatabaseChange>
the changes to list, as computed by DatabaseChangeList.compareAndGetChanges
changes
,
BibDatabaseContext
the committed version (left side)
headDatabase
,
BibDatabaseContext
the saved file (right side)
workingTreeDatabase
)

Diff dialog labeled for the Git commit use case: committed version (left) vs. saved file (right).

public
GitDiffDialogView(List<DatabaseChange>
the changes to list, as computed by DatabaseChangeList.compareAndGetChanges
changes
,
BibDatabaseContext
the older version (left side)
headDatabase
,
BibDatabaseContext
the newer version (right side)
workingTreeDatabase
,
String
heading shown above the older version
oldVersionLabel
,
String
heading shown above the newer version
newVersionLabel
)

Method Summary

Modifier and TypeMethod and Description
private Node
private DiffHighlighter.BasicDiffMethod
private void
Inherited from org.jabref.gui.util.BaseDialog:
bringToFrontcloseOnKeyBindingMatchfitWindowToContent

Field Detail

changeInfoPaneback to summary
private BorderPane changeInfoPane
Annotations
@FXML
changeNameback to summary
private TableColumn<DatabaseChange, String> changeName
Annotations
@FXML
changesback to summary
private final List<DatabaseChange> changes
changesTableViewback to summary
private TableView<DatabaseChange> changesTableView
Annotations
@FXML
detailsViewCacheback to summary
private final Map<DatabaseChange, Node> detailsViewCache
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
diffHighlightingMethodToggleGroupback to summary
private ToggleGroup diffHighlightingMethodToggleGroup
Annotations
@FXML
entryTypesManagerback to summary
private BibEntryTypesManager entryTypesManager
Annotations
@Inject
headDatabaseback to summary
private final BibDatabaseContext headDatabase
highlightCharactersRadioButtonback to summary
private RadioButton highlightCharactersRadioButton
Annotations
@FXML
highlightWordsRadioButtonback to summary
private RadioButton highlightWordsRadioButton
Annotations
@FXML
newVersionLabelback to summary
private final String newVersionLabel
oldVersionLabelback to summary
private final String oldVersionLabel
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
taskExecutorback to summary
private TaskExecutor taskExecutor
Annotations
@Inject
workingTreeDatabaseback to summary
private final BibDatabaseContext workingTreeDatabase

Constructor Detail

GitDiffDialogViewback to summary
public GitDiffDialogView(List<DatabaseChange> changes, BibDatabaseContext headDatabase, BibDatabaseContext workingTreeDatabase)

Diff dialog labeled for the Git commit use case: committed version (left) vs. saved file (right).

Parameters
changes:List<DatabaseChange>

the changes to list, as computed by DatabaseChangeList.compareAndGetChanges

headDatabase:BibDatabaseContext

the committed version (left side)

workingTreeDatabase:BibDatabaseContext

the saved file (right side)

GitDiffDialogViewback to summary
public GitDiffDialogView(List<DatabaseChange> changes, BibDatabaseContext headDatabase, BibDatabaseContext workingTreeDatabase, String oldVersionLabel, String newVersionLabel)
Parameters
changes:List<DatabaseChange>

the changes to list, as computed by DatabaseChangeList.compareAndGetChanges

headDatabase:BibDatabaseContext

the older version (left side)

workingTreeDatabase:BibDatabaseContext

the newer version (right side)

oldVersionLabel:String

heading shown above the older version

newVersionLabel:String

heading shown above the newer version

Method Detail

createDetailsNodeback to summary
private Node createDetailsNode(DatabaseChange change, PreviewViewer previewViewer)
getDiffMethodback to summary
private DiffHighlighter.BasicDiffMethod getDiffMethod()
initializeback to summary
private void initialize()
Annotations
@FXML