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

public Class SearchGroupsMigrationAction

extends Object
implements GUIPostOpenAction
Class Inheritance
All Implemented Interfaces
org.jabref.gui.importer.actions.GUIPostOpenAction
Imports
java.nio.file.Path, java.util.Optional, org.jabref.gui.DialogService, org.jabref.logic.importer.ParserResult, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.search.query.SearchQueryConversion, org.jabref.logic.util.Version, org.jabref.model.groups.GroupTreeNode, .SearchGroup, org.antlr.v4.runtime.misc.ParseCancellationException

This action checks whether the syntax for SearchGroups is the new one. If not we ask the user whether to migrate.

Field Summary

Modifier and TypeField and Description
public static final Version
public static final Version

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isActionNecessary(ParserResult parserResult, DialogService dialogService, CliPreferences preferences)

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.

private void
public void
performAction(ParserResult parserResult, DialogService dialogService, CliPreferences preferences)

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.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VERSION_6_0_ALPHAback to summary
public static final Version VERSION_6_0_ALPHA
VERSION_6_0_ALPHA_1back to summary
public static final Version VERSION_6_0_ALPHA_1

Constructor Detail

SearchGroupsMigrationActionback to summary
public SearchGroupsMigrationAction()

Method Detail

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

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.

Annotations
@Override
migrateGroupsback to summary
private void migrateGroups(GroupTreeNode node, DialogService dialogService)
performActionback to summary
public void performAction(ParserResult parserResult, DialogService dialogService, CliPreferences preferences)

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.

Annotations
@Override
showAskForNewSearchExpressionDialogback to summary
private void showAskForNewSearchExpressionDialog(DialogService dialogService, SearchGroup searchGroup)