Verified Owner
Top Constructors Methods
org.jabref.gui.externalfiles

public Class PdfMergeDialog

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.function.Supplier, org.jabref.gui.mergeentries.multiwaymerge.MultiMergeEntriesView, org.jabref.gui.preferences.GuiPreferences, org.jabref.logic.importer.Importer, .ParserResult, org.jabref.logic.importer.fileformat.pdf.PdfContentImporter, .PdfEmbeddedBibFileImporter, .PdfGrobidImporter, .PdfVerbatimBibtexImporter, .PdfXmpImporter, org.jabref.logic.l10n.Localization, org.jabref.logic.util.TaskExecutor, org.jabref.model.entry.BibEntry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static MultiMergeEntriesView
createMergeDialog(BibEntry
the entry to merge with
entry
,
Path
the path to the PDF file. This PDF is used as the source for the org.jabref.logic.importer.fileformat.pdf.PdfImporters.
filePath
,
GuiPreferences
the preferences to use. Full preference object is required, because of current implementation of MultiMergeEntriesView.
preferences
,
TaskExecutor
the task executor to use when the multi merge dialog executes the importers.
taskExecutor
)

Constructs a merge dialog for a PDF file.

public static MultiMergeEntriesView
createMergeDialog(Path filePath, GuiPreferences preferences, TaskExecutor taskExecutor)

private static void
finishDialog(MultiMergeEntriesView dialog, Path filePath, GuiPreferences preferences)

private static MultiMergeEntriesView
initDialog(GuiPreferences preferences, TaskExecutor taskExecutor)

private static Supplier<BibEntry>
wrapImporterToSupplier(Importer importer, Path filePath)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PdfMergeDialogback to summary
public PdfMergeDialog()

Method Detail

createMergeDialogback to summary
public static MultiMergeEntriesView createMergeDialog(BibEntry entry, Path filePath, GuiPreferences preferences, TaskExecutor taskExecutor)

Constructs a merge dialog for a PDF file. This dialog calls various org.jabref.logic.importer.fileformat.pdf.PdfImporters, collects the results, and lets the user choose between them.

org.jabref.logic.importer.fileformat.pdf.PdfImporters try to extract a BibEntry out of a PDF file, but it does not perform this 100% perfectly, it is only a set of heuristics that in some cases might work, in others not. Thus, JabRef provides this merge dialog that collects the results of all org.jabref.logic.importer.fileformat.pdf.PdfImporters and gives user a choice between field values.

Parameters
entry:BibEntry

the entry to merge with

filePath:Path

the path to the PDF file. This PDF is used as the source for the org.jabref.logic.importer.fileformat.pdf.PdfImporters.

preferences:GuiPreferences

the preferences to use. Full preference object is required, because of current implementation of MultiMergeEntriesView.

taskExecutor:TaskExecutor

the task executor to use when the multi merge dialog executes the importers.

createMergeDialogback to summary
public static MultiMergeEntriesView createMergeDialog(Path filePath, GuiPreferences preferences, TaskExecutor taskExecutor)
finishDialogback to summary
private static void finishDialog(MultiMergeEntriesView dialog, Path filePath, GuiPreferences preferences)
initDialogback to summary
private static MultiMergeEntriesView initDialog(GuiPreferences preferences, TaskExecutor taskExecutor)
wrapImporterToSupplierback to summary
private static Supplier<BibEntry> wrapImporterToSupplier(Importer importer, Path filePath)