| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private final GitHandlerRegistry | |
| private final GuiPreferences | |
| private static final Logger | |
| private final StateManager | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | GitPullAction(DialogService dialogService, StateManager stateManager, GuiPreferences guiPreferences, TaskExecutor taskExecutor, GitHandlerRegistry gitHandlerRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private Optional | Returns: An Optional containing the PullPlan if a merge is needed, or Optional.empty() if the local library is already up-to-date or ahead of the remote branch.Prepares a merge plan for the given library and file path. |
| private BookkeepingResult | |
| private void |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| gitHandlerRegistry | back to summary |
|---|---|
| private final GitHandlerRegistry gitHandlerRegistry | |
| guiPreferences | back to summary |
|---|---|
| private final GuiPreferences guiPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| GitPullAction | back to summary |
|---|---|
| public GitPullAction(DialogService dialogService, StateManager stateManager, GuiPreferences guiPreferences, TaskExecutor taskExecutor, GitHandlerRegistry gitHandlerRegistry) | |
| execute | back to summary |
|---|---|
public void execute()
| |
| prepareMergeResult | back to summary |
|---|---|
| private Optional Prepares a merge plan for the given library and file path. | |
| saveAndFinalize | back to summary |
|---|---|
| private BookkeepingResult saveAndFinalize(Path bibPath, BibDatabaseContext databaseContext, PullPlan pullPlan) throws IOException, GitAPIException, org.jabref.logic.JabRefException | |
| showPullError | back to summary |
|---|---|
| private void showPullError(Throwable exception) | |