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

public Class ExportCommand

extends SimpleCommand
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.Collections, .Comparator, .List, java.util.function.Supplier, java.util.stream.Collectors, javafx.stage.FileChooser, javafx.util.Duration, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.icon.IconTheme, org.jabref.gui.util.BackgroundTask, .FileDialogConfiguration, .FileFilterConverter, .TaskExecutor, org.jabref.logic.exporter.Exporter, .ExporterFactory, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.preferences.PreferencesService, org.controlsfx.control.action.Action, org.slf4j.Logger, .LoggerFactory

Performs an export action

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final JournalAbbreviationRepository
private final DialogService
private final BibEntryTypesManager
private final ExportCommand.ExportMethod
private static final Logger
private final PreferencesService
private final StateManager
private final Supplier<LibraryTab>
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
ExportCommand(ExportCommand.ExportMethod exportMethod, Supplier<LibraryTab> tabSupplier, StateManager stateManager, DialogService dialogService, PreferencesService preferences, BibEntryTypesManager entryTypesManager, JournalAbbreviationRepository abbreviationRepository, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
public void
private void
export(Path file, FileChooser.ExtensionFilter selectedExtensionFilter, List<Exporter> exporters)

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

Field Detail

abbreviationRepositoryback to summary
private final JournalAbbreviationRepository abbreviationRepository
dialogServiceback to summary
private final DialogService dialogService
entryTypesManagerback to summary
private final BibEntryTypesManager entryTypesManager
exportMethodback to summary
private final ExportCommand.ExportMethod exportMethod
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final PreferencesService preferences
stateManagerback to summary
private final StateManager stateManager
tabSupplierback to summary
private final Supplier<LibraryTab> tabSupplier
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

ExportCommandback to summary
public ExportCommand(ExportCommand.ExportMethod exportMethod, Supplier<LibraryTab> tabSupplier, StateManager stateManager, DialogService dialogService, PreferencesService preferences, BibEntryTypesManager entryTypesManager, JournalAbbreviationRepository abbreviationRepository, TaskExecutor taskExecutor)

Method Detail

executeback to summary
public void execute()
Annotations
@Override
exportback to summary
private void export(Path file, FileChooser.ExtensionFilter selectedExtensionFilter, List<Exporter> exporters)
handleErrorback to summary
private void handleError(Exception ex)
org.jabref.gui.exporter back to summary

public final Enum ExportCommand.ExportMethod

extends Enum<ExportCommand.ExportMethod>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ExportCommand.ExportMethod
public static final ExportCommand.ExportMethod

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

EXPORT_ALLback to summary
public static final ExportCommand.ExportMethod EXPORT_ALL
EXPORT_SELECTEDback to summary
public static final ExportCommand.ExportMethod EXPORT_SELECTED

Constructor Detail

ExportMethodback to summary
private ExportMethod()

Method Detail

valueOfback to summary
public static ExportCommand.ExportMethod valueOf(String name)
valuesback to summary
public static ExportCommand.ExportMethod[] values()