Verified Owner
Top Inners Fields Constructors Methods
org.jabref.gui.entryeditor

public Class SourceTab

extends EntryEditorTab
Class Inheritance
Imports
java.io.IOException, .Reader, .StringWriter, java.util.List, .Map, .Objects, javafx.application.Platform, javafx.beans.InvalidationListener, javafx.beans.property.ObjectProperty, .SimpleObjectProperty, javafx.collections.ObservableList, javafx.scene.control.ContextMenu, .Tooltip, javafx.scene.input.KeyEvent, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionFactory, .SimpleCommand, .StandardActions, org.jabref.gui.bibtexhighlighter.BibTeXHighlighter, org.jabref.gui.icon.IconTheme, org.jabref.gui.keyboard.CodeAreaKeyBindings, .KeyBindingRepository, org.jabref.gui.search.SearchType, org.jabref.gui.util.UiTaskExecutor, org.jabref.logic.bibtex.BibEntryWriter, .FieldPreferences, .FieldWriter, org.jabref.logic.exporter.BibWriter, org.jabref.logic.importer.ImportFormatPreferences, .ParserResult, org.jabref.logic.importer.fileformat.BibtexParser, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabase, .BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.model.entry.field.Field, org.jabref.model.undo.CompoundEdit, .UndoableChangeType, .UndoableFieldChange, org.jabref.model.util.FileUpdateMonitor, .Range, com.tobiasdiez.easybind.EasyBind, com.tobiasdiez.easybind.Subscription, de.saxsys.mvvmfx.utils.validation.ObservableRuleBasedValidator, de.saxsys.mvvmfx.utils.validation.ValidationMessage, io.github.kusoroadeolu.veneer.BibTeXSyntaxHighlighter, jfx.incubator.scene.control.richtext.CodeArea, .SyntaxDecorator, .TextPos, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final com.tobiasdiez.easybind.Subscription
private final BibTeXSyntaxHighlighter
private CodeArea
private final DialogService
private final InvalidationListener
private final InvalidationListener
private final BibEntryTypesManager
private Map<Field, Range>
private final FieldPreferences
private final FileUpdateMonitor
private final ImportFormatPreferences
private final KeyBindingRepository
private static final Logger
private BibEntry
private final com.tobiasdiez.easybind.Subscription
private final de.saxsys.mvvmfx.utils.validation.ObservableRuleBasedValidator
private final StateManager
private final ObjectProperty<de.saxsys.mvvmfx.utils.validation.ValidationMessage>

Constructor Summary

AccessConstructor and Description
public
SourceTab(FieldPreferences fieldPreferences, ImportFormatPreferences importFormatPreferences, FileUpdateMonitor fileMonitor, DialogService dialogService, BibEntryTypesManager entryTypesManager, KeyBindingRepository keyBindingRepository, StateManager stateManager, BibTeXSyntaxHighlighter bibTeXSyntaxHighlighter)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
dispose()

Overrides org.jabref.gui.entryeditor.EntryEditorTab.dispose.

Releases listeners owned by this tab before it is discarded.

private String
private void
private void
private void
private void
private void
storeSource(BibEntry outOfFocusEntry, String text)

private void
private void
Inherited from org.jabref.gui.entryeditor.EntryEditorTab:
currentEntryPropertygetCurrentEntryhandleFocusnotifyAboutFocussetContentDrivenVisibilitysetPreferenceDrivenVisibilityvisibility

Field Detail

activeDatabaseSubscriptionback to summary
private final com.tobiasdiez.easybind.Subscription activeDatabaseSubscription
bibTeXSyntaxHighlighterback to summary
private final BibTeXSyntaxHighlighter bibTeXSyntaxHighlighter
codeAreaback to summary
private CodeArea codeArea
dialogServiceback to summary
private final DialogService dialogService
entryFieldsListenerback to summary
private final InvalidationListener entryFieldsListener
entryTypeListenerback to summary
private final InvalidationListener entryTypeListener
entryTypesManagerback to summary
private final BibEntryTypesManager entryTypesManager
fieldPositionsback to summary
private Map<Field, Range> fieldPositions
fieldPreferencesback to summary
private final FieldPreferences fieldPreferences
fileMonitorback to summary
private final FileUpdateMonitor fileMonitor
importFormatPreferencesback to summary
private final ImportFormatPreferences importFormatPreferences
keyBindingRepositoryback to summary
private final KeyBindingRepository keyBindingRepository
LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.gui.entryeditor.EntryEditorTab.LOGGER.

previousEntryback to summary
private BibEntry previousEntry
searchQuerySubscriptionback to summary
private final com.tobiasdiez.easybind.Subscription searchQuerySubscription
sourceValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.ObservableRuleBasedValidator sourceValidator
stateManagerback to summary
private final StateManager stateManager
validationMessageback to summary
private final ObjectProperty<de.saxsys.mvvmfx.utils.validation.ValidationMessage> validationMessage

Constructor Detail

SourceTabback to summary
public SourceTab(FieldPreferences fieldPreferences, ImportFormatPreferences importFormatPreferences, FileUpdateMonitor fileMonitor, DialogService dialogService, BibEntryTypesManager entryTypesManager, KeyBindingRepository keyBindingRepository, StateManager stateManager, BibTeXSyntaxHighlighter bibTeXSyntaxHighlighter)

Method Detail

bindToEntryback to summary
protected void bindToEntry(BibEntry entry)

Implements abstract org.jabref.gui.entryeditor.EntryEditorTab.bindToEntry.

Annotations
@Override
disposeback to summary
protected void dispose()

Overrides org.jabref.gui.entryeditor.EntryEditorTab.dispose.

Doc from org.jabref.gui.entryeditor.EntryEditorTab.dispose.

Releases listeners owned by this tab before it is discarded.

Annotations
@Override
getSourceStringback to summary
private String getSourceString(BibEntry entry, BibDatabaseMode type, FieldPreferences fieldPreferences) throws IOException

Method similar to BibEntry#getStringRepresentation(BibEntry, BibDatabaseMode, BibEntryTypesManager, FieldPreferences). This method additionally updates fieldPositions.

listenForSaveKeybindingback to summary
private void listenForSaveKeybinding(KeyEvent event)
refreshCodeAreaDecoratorback to summary
private void refreshCodeAreaDecorator()
removeEntryListenersback to summary
private void removeEntryListeners(BibEntry entry)
setupSourceEditorback to summary
private void setupSourceEditor()
storeSourceback to summary
private void storeSource(BibEntry outOfFocusEntry, String text)
storeVisibleSourceback to summary
private void storeVisibleSource()
updateCodeAreaback to summary
private void updateCodeArea()
org.jabref.gui.entryeditor back to summary

private Class SourceTab.EditAction

extends SimpleCommand
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final StandardActions
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

commandback to summary
private final StandardActions command

Constructor Detail

EditActionback to summary
public EditAction(StandardActions command)

Method Detail

executeback to summary
public void execute()
Annotations
@Override