Top Description Constructors Methods
org.jabref.model.util

public Class DummyFileUpdateMonitor

extends Object
implements FileUpdateMonitor
Class Inheritance
All Implemented Interfaces
org.jabref.model.util.FileUpdateMonitor
Imports
java.nio.file.Path

This FileUpdateMonitor does nothing. Normally, you want to use org.jabref.gui.util.DefaultFileUpdateMonitor except if you don't care about updates.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addListenerForFile(Path
The file to monitor.
file
,
FileUpdateListener listener)

Implements org.jabref.model.util.FileUpdateMonitor.addListenerForFile.

Add a new file to monitor.

public boolean
isActive()

Implements org.jabref.model.util.FileUpdateMonitor.isActive.

Indicates whether the native system's file monitor has successfully started.

public void
removeListener(Path
The path to remove.
path
,
FileUpdateListener listener)

Implements org.jabref.model.util.FileUpdateMonitor.removeListener.

Removes a listener from the monitor.

public void
shutdown()

Implements org.jabref.model.util.FileUpdateMonitor.shutdown.

stops watching for changes

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DummyFileUpdateMonitorback to summary
public DummyFileUpdateMonitor()

Method Detail

addListenerForFileback to summary
public void addListenerForFile(Path file, FileUpdateListener listener)

Implements org.jabref.model.util.FileUpdateMonitor.addListenerForFile.

Doc from org.jabref.model.util.FileUpdateMonitor.addListenerForFile.

Add a new file to monitor.

Parameters
file:Path

The file to monitor.

Annotations
@Override
isActiveback to summary
public boolean isActive()

Implements org.jabref.model.util.FileUpdateMonitor.isActive.

Doc from org.jabref.model.util.FileUpdateMonitor.isActive.

Indicates whether the native system's file monitor has successfully started.

Returns:boolean

true is process is running; false otherwise.

Annotations
@Override
removeListenerback to summary
public void removeListener(Path path, FileUpdateListener listener)

Implements org.jabref.model.util.FileUpdateMonitor.removeListener.

Doc from org.jabref.model.util.FileUpdateMonitor.removeListener.

Removes a listener from the monitor.

Parameters
path:Path

The path to remove.

Annotations
@Override
shutdownback to summary
public void shutdown()

Implements org.jabref.model.util.FileUpdateMonitor.shutdown.

Doc from org.jabref.model.util.FileUpdateMonitor.shutdown.

stops watching for changes

Annotations
@Override