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.
One way to fix issue 168237 is to keep all FileObjects in memory to guarantee external changes will be notified. However there can be a lot of FileObjects and keeping them all in memory could be too resource consuming. But it would be enough to keep just folders! They receive events for changes made in children, so keeping folders might be enough. They even detect additions are removals of children done externally. However there is one problem, external touch is not detected. I am going to attach test to demonstrate the problem. Just the first test is failing, the other tests (for create and delete) work.
Created attachment 86512 [details] The test
Created attachment 86516 [details] Possible implementation
Not really needed by itself. Better to implement addRecursiveListener, as proposed in issue 170862.