Files, which aren't located in the program's default paths, aren't monitored for external changes. Add this behavior.
Analysis:
The used filewatcher class doesn't support the monitoring of single files. To achieve this behavior, a custom filewatcher should be derived from the standard wxWidgets one. This custom class should simulate this behavior by monitoring the folders, where the actual files are located and identify the file events, which are related to the monitored files. Another needed functionality is the monitoring, which files need which watched directories and add or remove them to/from the base fielwatcher's paths, if necessary.
Implementation:
A new class was implemented, which is derived from wxFileSystemWatcher. As proposed by the analysis, this class adds the directory paths of the opened files to the standard watcher, while monitoring the opened files by itself.
Documentation:
Not needed. This functionality is self-documenting through the opened message box, which was present before this change.
Tests:
Functionality was tested by editing a text file in another editor, which isn't located in the watched default paths. Change was implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff: