| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final DialogService | |
| private final JournalAbbreviationRepository | |
| private int | |
| private final CliPreferences | |
| private final StateManager | |
| private final @Nullable Supplier | |
| private final ObservableList | |
| private final @Nullable TaskExecutor | |
| private final UndoManager |
| Access | Constructor and Description |
|---|---|
| public | CleanupDialogViewModel(BibDatabaseContext databaseContext, CliPreferences preferences, DialogService dialogService, StateManager stateManager, UndoManager undoManager, @Nullable Supplier<LibraryTab> tabSupplier, @Nullable TaskExecutor taskExecutor, JournalAbbreviationRepository journalAbbreviationRepository)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| private void | cleanupWithProgress(CleanupPreferences cleanupPreferences, List<BibEntry> entries, org.jabref.logic.util.BackgroundTask<?> task)
|
| private boolean | Returns: true iff entry was modifiedroutes BibEntry field mutations to the correct thread mutationScheduler)Runs the cleanup on the entry and records the change. |
| public void | |
| private void | |
| private void |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| journalAbbreviationRepository | back to summary |
|---|---|
| private final JournalAbbreviationRepository journalAbbreviationRepository | |
| modifiedEntriesCount | back to summary |
|---|---|
| private int modifiedEntriesCount | |
| preferences | back to summary |
|---|---|
| private final CliPreferences preferences | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| tabSupplier | back to summary |
|---|---|
| private final @Nullable Supplier<LibraryTab> tabSupplier | |
| targetEntries | back to summary |
|---|---|
| private final ObservableList<BibEntry> targetEntries | |
| taskExecutor | back to summary |
|---|---|
| private final @Nullable TaskExecutor taskExecutor | |
| undoManager | back to summary |
|---|---|
| private final UndoManager undoManager | |
| CleanupDialogViewModel | back to summary |
|---|---|
public CleanupDialogViewModel(BibDatabaseContext databaseContext, CliPreferences preferences, DialogService dialogService, StateManager stateManager, UndoManager undoManager, @Nullable Supplier<LibraryTab> tabSupplier, @Nullable TaskExecutor taskExecutor, JournalAbbreviationRepository journalAbbreviationRepository)
| |
| apply | back to summary |
|---|---|
| public void apply(CleanupTabSelection selectedTab) | |
| apply | back to summary |
|---|---|
| public void apply(CleanupTabSelection selectedTab, boolean showFeedback) | |
| cleanup | back to summary |
|---|---|
| private void cleanup(CleanupPreferences cleanupPreferences, List<BibEntry> entries) | |
| cleanupWithProgress | back to summary |
|---|---|
| private void cleanupWithProgress(CleanupPreferences cleanupPreferences, List<BibEntry> entries, org.jabref.logic.util.BackgroundTask<?> task) | |
| doCleanup | back to summary |
|---|---|
| private boolean doCleanup(CleanupPreferences preset, BibEntry entry, CompoundEdit compoundEdit, List<JabRefException> failures, Consumer<Runnable> mutationScheduler) Runs the cleanup on the entry and records the change. | |
| setTargetEntries | back to summary |
|---|---|
| public void setTargetEntries(List<BibEntry> entries) | |
| showFailures | back to summary |
|---|---|
| private void showFailures(List<JabRefException> failures) | |
| showResults | back to summary |
|---|---|
| private void showResults() | |