Verified Owner
Top Inners Constructors Methods
org.jabref.gui.util

public Class InsertUtil

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.util.List, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.externalfiles.EntryImportHandlerTracker, .ImportHandler, org.jabref.logic.l10n.Localization, org.jabref.model.TransferInformation, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jspecify.annotations.NullMarked, .Nullable

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
InsertUtil.FeedbackMessage

Renders a user feedback message for a given number of entries.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
addEntriesWithFeedback(@Nullable TransferInformation
- can be null if called via clipboard and clipboard content was NOT created by JabRef
jabRefClipboardTransferData
,
List<BibEntry> entriesToAdd, BibDatabaseContext targetDatabaseContext, InsertUtil.FeedbackMessage successMessage, InsertUtil.FeedbackMessage partialMessage, DialogService dialogService, ImportHandler importHandler, StateManager stateManager)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InsertUtilback to summary
public InsertUtil()

Method Detail

addEntriesWithFeedbackback to summary
public static void addEntriesWithFeedback(@Nullable TransferInformation jabRefClipboardTransferData, List<BibEntry> entriesToAdd, BibDatabaseContext targetDatabaseContext, InsertUtil.FeedbackMessage successMessage, InsertUtil.FeedbackMessage partialMessage, DialogService dialogService, ImportHandler importHandler, StateManager stateManager)
Parameters
jabRefClipboardTransferData:@Nullable TransferInformation

- can be null if called via clipboard and clipboard content was NOT created by JabRef

org.jabref.gui.util back to summary

public Interface InsertUtil.FeedbackMessage

Annotations
@FunctionalInterface
@NullMarked

Renders a user feedback message for a given number of entries.

Implementations have to call Localization#lang(String, Object...) with a literal key, because the localization consistency tests can only detect literal keys.

Method Summary

Modifier and TypeMethod and Description
public String
format(Object...
Replacement strings for the parameters %0, %1, etc. of the message
params
)

Method Detail

formatback to summary
public String format(Object... params)
Parameters
params:Object[]

Replacement strings for the parameters %0, %1, etc. of the message