Menu

#121 Monitor external files

v1.1.x
closed
None
v1.1.0
Change Request
2017-02-15
2017-01-22
Erik Hänel
No

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.

Discussion

  • Erik Hänel

    Erik Hänel - 2017-01-22
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2017-01-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     Files, which aren't located in the program's default paths, aren't monitored for external changes. Add this behavior.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2017-01-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     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:**
    
     
  • Erik Hänel

    Erik Hänel - 2017-01-29
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2017-01-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,9 @@
     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:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2017-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     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.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB