| Modifier and Type | Field and Description |
|---|---|
| private final AiService | |
| private final ClipBoardManager | |
| private final DialogService | |
| private final BibEntryTypesManager | |
| private final FileUpdateMonitor | |
| private static final Logger | |
| private final Supplier | |
| private final GuiPreferences | |
| private final StateManager | |
| private final LibraryTabContainer | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | JabRefFrameViewModel(GuiPreferences preferences, AiService aiService, StateManager stateManager, DialogService dialogService, LibraryTabContainer tabContainer, Supplier<OpenDatabaseAction> openDatabaseAction, BibEntryTypesManager entryTypesManager, FileUpdateMonitor fileUpdateMonitor, ClipBoardManager clipBoardManager, TaskExecutor taskExecutor)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | addParserResult(ParserResult parserResult, @Nullable String
optional group the imported entries are assigned to (e.g. the REST targetGroup)?group= parameter). It pre-selects/falls back to that group in the import dialog, which creates it (top-level) on confirm if missing. An explicit pick in the dialog overrides it; cancelling imports nothing.
|
| private void | |
| private void | appendToCurrentLibrary(Reader library)
Imports a single library, BibTeX and non-BibTeX Similar code as |
| private void | |
| public boolean | |
| private static SequencedMap | collectSharedDatabases(List<LibraryTab> tabs)
Shared databases that are backed by a local file are reopened through that file (it carries the shared database id). |
| private void | |
| private Optional | |
| public void | handleUiCommands(List<UiCommand>
to be handled uiCommands)Handles commands submitted by the command line or by the remote host to be executed in the ui Needs to run in a certain order. |
| private void | importBibtexStringAndOpen(String importStr, @Nullable String targetGroup)
Deprecated
used by the browser extension only
|
| private void | |
| private ImportHandler | |
| private ParserResult | |
| private void | |
| private void | selectLibraryTab(Optional<Path> library)
Selects the tab whose library lives at |
| pack-priv void | |
| private void |
| aiService | back to summary |
|---|---|
| private final AiService aiService | |
| clipBoardManager | back to summary |
|---|---|
| private final ClipBoardManager clipBoardManager | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| 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 | |
| openDatabaseAction | back to summary |
|---|---|
| private final Supplier<OpenDatabaseAction> openDatabaseAction | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| tabContainer | back to summary |
|---|---|
| private final LibraryTabContainer tabContainer | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| JabRefFrameViewModel | back to summary |
|---|---|
| public JabRefFrameViewModel(GuiPreferences preferences, AiService aiService, StateManager stateManager, DialogService dialogService, LibraryTabContainer tabContainer, Supplier<OpenDatabaseAction> openDatabaseAction, BibEntryTypesManager entryTypesManager, FileUpdateMonitor fileUpdateMonitor, ClipBoardManager clipBoardManager, TaskExecutor taskExecutor) | |
| addParserResult | back to summary |
|---|---|
pack-priv void addParserResult(ParserResult parserResult)
| |
| addParserResult | back to summary |
|---|---|
pack-priv void addParserResult(ParserResult parserResult, @Nullable String targetGroup)
| |
| appendToCurrentLibrary | back to summary |
|---|---|
| private void appendToCurrentLibrary(List<Path> libraries) Supports both BibTeX and non-BibTeX | |
| appendToCurrentLibrary | back to summary |
|---|---|
| private void appendToCurrentLibrary(Reader library) Imports a single library, BibTeX and non-BibTeX Similar code as | |
| checkForBibInUpperDir | back to summary |
|---|---|
| private void checkForBibInUpperDir() | |
| close | back to summary |
|---|---|
| public boolean close() Quit JabRef
| |
| collectSharedDatabases | back to summary |
|---|---|
| private static SequencedMap Shared databases that are backed by a local file are reopened through that file (it carries the shared database id). The others only live in the connection, so their connection properties are collected here, keyed by a generated id. Nothing is written yet: the user may still cancel the quit, and a credential must not land in the keyring for a database that then stays open. | |
| directImportEntries | back to summary |
|---|---|
| private void directImportEntries(ParserResult parserResult, @Nullable String targetGroup) | |
| firstBibFile | back to summary |
|---|---|
| private Optional Use case: User starts Paths:
In the example, We do NOT go up another level (i.e., everything in | |
| handleUiCommands | back to summary |
|---|---|
| public void handleUiCommands(List<UiCommand> uiCommands) Handles commands submitted by the command line or by the remote host to be executed in the ui Needs to run in a certain order. E.g. databases have to be loaded before selecting an entry. Does NOT handle focus - this is done in JabRefFrame | |
| importBibtexStringAndOpen | back to summary |
|---|---|
| private void importBibtexStringAndOpen(String importStr, @Nullable String targetGroup)
Deprecated used by the browser extension only | |
| importFromFileAndOpen | back to summary |
|---|---|
| private void importFromFileAndOpen(String location)
Deprecated used by the browser extension only | |
| newImportHandler | back to summary |
|---|---|
| private ImportHandler newImportHandler(BibDatabaseContext databaseContext) | |
| parseBibtexEntries | back to summary |
|---|---|
| private ParserResult parseBibtexEntries(String importStr) throws org.jabref.logic.importer.ParseException | |
| selectEntries | back to summary |
|---|---|
private void selectEntries(List<String> entryKeys)
| |
| selectLibraryTab | back to summary |
|---|---|
| private void selectLibraryTab(Optional<Path> library) Selects the tab whose library lives at | |
| storeLastOpenedFiles | back to summary |
|---|---|
| pack-priv void storeLastOpenedFiles(List<Path> filenames, Path focusedDatabase, List<String> sharedDatabaseIds) | |
| waitForLoadingFinished | back to summary |
|---|---|
| private void waitForLoadingFinished(Runnable runnable) | |