Top Inners Fields Constructors Methods
org.jabref.gui.externalfiles

public Class AutoSetFileLinksUtil

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.ArrayList, .List, .Optional, java.util.stream.Collectors, org.jabref.gui.externalfiletype.ExternalFileType, .ExternalFileTypes, .UnknownExternalFileType, org.jabref.gui.undo.NamedCompound, .UndoableFieldChange, org.jabref.gui.util.UiTaskExecutor, org.jabref.logic.bibtex.FileFieldWriter, org.jabref.logic.util.io.AutoLinkPreferences, .FileFinder, .FileFinders, .FileUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .LinkedFile, org.jabref.model.entry.field.StandardField, org.jabref.preferences.FilePreferences, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final AutoLinkPreferences
private final List<Path>
private final FilePreferences
private static final Logger

Constructor Summary

AccessConstructor and Description
public
AutoSetFileLinksUtil(BibDatabaseContext databaseContext, FilePreferences filePreferences, AutoLinkPreferences autoLinkPreferences)

private
AutoSetFileLinksUtil(List<Path> directories, FilePreferences filePreferences, AutoLinkPreferences autoLinkPreferences)

Method Summary

Modifier and TypeMethod and Description
public List<LinkedFile>
public AutoSetFileLinksUtil.LinkFilesResult
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

autoLinkPreferencesback to summary
private final AutoLinkPreferences autoLinkPreferences
directoriesback to summary
private final List<Path> directories
filePreferencesback to summary
private final FilePreferences filePreferences
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

AutoSetFileLinksUtilback to summary
public AutoSetFileLinksUtil(BibDatabaseContext databaseContext, FilePreferences filePreferences, AutoLinkPreferences autoLinkPreferences)
AutoSetFileLinksUtilback to summary
private AutoSetFileLinksUtil(List<Path> directories, FilePreferences filePreferences, AutoLinkPreferences autoLinkPreferences)

Method Detail

findAssociatedNotLinkedFilesback to summary
public List<LinkedFile> findAssociatedNotLinkedFiles(BibEntry entry) throws IOException
linkAssociatedFilesback to summary
public AutoSetFileLinksUtil.LinkFilesResult linkAssociatedFiles(List<BibEntry> entries, NamedCompound ce)
org.jabref.gui.externalfiles back to summary

public Class AutoSetFileLinksUtil.LinkFilesResult

extends Object
Class Inheritance
  • java.lang.Object
  • org.jabref.gui.externalfiles.AutoSetFileLinksUtil.LinkFilesResult

Field Summary

Modifier and TypeField and Description
private final List<BibEntry>
private final List<IOException>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
public List<BibEntry>
public List<IOException>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

changedEntriesback to summary
private final List<BibEntry> changedEntries
fileExceptionsback to summary
private final List<IOException> fileExceptions

Constructor Detail

LinkFilesResultback to summary
public LinkFilesResult()

Method Detail

addBibEntryback to summary
protected void addBibEntry(BibEntry bibEntry)
addFileExceptionback to summary
protected void addFileException(IOException exception)
getChangedEntriesback to summary
public List<BibEntry> getChangedEntries()
getFileExceptionsback to summary
public List<IOException> getFileExceptions()