Verified Owner
Top Description Constructors Methods
org.jabref.gui.importer

public Class GrobidUseDialogHelper

extends Object
Class Inheritance
Imports
org.jabref.gui.DialogService, org.jabref.logic.importer.util.GrobidPreferences, org.jabref.logic.l10n.Localization

Metadata extraction from PDFs and plaintext works very well using Grobid, but we do not want to enable it by default due to data privacy concerns. To make users aware of the feature, we ask before querying for the first time Grobid, saving the users' preference

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

if the user enabled Grobid, either in the past or after being asked by the dialog.
showAndWaitIfUserIsUndecided
(DialogService
the DialogService to use
dialogService
,
GrobidPreferences preferences)

If the user has not explicitly opted-in/out of Grobid, we ask for permission to send data to Grobid by using a dialog.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GrobidUseDialogHelperback to summary
public GrobidUseDialogHelper()

Method Detail

showAndWaitIfUserIsUndecidedback to summary
public static boolean showAndWaitIfUserIsUndecided(DialogService dialogService, GrobidPreferences preferences)

If the user has not explicitly opted-in/out of Grobid, we ask for permission to send data to Grobid by using a dialog. The users' preference is saved.

Parameters
dialogService:DialogService

the DialogService to use

Returns:boolean

if the user enabled Grobid, either in the past or after being asked by the dialog.