mohitgargk/jCAE — comment on commit 7198641e0f9ac1f630c9541774eff421bdad026e
File:  line 0
By mohitgargk:

I tried with a small application. I created a Topcomponent which initialises a member object of FileObject (for a txt file) when opened. I added 2 buttons. One button updates the file using java.io.File object. The other button also updates it but using the same FileObject which was created when topcomponent was opened. I added the FIleChangeListener to the FileObject. The observation are:

1. With updation from java.io.File object, it fired the even only when user clicks on netbeans window, i.e. does a click action. If he presses the button more than once, and then performs a difference action within netbeans windows, the filechangeevent is fired only once. It also takes a few seconds, 2-3 seconds for event to happen.

2. With changes made via FileObject itself, the event is fired almost intantaneously.

3. If I made changed using gedit, saving the file does not trigger the event on netbeans windows. When I do Alt+Tab i.e. switch control from gedit to netbeans only then the event is triggered.

-------------------------------------

Anyways, After this it was clear that there is a drawback in File Systems API. I registered the netbeans source to give it a try if I can fix this. I spend some time on it, but realised it to be a overwhelming and quite time consuming task.

So I have put it on hold for some time. Meanwhile I will work on Anadel module. And push the code on git as it is progressed.