| Modifier and Type | Field and Description |
|---|---|
| private final BrowserExtensionBridgeClient | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | MathSciNetIdentifierEditorViewModel(SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, DialogService dialogService, TaskExecutor taskExecutor, GuiPreferences preferences, UndoManager undoManager, StateManager stateManager)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | getSyncWithBrowser()
Overrides org. Whether entry/field changes should be pushed to the browser extension's MathSciNet tab. |
| public void | setSyncWithBrowser(boolean syncWithBrowser)
Overrides org.
|
| private void | syncCurrentIdentifier()
Sends the currently shown entry's MathSciNet id to the browser extension, if sync is on and an id is present. |
| bridgeClient | back to summary |
|---|---|
| private final BrowserExtensionBridgeClient bridgeClient | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Hides org. | |
| MathSciNetIdentifierEditorViewModel | back to summary |
|---|---|
| public MathSciNetIdentifierEditorViewModel(SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, DialogService dialogService, TaskExecutor taskExecutor, GuiPreferences preferences, UndoManager undoManager, StateManager stateManager) | |
| bindToEntry | back to summary |
|---|---|
| public void bindToEntry(BibEntry entry) Overrides org.
| |
| getSyncWithBrowser | back to summary |
|---|---|
| public boolean getSyncWithBrowser() Overrides org. Whether entry/field changes should be pushed to the browser extension's MathSciNet tab. Backed directly by the persisted preference: there's at most one MathSciNet identifier editor visible at a time, so no live binding to the preference is kept around.
| |
| setSyncWithBrowser | back to summary |
|---|---|
| public void setSyncWithBrowser(boolean syncWithBrowser) Overrides org.
| |
| syncCurrentIdentifier | back to summary |
|---|---|
| private void syncCurrentIdentifier() Sends the currently shown entry's MathSciNet id to the browser extension, if sync is on and an id is present. No-ops, rather than erroring, when the bridge is unreachable. | |