(code)
| 237 | code.focus(); |
| 238 | } |
| 239 | onDirectoryChanged(code) { |
| 240 | let data = this.data; |
| 241 | let path = data.path; |
| 242 | let info = system.getFileInfo(path); |
| 243 | if (info) { |
| 244 | if (this.info.date == info.date) |
| 245 | return; |
| 246 | this.info = info; |
| 247 | this.onStateChanging(code); |
| 248 | this.onFileChanged(code) |
| 249 | this.onStateChanged(code, data.state); |
| 250 | } |
| 251 | else { |
| 252 | model.doCloseFile(); |
| 253 | } |
| 254 | } |
| 255 | onFileChanged(code) { |
| 256 | var path = this.data.path; |
| 257 | code.stop(); |
no test coverage detected