Verified Owner
Top Fields Constructors Methods
org.jabref.gui.git

public Class GitPushAction

extends SimpleCommand
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.Optional, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.preferences.GuiPreferences, org.jabref.logic.JabRefException, org.jabref.logic.git.GitSyncService, org.jabref.logic.git.model.PushResult, org.jabref.logic.git.util.GitHandlerRegistry, org.jabref.logic.l10n.Localization, org.jabref.logic.util.BackgroundTask, .TaskExecutor, org.jabref.model.database.BibDatabaseContext, org.eclipse.jgit.api.errors.GitAPIException, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final DialogService
private final GitHandlerRegistry
private final GuiPreferences
private static final Logger
private final StateManager
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
GitPushAction(DialogService dialogService, StateManager stateManager, GuiPreferences guiPreferences, TaskExecutor taskExecutor, GitHandlerRegistry handlerRegistry)

Method Summary

Modifier and TypeMethod and Description
private PushResult
doPush(BibDatabaseContext databaseContext, Path bibPath, GitStatusViewModel gitStatusViewModel, GitHandlerRegistry registry)

public void
private void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
gitHandlerRegistryback to summary
private final GitHandlerRegistry gitHandlerRegistry
guiPreferencesback to summary
private final GuiPreferences guiPreferences
LOGGERback to summary
private static final Logger LOGGER
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

GitPushActionback to summary
public GitPushAction(DialogService dialogService, StateManager stateManager, GuiPreferences guiPreferences, TaskExecutor taskExecutor, GitHandlerRegistry handlerRegistry)

Method Detail

doPushback to summary
private PushResult doPush(BibDatabaseContext databaseContext, Path bibPath, GitStatusViewModel gitStatusViewModel, GitHandlerRegistry registry) throws IOException, GitAPIException, org.jabref.logic.JabRefException
executeback to summary
public void execute()
Annotations
@Override
showPushErrorback to summary
private void showPushError(Throwable ex)