Top Description Fields Constructors Methods
org.jabref.gui

public Class JabRefDialogService

extends Object
implements DialogService
Class Inheritance
All Implemented Interfaces
org.jabref.gui.DialogService
Imports
java.io.File, .IOException, java.nio.file.FileSystem, .FileSystems, .Path, java.util.Collection, .Collections, .List, .Optional, java.util.function.Consumer, java.util.stream.Collectors, javafx.concurrent.Task, javafx.geometry.Pos, javafx.print.PrinterJob, javafx.scene.Group, .Node, javafx.scene.control.Alert.AlertType, .Button, .ButtonBar, .ButtonType, .CheckBox, .ChoiceDialog, .ComboBox, .Dialog, .DialogPane, .Label, .TextArea, .TextInputDialog, javafx.scene.layout.HBox, .Region, .VBox, javafx.stage.DirectoryChooser, .FileChooser, .Stage, .Window, javafx.util.Duration, .StringConverter, org.jabref.gui.help.ErrorConsoleAction, org.jabref.gui.icon.IconTheme, org.jabref.gui.util.BackgroundTask, .BaseDialog, .DirectoryDialogConfiguration, .FileDialogConfiguration, .UiTaskExecutor, .ZipFileChooser, org.jabref.logic.l10n.Localization, com.tobiasdiez.easybind.EasyBind, org.controlsfx.control.Notifications, org.controlsfx.control.TaskProgressView, org.controlsfx.control.textfield.CustomPasswordField, org.controlsfx.dialog.ExceptionDialog, org.controlsfx.dialog.ProgressDialog, org.slf4j.Logger, .LoggerFactory

This class provides methods to create default JavaFX dialogs which will also work on top of Swing windows. The created dialogs are instances of the FXDialog class. The available dialogs in this class are useful for displaying small information graphic dialogs rather than complex windows. For more complex dialogs it is advised to rather create a new sub class of FXDialog.

Field Summary

Modifier and TypeField and Description
public static final int
private static final Logger
private final Window
private static final Duration

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private <T> ChoiceDialog<T>
createChoiceDialog(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices)

private FXDialog
createDialog(Alert.AlertType type, String title, String content)

private FXDialog
createDialogWithOptOut(Alert.AlertType type, String title, String content, String optOutMessage, Consumer<Boolean> optOutAction)

private <V> org.controlsfx.dialog.ProgressDialog
createProgressDialog(String title, String content, Task<V> task)

private DirectoryChooser
private FileChooser
public void
notify(String
the message to show.
message
)

Implements org.jabref.gui.DialogService.notify.

Notify the user in a non-blocking way (i.e., in form of toast in a snackbar).

public static String
public <V> Optional<ButtonType>
showBackgroundProgressDialogAndWait(String
title of the dialog
title
,
String
message to show below the list of background tasks
content
,
StateManager
The StateManager which contains the background tasks
stateManager
)

Implements org.jabref.gui.DialogService.showBackgroundProgressDialogAndWait.

Constructs and shows a dialog showing the progress of running background tasks.

public <T> Optional<T>
showChoiceDialogAndWait(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices)

Implements org.jabref.gui.DialogService.showChoiceDialogAndWait.

This will create and display new ChoiceDialog of type T with a default choice and a collection of possible choices

public boolean
showConfirmationDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showConfirmationDialogAndWait.

This will create and display a new confirmation dialog.

public boolean
showConfirmationDialogAndWait(String title, String content, String okButtonLabel)

Implements org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Create and display a new confirmation dialog.

public boolean
showConfirmationDialogAndWait(String title, String content, String okButtonLabel, String cancelButtonLabel)

Implements org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Create and display a new confirmation dialog.

public boolean
showConfirmationDialogWithOptOutAndWait(String title, String content, String optOutMessage, Consumer<Boolean> optOutAction)

Implements org.jabref.gui.DialogService.showConfirmationDialogWithOptOutAndWait.

Create and display a new confirmation dialog.

public boolean
showConfirmationDialogWithOptOutAndWait(String title, String content, String okButtonLabel, String cancelButtonLabel, String optOutMessage, Consumer<Boolean> optOutAction)

Implements org.jabref.gui.DialogService.showConfirmationDialogWithOptOutAndWait.

Create and display a new confirmation dialog.

public Optional<ButtonType>
showCustomButtonDialogAndWait(Alert.AlertType type, String title, String content, ButtonType... buttonTypes)

Implements org.jabref.gui.DialogService.showCustomButtonDialogAndWait.

This will create and display a new dialog of the specified Alert.AlertType but with user defined buttons as optional ButtonTypes.

public void
showCustomDialog(BaseDialog<?>
dialog to show
aboutDialogView
)

Implements org.jabref.gui.DialogService.showCustomDialog.

Shows a custom dialog without returning any results.

public Optional<ButtonType>
showCustomDialogAndWait(String title, DialogPane contentPane, ButtonType... buttonTypes)

Implements org.jabref.gui.DialogService.showCustomDialogAndWait.

This will create and display a new dialog showing a custom DialogPane and using custom ButtonTypes.

public <R> Optional<R>
showCustomDialogAndWait(Dialog<R>
dialog to show
dialog
)

Implements org.jabref.gui.DialogService.showCustomDialogAndWait.

Shows a custom dialog and returns the result.

public Optional<Path>
showDirectorySelectionDialog(DirectoryDialogConfiguration directoryDialogConfiguration)

Implements org.jabref.gui.DialogService.showDirectorySelectionDialog.

Shows a new directory selection dialog.

public <T> Optional<T>
showEditableChoiceDialogAndWait(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices, StringConverter<T> converter)

Implements org.jabref.gui.DialogService.showEditableChoiceDialogAndWait.

public void
showErrorDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

This will create and display a new error dialog.

public void
showErrorDialogAndWait(String
the error message
message
,
Throwable
the exception causing the error
exception
)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Create and display error dialog displaying the given exception.

public void
showErrorDialogAndWait(String title, String content, Throwable
the exception causing the error
exception
)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Create and display error dialog displaying the given exception.

public void
showErrorDialogAndWait(String
the error message
message
)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Create and display error dialog displaying the given message.

public Optional<Path>
showFileOpenDialog(FileDialogConfiguration fileDialogConfiguration)

Implements org.jabref.gui.DialogService.showFileOpenDialog.

Shows a new file open dialog.

public List<Path>
public Optional<Path>
showFileOpenFromArchiveDialog(Path archivePath)

Implements org.jabref.gui.DialogService.showFileOpenFromArchiveDialog.

Shows a new dialog that list all files contained in the given archive and which lets the user select one of these files.

public Optional<Path>
showFileSaveDialog(FileDialogConfiguration fileDialogConfiguration)

Implements org.jabref.gui.DialogService.showFileSaveDialog.

Shows a new file save dialog.

public void
showInformationDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showInformationDialogAndWait.

This will create and display a new information dialog.

public Optional<String>
showInputDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showInputDialogAndWait.

This will create and display new TextInputDialog with a text fields to enter data

public Optional<String>
showInputDialogWithDefaultAndWait(String title, String content, String defaultValue)

Implements org.jabref.gui.DialogService.showInputDialogWithDefaultAndWait.

This will create and display new TextInputDialog with a text field with a default value to enter data

public Optional<String>
showPasswordDialogAndWait(String title, String header, String content)

Implements org.jabref.gui.DialogService.showPasswordDialogAndWait.

This will create and display new CustomPasswordField that doesn't show the text, and two buttons one cancel and one ok.

public boolean
showPrintDialog(PrinterJob
the print job to customize
job
)

Implements org.jabref.gui.DialogService.showPrintDialog.

Displays a Print Dialog.

public <V> void
showProgressDialog(String
title of the dialog
title
,
String
message to show above the progress bar
content
,
Task<V>
The Task which executes the work and for which to show the dialog
task
)

Implements org.jabref.gui.DialogService.showProgressDialog.

Constructs and shows a cancelable ProgressDialog.

public <V> void
showProgressDialogAndWait(String
title of the dialog
title
,
String
message to show above the progress bar
content
,
Task<V>
The Task which executes the work and for which to show the dialog
task
)

Implements org.jabref.gui.DialogService.showProgressDialogAndWait.

Constructs and shows a cancelable ProgressDialog.

public void
showWarningDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showWarningDialogAndWait.

This will create and display a new information dialog.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DIALOG_SIZE_LIMITback to summary
public static final int DIALOG_SIZE_LIMIT
LOGGERback to summary
private static final Logger LOGGER
mainWindowback to summary
private final Window mainWindow
TOAST_MESSAGE_DISPLAY_TIMEback to summary
private static final Duration TOAST_MESSAGE_DISPLAY_TIME

Constructor Detail

JabRefDialogServiceback to summary
public JabRefDialogService(Window mainWindow)

Method Detail

createChoiceDialogback to summary
private <T> ChoiceDialog<T> createChoiceDialog(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices)
createDialogback to summary
private FXDialog createDialog(Alert.AlertType type, String title, String content)
createDialogWithOptOutback to summary
private FXDialog createDialogWithOptOut(Alert.AlertType type, String title, String content, String optOutMessage, Consumer<Boolean> optOutAction)
createProgressDialogback to summary
private <V> org.controlsfx.dialog.ProgressDialog createProgressDialog(String title, String content, Task<V> task)
getConfiguredDirectoryChooserback to summary
private DirectoryChooser getConfiguredDirectoryChooser(DirectoryDialogConfiguration directoryDialogConfiguration)
getConfiguredFileChooserback to summary
private FileChooser getConfiguredFileChooser(FileDialogConfiguration fileDialogConfiguration)
notifyback to summary
public void notify(String message)

Implements org.jabref.gui.DialogService.notify.

Doc from org.jabref.gui.DialogService.notify.

Notify the user in a non-blocking way (i.e., in form of toast in a snackbar).

Parameters
message:String

the message to show.

Annotations
@Override
shortenDialogMessageback to summary
public static String shortenDialogMessage(String dialogMessage)
showBackgroundProgressDialogAndWaitback to summary
public <V> Optional<ButtonType> showBackgroundProgressDialogAndWait(String title, String content, StateManager stateManager)

Implements org.jabref.gui.DialogService.showBackgroundProgressDialogAndWait.

Doc from org.jabref.gui.DialogService.showBackgroundProgressDialogAndWait.

Constructs and shows a dialog showing the progress of running background tasks. Clicking cancel will cancel the underlying service and close the dialog. The dialog will exit as soon as none of the background tasks are running

Parameters
title:String

title of the dialog

content:String

message to show below the list of background tasks

stateManager:StateManager

The StateManager which contains the background tasks

Annotations
@Override
showChoiceDialogAndWaitback to summary
public <T> Optional<T> showChoiceDialogAndWait(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices)

Implements org.jabref.gui.DialogService.showChoiceDialogAndWait.

Doc from org.jabref.gui.DialogService.showChoiceDialogAndWait.

This will create and display new ChoiceDialog of type T with a default choice and a collection of possible choices

Annotations
@Override
showConfirmationDialogAndWaitback to summary
public boolean showConfirmationDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Doc from org.jabref.gui.DialogService.showConfirmationDialogAndWait.

This will create and display a new confirmation dialog. It will include a blue question icon on the left and a OK and Cancel button. To create a confirmation dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...)

Returns:boolean

true if the use clicked "OK" otherwise false

Annotations
@Override
showConfirmationDialogAndWaitback to summary
public boolean showConfirmationDialogAndWait(String title, String content, String okButtonLabel)

Implements org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Doc from org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Create and display a new confirmation dialog. It will include a blue question icon on the left and a OK (with given label) and Cancel button. To create a confirmation dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...).

Returns:boolean

true if the use clicked "OK" otherwise false

Annotations
@Override
showConfirmationDialogAndWaitback to summary
public boolean showConfirmationDialogAndWait(String title, String content, String okButtonLabel, String cancelButtonLabel)

Implements org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Doc from org.jabref.gui.DialogService.showConfirmationDialogAndWait.

Create and display a new confirmation dialog. It will include a blue question icon on the left and a OK (with given label) and Cancel (also with given label) button. To create a confirmation dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...).

Returns:boolean

true if the use clicked "OK" otherwise false

Annotations
@Override
showConfirmationDialogWithOptOutAndWaitback to summary
public boolean showConfirmationDialogWithOptOutAndWait(String title, String content, String optOutMessage, Consumer<Boolean> optOutAction)

Implements org.jabref.gui.DialogService.showConfirmationDialogWithOptOutAndWait.

Doc from org.jabref.gui.DialogService.showConfirmationDialogWithOptOutAndWait.

Create and display a new confirmation dialog. It will include a blue question icon on the left and a YES (with given label) and Cancel (also with given label) button. To create a confirmation dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...). Moreover, the dialog contains a opt-out checkbox with the given text to support "Do not ask again"-behaviour.

Returns:boolean

true if the use clicked "YES" otherwise false

Annotations
@Override
showConfirmationDialogWithOptOutAndWaitback to summary
public boolean showConfirmationDialogWithOptOutAndWait(String title, String content, String okButtonLabel, String cancelButtonLabel, String optOutMessage, Consumer<Boolean> optOutAction)

Implements org.jabref.gui.DialogService.showConfirmationDialogWithOptOutAndWait.

Doc from org.jabref.gui.DialogService.showConfirmationDialogWithOptOutAndWait.

Create and display a new confirmation dialog. It will include a blue question icon on the left and a YES (with given label) and Cancel (also with given label) button. To create a confirmation dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...). Moreover, the dialog contains a opt-out checkbox with the given text to support "Do not ask again"-behaviour.

Returns:boolean

true if the use clicked "YES" otherwise false

Annotations
@Override
showCustomButtonDialogAndWaitback to summary
public Optional<ButtonType> showCustomButtonDialogAndWait(Alert.AlertType type, String title, String content, ButtonType... buttonTypes)

Implements org.jabref.gui.DialogService.showCustomButtonDialogAndWait.

Doc from org.jabref.gui.DialogService.showCustomButtonDialogAndWait.

This will create and display a new dialog of the specified Alert.AlertType but with user defined buttons as optional ButtonTypes.

Returns:Optional<ButtonType>

Optional with the pressed Button as ButtonType

Annotations
@Override
showCustomDialogback to summary
public void showCustomDialog(BaseDialog<?> aboutDialogView)

Implements org.jabref.gui.DialogService.showCustomDialog.

Doc from org.jabref.gui.DialogService.showCustomDialog.

Shows a custom dialog without returning any results.

Parameters
aboutDialogView:BaseDialog<?>

dialog to show

Annotations
@Override
showCustomDialogAndWaitback to summary
public Optional<ButtonType> showCustomDialogAndWait(String title, DialogPane contentPane, ButtonType... buttonTypes)

Implements org.jabref.gui.DialogService.showCustomDialogAndWait.

Doc from org.jabref.gui.DialogService.showCustomDialogAndWait.

This will create and display a new dialog showing a custom DialogPane and using custom ButtonTypes.

Returns:Optional<ButtonType>

Optional with the pressed Button as ButtonType

Annotations
@Override
showCustomDialogAndWaitback to summary
public <R> Optional<R> showCustomDialogAndWait(Dialog<R> dialog)

Implements org.jabref.gui.DialogService.showCustomDialogAndWait.

Doc from org.jabref.gui.DialogService.showCustomDialogAndWait.

Shows a custom dialog and returns the result.

Parameters
<R>
type of result
dialog:Dialog<R>

dialog to show

Annotations
@Override
showDirectorySelectionDialogback to summary
public Optional<Path> showDirectorySelectionDialog(DirectoryDialogConfiguration directoryDialogConfiguration)

Implements org.jabref.gui.DialogService.showDirectorySelectionDialog.

Doc from org.jabref.gui.DialogService.showDirectorySelectionDialog.

Shows a new directory selection dialog. The method doesn't return until the displayed open dialog is dismissed. The return value specifies the file chosen by the user or an empty Optional if no selection has been made.

Returns:Optional<Path>

the selected directory or an empty Optional if no directory has been selected

Annotations
@Override
showEditableChoiceDialogAndWaitback to summary
public <T> Optional<T> showEditableChoiceDialogAndWait(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices, StringConverter<T> converter)

Implements org.jabref.gui.DialogService.showEditableChoiceDialogAndWait.

Annotations
@Override
showErrorDialogAndWaitback to summary
public void showErrorDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Doc from org.jabref.gui.DialogService.showErrorDialogAndWait.

This will create and display a new error dialog. It will include a red error icon on the left and a single OK Button. To create a error dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...)

Annotations
@Override
showErrorDialogAndWaitback to summary
public void showErrorDialogAndWait(String message, Throwable exception)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Doc from org.jabref.gui.DialogService.showErrorDialogAndWait.

Create and display error dialog displaying the given exception.

Parameters
message:String

the error message

exception:Throwable

the exception causing the error

Annotations
@Override
showErrorDialogAndWaitback to summary
public void showErrorDialogAndWait(String title, String content, Throwable exception)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Doc from org.jabref.gui.DialogService.showErrorDialogAndWait.

Create and display error dialog displaying the given exception.

Parameters
exception:Throwable

the exception causing the error

Annotations
@Override
showErrorDialogAndWaitback to summary
public void showErrorDialogAndWait(String message)

Implements org.jabref.gui.DialogService.showErrorDialogAndWait.

Doc from org.jabref.gui.DialogService.showErrorDialogAndWait.

Create and display error dialog displaying the given message.

Parameters
message:String

the error message

Annotations
@Override
showFileOpenDialogback to summary
public Optional<Path> showFileOpenDialog(FileDialogConfiguration fileDialogConfiguration)

Implements org.jabref.gui.DialogService.showFileOpenDialog.

Doc from org.jabref.gui.DialogService.showFileOpenDialog.

Shows a new file open dialog. The method doesn't return until the displayed open dialog is dismissed. The return value specifies the file chosen by the user or an empty Optional if no selection has been made. After a file was selected, the given file dialog configuration is updated with the selected extension type (if any).

Returns:Optional<Path>

the selected file or an empty Optional if no file has been selected

Annotations
@Override
showFileOpenDialogAndGetMultipleFilesback to summary
public List<Path> showFileOpenDialogAndGetMultipleFiles(FileDialogConfiguration fileDialogConfiguration)

Implements org.jabref.gui.DialogService.showFileOpenDialogAndGetMultipleFiles.

Doc from org.jabref.gui.DialogService.showFileOpenDialogAndGetMultipleFiles.

Shows a new file open dialog. The method doesn't return until the displayed open dialog is dismissed. The return value specifies the files chosen by the user or an empty List if no selection has been made.

Returns:List<Path>

the selected files or an empty List if no file has been selected

Annotations
@Override
showFileOpenFromArchiveDialogback to summary
public Optional<Path> showFileOpenFromArchiveDialog(Path archivePath) throws IOException

Implements org.jabref.gui.DialogService.showFileOpenFromArchiveDialog.

Doc from org.jabref.gui.DialogService.showFileOpenFromArchiveDialog.

Shows a new dialog that list all files contained in the given archive and which lets the user select one of these files. The method doesn't return until the displayed open dialog is dismissed. The return value specifies the file chosen by the user or an empty Optional if no selection has been made.

Returns:Optional<Path>

the selected file or an empty Optional if no file has been selected

Annotations
@Override
showFileSaveDialogback to summary
public Optional<Path> showFileSaveDialog(FileDialogConfiguration fileDialogConfiguration)

Implements org.jabref.gui.DialogService.showFileSaveDialog.

Doc from org.jabref.gui.DialogService.showFileSaveDialog.

Shows a new file save dialog. The method doesn't return until the displayed file save dialog is dismissed. The return value specifies the file chosen by the user or an empty Optional if no selection has been made. After a file was selected, the given file dialog configuration is updated with the selected extension type (if any).

Returns:Optional<Path>

the selected file or an empty Optional if no file has been selected

Annotations
@Override
showInformationDialogAndWaitback to summary
public void showInformationDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showInformationDialogAndWait.

Doc from org.jabref.gui.DialogService.showInformationDialogAndWait.

This will create and display a new information dialog. It will include a blue information icon on the left and a single OK Button. To create an information dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...)

Annotations
@Override
showInputDialogAndWaitback to summary
public Optional<String> showInputDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showInputDialogAndWait.

Doc from org.jabref.gui.DialogService.showInputDialogAndWait.

This will create and display new TextInputDialog with a text fields to enter data

Annotations
@Override
showInputDialogWithDefaultAndWaitback to summary
public Optional<String> showInputDialogWithDefaultAndWait(String title, String content, String defaultValue)

Implements org.jabref.gui.DialogService.showInputDialogWithDefaultAndWait.

Doc from org.jabref.gui.DialogService.showInputDialogWithDefaultAndWait.

This will create and display new TextInputDialog with a text field with a default value to enter data

Annotations
@Override
showPasswordDialogAndWaitback to summary
public Optional<String> showPasswordDialogAndWait(String title, String header, String content)

Implements org.jabref.gui.DialogService.showPasswordDialogAndWait.

Doc from org.jabref.gui.DialogService.showPasswordDialogAndWait.

This will create and display new CustomPasswordField that doesn't show the text, and two buttons one cancel and one ok.

Returns:Optional<String>

the entered password if pressed "OK", null otherwise

Annotations
@Override
showPrintDialogback to summary
public boolean showPrintDialog(PrinterJob job)

Implements org.jabref.gui.DialogService.showPrintDialog.

Doc from org.jabref.gui.DialogService.showPrintDialog.

Displays a Print Dialog. Allow the user to update job state such as printer and settings. These changes will be available in the appropriate properties after the print dialog has returned. The print dialog is also used to confirm the user wants to proceed with printing.

Parameters
job:PrinterJob

the print job to customize

Returns:boolean

false if the user opts to cancel printing

Annotations
@Override
showProgressDialogback to summary
public <V> void showProgressDialog(String title, String content, Task<V> task)

Implements org.jabref.gui.DialogService.showProgressDialog.

Doc from org.jabref.gui.DialogService.showProgressDialog.

Constructs and shows a cancelable ProgressDialog. Clicking cancel will cancel the underlying service and close the dialog

Parameters
title:String

title of the dialog

content:String

message to show above the progress bar

task:Task<V>

The Task which executes the work and for which to show the dialog

Annotations
@Override
showProgressDialogAndWaitback to summary
public <V> void showProgressDialogAndWait(String title, String content, Task<V> task)

Implements org.jabref.gui.DialogService.showProgressDialogAndWait.

Doc from org.jabref.gui.DialogService.showProgressDialogAndWait.

Constructs and shows a cancelable ProgressDialog. Clicking cancel will cancel the underlying service and close the dialog, otherwise will wait for the task to finish.

Parameters
title:String

title of the dialog

content:String

message to show above the progress bar

task:Task<V>

The Task which executes the work and for which to show the dialog

Annotations
@Override
showWarningDialogAndWaitback to summary
public void showWarningDialogAndWait(String title, String content)

Implements org.jabref.gui.DialogService.showWarningDialogAndWait.

Doc from org.jabref.gui.DialogService.showWarningDialogAndWait.

This will create and display a new information dialog. It will include a yellow warning icon on the left and a single OK Button. To create a warning dialog with custom buttons see also showCustomButtonDialogAndWait(Alert.AlertType, String, String, ButtonType...)

Annotations
@Override