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

public Interface GUIPostOpenAction

Known Direct Implementers
org.jabref.gui.importer.actions.SearchGroupsMigrationAction, org.jabref.gui.importer.actions.CheckForNewEntryTypesAction
Imports
org.jabref.gui.DialogService, org.jabref.logic.importer.ParserResult, org.jabref.logic.preferences.CliPreferences

This interface defines potential actions that may need to be taken after opening a BIB file into JabRef. This can for instance be file upgrade actions that should be offered due to new features in JabRef, and may depend on e.g. which JabRef version the file was last written by.

This interface is introduced in an attempt to add such functionality in a flexible manner.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the action should be called, false otherwise.
isActionNecessary
(ParserResult
The result of the BIB parse operation.
pr
,
DialogService dialogService, CliPreferences preferences)

This method is queried in order to find out whether the action needs to be performed or not.

public void
performAction(ParserResult
The result of the BIB parse operation.
pr
,
DialogService dialogService, CliPreferences preferences)

This method is called after the new database has been added to the GUI, if the isActionNecessary() method returned true.

Method Detail

isActionNecessaryback to summary
public boolean isActionNecessary(ParserResult pr, DialogService dialogService, CliPreferences preferences)

This method is queried in order to find out whether the action needs to be performed or not.

Parameters
pr:ParserResult

The result of the BIB parse operation.

Returns:boolean

true if the action should be called, false otherwise.

performActionback to summary
public void performAction(ParserResult pr, DialogService dialogService, CliPreferences preferences)

This method is called after the new database has been added to the GUI, if the isActionNecessary() method returned true.

Note

if several such methods need to be called sequentially, it is important that all implementations of this method do not return until the operation is finished.

Parameters
pr:ParserResult

The result of the BIB parse operation.