Top Description Inners Fields Constructors Methods
org.jabref.gui.importer

public Class ImportCommand

extends SimpleCommand
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.ArrayList, .Collections, .List, .Optional, .SortedSet, javafx.stage.FileChooser, org.jabref.gui.DialogService, .LibraryTabContainer, .StateManager, org.jabref.gui.actions.SimpleCommand, org.jabref.gui.util.BackgroundTask, .FileDialogConfiguration, .FileFilterConverter, .TaskExecutor, .UiTaskExecutor, org.jabref.logic.database.DatabaseMerger, org.jabref.logic.importer.ImportException, .ImportFormatReader, .Importer, .ParserResult, org.jabref.logic.importer.fileformat.PdfGrobidImporter, .PdfMergeMetadataImporter, org.jabref.logic.l10n.Localization, org.jabref.logic.util.UpdateField, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabase, org.jabref.model.util.FileUpdateMonitor, org.jabref.preferences.PreferencesService, 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 PreferencesService
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, PreferencesService preferencesService, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, DialogService dialogService)

Method Summary

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

public void
private void
importSingleFile(Path file, SortedSet<Importer> importers, FileChooser.ExtensionFilter selectedExtensionFilter)

public ParserResult
mergeImportResults(List<ImportFormatReader.UnknownFormatImport> imports)

Todo

Move this to logic package.

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
preferencesServiceback to summary
private final PreferencesService preferencesService
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, PreferencesService preferencesService, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, DialogService dialogService)

Method Detail

doImportback to summary
private ParserResult doImport(List<Path> files, Importer importFormat) throws IOException
Exceptions
IOException:
of a specified importer
executeback to summary
public void execute()
Annotations
@Override
importSingleFileback to summary
private void importSingleFile(Path file, SortedSet<Importer> importers, FileChooser.ExtensionFilter selectedExtensionFilter)
mergeImportResultsback to summary
public ParserResult mergeImportResults(List<ImportFormatReader.UnknownFormatImport> imports)

Todo

Move this to logic package. Blocked by undo functionality.

org.jabref.gui.importer 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()