Top Fields Constructors Methods
org.jabref.gui.collab

public Class DatabaseChangeMonitor

extends Object
implements FileUpdateListener
Class Inheritance
All Implemented Interfaces
org.jabref.model.util.FileUpdateListener
Imports
java.io.IOException, java.util.ArrayList, .List, javax.swing.undo.UndoManager, javafx.util.Duration, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.icon.IconTheme, org.jabref.gui.undo.NamedCompound, org.jabref.gui.util.BackgroundTask, .TaskExecutor, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabaseContext, org.jabref.model.util.FileUpdateListener, .FileUpdateMonitor, org.jabref.preferences.PreferencesService, org.controlsfx.control.action.Action, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final BibDatabaseContext
private final DialogService
private final FileUpdateMonitor
private final List<DatabaseChangeListener>
private static final Logger
private final LibraryTab.DatabaseNotification
private final PreferencesService
private LibraryTab
private final StateManager
private final TaskExecutor
private final UndoManager

Constructor Summary

AccessConstructor and Description
public
DatabaseChangeMonitor(BibDatabaseContext database, FileUpdateMonitor fileMonitor, TaskExecutor taskExecutor, DialogService dialogService, PreferencesService preferencesService, LibraryTab.DatabaseNotification notificationPane, UndoManager undoManager, StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
public void
public void
fileUpdated()

Implements org.jabref.model.util.FileUpdateListener.fileUpdated.

The file has been updated.

private void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databaseback to summary
private final BibDatabaseContext database
dialogServiceback to summary
private final DialogService dialogService
fileMonitorback to summary
private final FileUpdateMonitor fileMonitor
listenersback to summary
private final List<DatabaseChangeListener> listeners
LOGGERback to summary
private static final Logger LOGGER
notificationPaneback to summary
private final LibraryTab.DatabaseNotification notificationPane
preferencesServiceback to summary
private final PreferencesService preferencesService
saveStateback to summary
private LibraryTab saveState
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor
undoManagerback to summary
private final UndoManager undoManager

Constructor Detail

DatabaseChangeMonitorback to summary
public DatabaseChangeMonitor(BibDatabaseContext database, FileUpdateMonitor fileMonitor, TaskExecutor taskExecutor, DialogService dialogService, PreferencesService preferencesService, LibraryTab.DatabaseNotification notificationPane, UndoManager undoManager, StateManager stateManager)

Method Detail

addListenerback to summary
public void addListener(DatabaseChangeListener listener)
fileUpdatedback to summary
public void fileUpdated()

Implements org.jabref.model.util.FileUpdateListener.fileUpdated.

Doc from org.jabref.model.util.FileUpdateListener.fileUpdated.

The file has been updated. A new call will not result until the file has been modified again.

Annotations
@Override
notifyOnChangeback to summary
private void notifyOnChange(List<DatabaseChange> changes)
unregisterback to summary
public void unregister()