Verified Owner
Top Description Inners Fields Constructors Methods
org.jabref.gui.importer.actions

public Class ImportCommand

extends SimpleCommand
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.ArrayList, .List, .Optional, .SortedSet, java.util.stream.Collectors, javafx.stage.FileChooser, org.jabref.gui.DialogService, .LibraryTab, .LibraryTabContainer, .StateManager, org.jabref.gui.actions.SimpleCommand, org.jabref.gui.importer.GrobidUseDialogHelper, .ImportEntriesDialog, org.jabref.gui.util.FileDialogConfiguration, .FileFilterConverter, .UiTaskExecutor, org.jabref.logic.importer.ImportException, .ImportFormatReader, .Importer, .ParserResult, org.jabref.logic.importer.fileformat.pdf.PdfGrobidImporter, .PdfMergeMetadataImporter, org.jabref.logic.importer.util.ImportResultsMerger, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.util.BackgroundTask, .TaskExecutor, org.jabref.logic.util.io.FileUtil, org.jabref.model.util.FileUpdateMonitor, org.jspecify.annotations.NullMarked, .Nullable, org.slf4j.Logger, .LoggerFactory

Perform an import action

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final DialogService
private final FileUpdateMonitor
private final ImportCommand.ImportMethod
private static final Logger
private final CliPreferences
private final LibraryTabContainer
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
ImportCommand(LibraryTabContainer tabContainer, ImportCommand.ImportMethod importMethod, CliPreferences preferences, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, DialogService dialogService)

Method Summary

Modifier and TypeMethod and Description
private ParserResult
doImport(List<Path> files, @Nullable Importer importFormat)

public void
private void
importMultipleFiles(List<Path> files, SortedSet<Importer> importers, FileChooser.ExtensionFilter selectedExtensionFilter)

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

Field Detail

dialogServiceback to summary
private final DialogService dialogService
fileUpdateMonitorback to summary
private final FileUpdateMonitor fileUpdateMonitor
importMethodback to summary
private final ImportCommand.ImportMethod importMethod
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final CliPreferences preferences
tabContainerback to summary
private final LibraryTabContainer tabContainer
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

ImportCommandback to summary
public ImportCommand(LibraryTabContainer tabContainer, ImportCommand.ImportMethod importMethod, CliPreferences preferences, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, DialogService dialogService)

Method Detail

doImportback to summary
private ParserResult doImport(List<Path> files, @Nullable Importer importFormat) throws IOException
Annotations
@NullMarked
Exceptions
IOException:
of a specified importer
executeback to summary
public void execute()
Annotations
@Override
importMultipleFilesback to summary
private void importMultipleFiles(List<Path> files, SortedSet<Importer> importers, FileChooser.ExtensionFilter selectedExtensionFilter)
org.jabref.gui.importer.actions back to summary

public final Enum ImportCommand.ImportMethod

extends Enum<ImportCommand.ImportMethod>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ImportCommand.ImportMethod
public static final ImportCommand.ImportMethod

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

AS_NEWback to summary
public static final ImportCommand.ImportMethod AS_NEW
TO_EXISTINGback to summary
public static final ImportCommand.ImportMethod TO_EXISTING

Constructor Detail

ImportMethodback to summary
private ImportMethod()

Method Detail

valueOfback to summary
public static ImportCommand.ImportMethod valueOf(String name)
valuesback to summary
public static ImportCommand.ImportMethod[] values()