7856 Public method to add a file to the list of monitored files. |
7856 Public method to add a file to the list of monitored files. |
7857 |
7857 |
7858 @param filePath path of the file to be added |
7858 @param filePath path of the file to be added |
7859 @type str |
7859 @type str |
7860 """ |
7860 """ |
7861 # TODO: not yet implemented |
|
7862 if filePath: |
7861 if filePath: |
7863 self.__watcher.addPath(filePath) |
7862 self.__watcher.addPath(filePath) |
7864 |
7863 |
7865 def removeWatchedFilePath(self, filePath): |
7864 def removeWatchedFilePath(self, filePath): |
7866 """ |
7865 """ |
7867 Public method to remove a file from the list of monitored files. |
7866 Public method to remove a file from the list of monitored files. |
7868 |
7867 |
7869 @param filePath path of the file to be removed |
7868 @param filePath path of the file to be removed |
7870 @type str |
7869 @type str |
7871 """ |
7870 """ |
7872 # TODO: not yet implemented |
|
7873 if self.getOpenEditorCount(filePath) == 0: |
7871 if self.getOpenEditorCount(filePath) == 0: |
7874 self.__watcher.removePath(filePath) |
7872 self.__watcher.removePath(filePath) |
7875 |
7873 |
7876 ################################################################## |
7874 ################################################################## |
7877 ## Below are protected utility methods |
7875 ## Below are protected utility methods |