Verified Owner
Top Constructors Methods
org.jabref.gui.actions

public Class ActionHelper

extends Object
Class Inheritance
Imports
java.nio.file.Path, java.util.List, .Optional, java.util.function.Function, javafx.beans.binding.Binding, .Bindings, .BooleanExpression, javafx.beans.property.ReadOnlyBooleanProperty, .SimpleBooleanProperty, javafx.collections.ObservableList, org.jabref.gui.StateManager, org.jabref.gui.slr.StudyCatalogItem, org.jabref.gui.undo.GuiUndoManager, org.jabref.logic.git.util.GitHandlerRegistry, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.shared.DatabaseLocation, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .LinkedFile, org.jabref.model.entry.field.Field, com.airhacks.afterburner.injection.Injector, com.tobiasdiez.easybind.EasyBind, com.tobiasdiez.easybind.EasyBinding

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BooleanExpression

Returns:

a boolean binding
hasLinkedFileForSelectedEntries
(StateManager
manager for the state of the GUI
stateManager
)

Check if at least one of the selected entries has linked files

Used in org.jabref.gui.maintable.OpenSelectedEntriesFilesAction when multiple entries selected

public static BooleanExpression
public static BooleanExpression
public static BooleanExpression
public static BooleanExpression
private static BooleanExpression
journalState(StateManager stateManager, Function<GuiUndoManager, ReadOnlyBooleanProperty> state)

Follows the active library, so that enablement tracks the journal of the library in front rather than the one that happened to be open when the menu was built.

public static BooleanExpression
public static BooleanExpression
public static BooleanExpression
needsEntriesSelected(int numberOfEntries, StateManager stateManager)

public static BooleanExpression
public static BooleanExpression
public static BooleanExpression
needsRedo(StateManager stateManager)

Whether the active library has anything to redo.

public static BooleanExpression
public static BooleanExpression
public static BooleanExpression
public static BooleanExpression
needsUndo(StateManager stateManager)

Whether the active library has anything to undo.

public static BooleanExpression
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ActionHelperback to summary
public ActionHelper()

Method Detail

hasLinkedFileForSelectedEntriesback to summary
public static BooleanExpression hasLinkedFileForSelectedEntries(StateManager stateManager)

Check if at least one of the selected entries has linked files

Used in org.jabref.gui.maintable.OpenSelectedEntriesFilesAction when multiple entries selected

Parameters
stateManager:StateManager

manager for the state of the GUI

Returns:BooleanExpression

a boolean binding

isAnyFieldSetForSelectedEntryback to summary
public static BooleanExpression isAnyFieldSetForSelectedEntry(List<Field> fields, StateManager stateManager)
isFieldSetForSelectedEntryback to summary
public static BooleanExpression isFieldSetForSelectedEntry(Field field, StateManager stateManager)
isFilePresentForSelectedEntryback to summary
public static BooleanExpression isFilePresentForSelectedEntry(StateManager stateManager, CliPreferences preferences)
isPdfFilePresentForSelectedEntryback to summary
public static BooleanExpression isPdfFilePresentForSelectedEntry(StateManager stateManager, CliPreferences preferences)
journalStateback to summary
private static BooleanExpression journalState(StateManager stateManager, Function<GuiUndoManager, ReadOnlyBooleanProperty> state)

Follows the active library, so that enablement tracks the journal of the library in front rather than the one that happened to be open when the menu was built.

needsDatabaseback to summary
public static BooleanExpression needsDatabase(StateManager stateManager)
needsEntriesSelectedback to summary
public static BooleanExpression needsEntriesSelected(StateManager stateManager)
needsEntriesSelectedback to summary
public static BooleanExpression needsEntriesSelected(int numberOfEntries, StateManager stateManager)
needsGitRemoteConfiguredback to summary
public static BooleanExpression needsGitRemoteConfigured(StateManager stateManager)
needsMultipleDatabasesback to summary
public static BooleanExpression needsMultipleDatabases(StateManager stateManager)
needsRedoback to summary
public static BooleanExpression needsRedo(StateManager stateManager)

Whether the active library has anything to redo.

needsSavedLocalDatabaseback to summary
public static BooleanExpression needsSavedLocalDatabase(StateManager stateManager)
needsSharedDatabaseback to summary
public static BooleanExpression needsSharedDatabase(StateManager stateManager)
needsStudyDatabaseback to summary
public static BooleanExpression needsStudyDatabase(StateManager stateManager)
needsUndoback to summary
public static BooleanExpression needsUndo(StateManager stateManager)

Whether the active library has anything to undo.

noCatalogEnabledback to summary
public static BooleanExpression noCatalogEnabled(ObservableList<StudyCatalogItem> catalogs)