Package org.omegat.gui.scripting
Class ScriptsMonitor
- java.lang.Object
-
- org.omegat.gui.scripting.ScriptsMonitor
-
- All Implemented Interfaces:
DirectoryMonitor.Callback
,DirectoryMonitor.DirectoryCallback
public class ScriptsMonitor extends java.lang.Object implements DirectoryMonitor.DirectoryCallback, DirectoryMonitor.Callback
Monitor to check changes in the script directory.
-
-
Constructor Summary
Constructors Constructor Description ScriptsMonitor(ScriptingWindow scriptingWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
directoryChanged(java.io.File file)
Called once for every directory where a file was changed - created, modified, deleted.void
fileChanged(java.io.File file)
Executed on file changed.void
start(java.io.File scriptDir)
void
stop()
-
-
-
Constructor Detail
-
ScriptsMonitor
public ScriptsMonitor(ScriptingWindow scriptingWindow)
-
-
Method Detail
-
start
public void start(java.io.File scriptDir)
-
stop
public void stop()
-
fileChanged
public void fileChanged(java.io.File file)
Executed on file changed.- Specified by:
fileChanged
in interfaceDirectoryMonitor.Callback
-
directoryChanged
public void directoryChanged(java.io.File file)
Description copied from interface:DirectoryMonitor.DirectoryCallback
Called once for every directory where a file was changed - created, modified, deleted.- Specified by:
directoryChanged
in interfaceDirectoryMonitor.DirectoryCallback
-
-