Top Description Constructors Methods
org.jabref.gui.importer.actions

public Class CheckForNewEntryTypesAction

extends Object
implements GUIPostOpenAction
Class Inheritance
All Implemented Interfaces
org.jabref.gui.importer.actions.GUIPostOpenAction
Imports
java.util.List, java.util.stream.Collectors, org.jabref.gui.DialogService, org.jabref.gui.importer.ImportCustomEntryTypesDialog, org.jabref.logic.importer.ParserResult, org.jabref.model.database.BibDatabaseMode, org.jabref.model.entry.BibEntryType, .BibEntryTypesManager, org.jabref.preferences.LibraryPreferences, .PreferencesService, com.airhacks.afterburner.injection.Injector

This action checks whether any new custom entry types were loaded from this BIB file. If so, an offer to remember these entry types is given.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private BibDatabaseMode
private List<BibEntryType>
public boolean
isActionNecessary(ParserResult
The result of the BIB parse operation.
parserResult
,
PreferencesService preferencesService)

Implements org.jabref.gui.importer.actions.GUIPostOpenAction.isActionNecessary.

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.
parserResult
,
DialogService dialogService, PreferencesService preferencesService)

Implements org.jabref.gui.importer.actions.GUIPostOpenAction.performAction.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CheckForNewEntryTypesActionback to summary
public CheckForNewEntryTypesAction()

Method Detail

getBibDatabaseModeFromParserResultback to summary
private BibDatabaseMode getBibDatabaseModeFromParserResult(ParserResult parserResult, LibraryPreferences preferences)
getListOfUnknownAndUnequalCustomizationsback to summary
private List<BibEntryType> getListOfUnknownAndUnequalCustomizations(ParserResult parserResult, LibraryPreferences preferences)
isActionNecessaryback to summary
public boolean isActionNecessary(ParserResult parserResult, PreferencesService preferencesService)

Implements org.jabref.gui.importer.actions.GUIPostOpenAction.isActionNecessary.

Doc from org.jabref.gui.importer.actions.GUIPostOpenAction.isActionNecessary.

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

Parameters
parserResult:ParserResult

The result of the BIB parse operation.

Returns:boolean

true if the action should be called, false otherwise.

Annotations
@Override
performActionback to summary
public void performAction(ParserResult parserResult, DialogService dialogService, PreferencesService preferencesService)

Implements org.jabref.gui.importer.actions.GUIPostOpenAction.performAction.

Doc from org.jabref.gui.importer.actions.GUIPostOpenAction.performAction.

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
parserResult:ParserResult

The result of the BIB parse operation.

Annotations
@Override