| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private final BibEntryTypesManager | |
| private final GitHandlerRegistry | |
| private final JournalAbbreviationRepository | |
| private static final Logger | |
| private final GuiPreferences | |
| private final StateManager | |
| private final Supplier | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | GitCommitAction(Supplier<@Nullable LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, GuiPreferences preferences, BibEntryTypesManager entryTypesManager, JournalAbbreviationRepository journalAbbreviationRepository, TaskExecutor taskExecutor, GitHandlerRegistry gitHandlerRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private boolean | commitWithUnsavedChanges(LibraryTab libraryTab)
Without autosave the user decides when the library is written, so committing only the work already on disk stays available, as in other Git clients. |
| public void | |
| private boolean | |
| private void | initRepository(Path libraryFile)
Offers to put a library that is not under version control into a fresh repository. |
| private boolean | |
| private boolean | save(LibraryTab libraryTab)
The save must not commit by itself: this one is on its way to the commit dialog. |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| gitHandlerRegistry | back to summary |
|---|---|
| private final GitHandlerRegistry gitHandlerRegistry | |
| journalAbbreviationRepository | back to summary |
|---|---|
| private final JournalAbbreviationRepository journalAbbreviationRepository | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| tabSupplier | back to summary |
|---|---|
| private final Supplier<@Nullable LibraryTab> tabSupplier | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| GitCommitAction | back to summary |
|---|---|
| public GitCommitAction(Supplier<@Nullable LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, GuiPreferences preferences, BibEntryTypesManager entryTypesManager, JournalAbbreviationRepository journalAbbreviationRepository, TaskExecutor taskExecutor, GitHandlerRegistry gitHandlerRegistry) | |
| commit | back to summary |
|---|---|
| private void commit(Path bibFilePath) | |
| commitWithUnsavedChanges | back to summary |
|---|---|
| private boolean commitWithUnsavedChanges(LibraryTab libraryTab) Without autosave the user decides when the library is written, so committing only the work
already on disk stays available, as in other Git clients.
| |
| execute | back to summary |
|---|---|
public void execute()
| |
| hasNothingToCommit | back to summary |
|---|---|
| private boolean hasNothingToCommit(Path bibFilePath) throws org.jabref.logic.JabRefException | |
| initRepository | back to summary |
|---|---|
| private void initRepository(Path libraryFile) Offers to put a library that is not under version control into a fresh repository. Cancelling is a valid choice: the user may want to clone an existing repository into that folder instead. | |
| isReadyToCommit | back to summary |
|---|---|
| private boolean isReadyToCommit() | |
| save | back to summary |
|---|---|
| private boolean save(LibraryTab libraryTab) The save must not commit by itself: this one is on its way to the commit dialog. | |