This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 201005192201 ] [ JDK VERSION : 1.6.20 ] - run project - save output as output1.txt - run project (output should be different, at least on: (total time: yy seconds) - save output as output2.txt - open diff output1.txt to output2.txt - run project (output should be different, at least on: (total time: zz seconds) - save output as output1.txt (acknowledge overwrite) --> diff view is not updated by modified output1.txt - click Refresh in diff view --> diff view is not updated by modified output1.txt - change focus to other application - change focus to NB IDE --> diff view now is updated by modified output1.txt
No FS event is fired when the Save As action from Output window finishes. Could FileUtil.refreshFor be called when the action ends? That would probably resolve the problem.
Yes, FileUtil.refreshFor() solves the problem.
Fixed by changeset: 187453:d15e9e79a946 http://hg.netbeans.org/main/rev/d15e9e79a946
Is this really necessary still in NB 7.0? If native FS listeners are working there should be no need to call FileUtil.refreshFor.
Integrated into 'main-golden', will be available in build *201101280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d15e9e79a946 User: mentlicher@netbeans.org Log: #187163 Refresh the filesystem after save so that the output file is refreshed if it's opened in NetBeans.