Verified Owner
Top Fields Constructors Methods
org.jabref.gui.fieldeditors.identifier

public Class MathSciNetIdentifierEditorViewModel

extends BaseIdentifierEditorViewModel<MathSciNetId>
Class Inheritance
Annotations
@NullMarked
Imports
java.util.Optional, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.preferences.GuiPreferences, org.jabref.logic.browserext.BrowserExtensionBridgeClient, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.l10n.Localization, org.jabref.logic.undo.UndoManager, org.jabref.logic.util.BackgroundTask, .TaskExecutor, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.model.entry.identifier.MathSciNetId, com.tobiasdiez.easybind.EasyBind, org.jspecify.annotations.NullMarked, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final BrowserExtensionBridgeClient
private static final Logger
Inherited from org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel:
canFetchBibliographyInformationByIdcanLookupIdentifiercanShortenIdentifiercanSyncWithBrowserdialogServiceidentifieridentifierLookupInProgressidentifierParserisInvalidIdentifierpreferencesstateManagertaskExecutor

Constructor Summary

AccessConstructor and Description
public
MathSciNetIdentifierEditorViewModel(SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, DialogService dialogService, TaskExecutor taskExecutor, GuiPreferences preferences, UndoManager undoManager, StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
getSyncWithBrowser()

Overrides org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel.getSyncWithBrowser.

Whether entry/field changes should be pushed to the browser extension's MathSciNet tab.

public void
private void
syncCurrentIdentifier()

Sends the currently shown entry's MathSciNet id to the browser extension, if sync is on and an id is present.

Inherited from org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel:
canFetchBibliographyInformationByIdPropertycanLookupIdentifierPropertycanShortenIdentifierPropertycanSyncWithBrowserPropertyconfigureconfigurefetchBibliographyInformationgetCanFetchBibliographyInformationByIdgetCanLookupIdentifiergetCanShortenIdentifiergetCanSyncWithBrowsergetIdentifierLookupInProgressgetIdentifierLookupNotInProgressgetIsInvalidIdentifierhandleIdentifierFetchingErroridentifierLookupInProgressPropertyisInvalidIdentifierPropertylookupIdentifieropenExternalLinkshortenIDupdateIdentifier

Field Detail

bridgeClientback to summary
private final BrowserExtensionBridgeClient bridgeClient
LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel.LOGGER.

Constructor Detail

MathSciNetIdentifierEditorViewModelback to summary
public MathSciNetIdentifierEditorViewModel(SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, DialogService dialogService, TaskExecutor taskExecutor, GuiPreferences preferences, UndoManager undoManager, StateManager stateManager)

Method Detail

bindToEntryback to summary
public void bindToEntry(BibEntry entry)

Overrides org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel.bindToEntry.

Annotations
@Override
getSyncWithBrowserback to summary
public boolean getSyncWithBrowser()

Overrides org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel.getSyncWithBrowser.

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.

Annotations
@Override
setSyncWithBrowserback to summary
public void setSyncWithBrowser(boolean syncWithBrowser)

Overrides org.jabref.gui.fieldeditors.identifier.BaseIdentifierEditorViewModel.setSyncWithBrowser.

Annotations
@Override
syncCurrentIdentifierback 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.