| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final DialogService | |
| private final ObservableList | |
| private final BibEntryTypesManager | |
| private final FileUpdateMonitor | |
| private static final Logger | |
| private final StringProperty | |
| private ParserResult | |
| private final PreferencesService | |
| private final ObjectProperty | |
| private final StateManager | |
| private final TaskExecutor | |
| private final UndoManager |
| Access | Constructor and Description |
|---|---|
| public | ImportEntriesViewModel(BackgroundTask<ParserResult>
the task executed for parsing the selected files(s). task, TaskExecutor taskExecutor, BibDatabaseContext the database to import into databaseContext, DialogService dialogService, UndoManager undoManager, PreferencesService preferences, StateManager stateManager, BibEntryTypesManager entryTypesManager, FileUpdateMonitor fileUpdateMonitor)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private Optional | Returns: A possible duplicate, if any, or null if none were found.The entry to search for duplicates of. entry)Checks if there are duplicates to the given entry in the list of entries to be imported. |
| public ObservableList | |
| public String | |
| public BibDatabaseContext | |
| public String | |
| public boolean | |
| public void | importEntries(List<BibEntry>
subset of the entries contained in parserResult entriesToImport, boolean shouldDownloadFiles)Called after the user selected the entries to import. |
| public StringProperty | |
| public ObjectProperty |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| entries | back to summary |
|---|---|
| private final ObservableList<BibEntry> entries | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| fileUpdateMonitor | back to summary |
|---|---|
| private final FileUpdateMonitor fileUpdateMonitor | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| message | back to summary |
|---|---|
| private final StringProperty message | |
| parserResult | back to summary |
|---|---|
| private ParserResult parserResult | |
| preferences | back to summary |
|---|---|
| private final PreferencesService preferences | |
| selectedDb | back to summary |
|---|---|
| private final ObjectProperty<BibDatabaseContext> selectedDb | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| undoManager | back to summary |
|---|---|
| private final UndoManager undoManager | |
| ImportEntriesViewModel | back to summary |
|---|---|
public ImportEntriesViewModel(BackgroundTask<ParserResult> task, TaskExecutor taskExecutor, BibDatabaseContext databaseContext, DialogService dialogService, UndoManager undoManager, PreferencesService preferences, StateManager stateManager, BibEntryTypesManager entryTypesManager, FileUpdateMonitor fileUpdateMonitor)
| |
| buildImportHandlerThenImportEntries | back to summary |
|---|---|
| private void buildImportHandlerThenImportEntries(List<BibEntry> entriesToImport) | |
| findInternalDuplicate | back to summary |
|---|---|
| private Optional Checks if there are duplicates to the given entry in the list of entries to be imported. | |
| getEntries | back to summary |
|---|---|
| public ObservableList | |
| getMessage | back to summary |
|---|---|
| public String getMessage() | |
| getSelectedDb | back to summary |
|---|---|
| public BibDatabaseContext getSelectedDb() | |
| getSourceString | back to summary |
|---|---|
| public String getSourceString(BibEntry entry) | |
| hasDuplicate | back to summary |
|---|---|
| public boolean hasDuplicate(BibEntry entry) | |
| importEntries | back to summary |
|---|---|
| public void importEntries(List<BibEntry> entriesToImport, boolean shouldDownloadFiles) Called after the user selected the entries to import. Does the real import stuff. | |
| messageProperty | back to summary |
|---|---|
| public StringProperty messageProperty() | |
| selectedDbProperty | back to summary |
|---|---|
| public ObjectProperty | |