m> My class overrides contentsChanged() method of VirtualFileAdapter. m> When I save file, this method is called twice. Can somebody tell me m> why ?.
We can't guarantee any particular sequence of calls for VirtualFileListener events, so you shouldn't rely on the method being called once after any operation.
No, that should not happen. The event should not come twice with the same file timestamp. I would really want to know the circumstances under which this happens.
Hello msdoni,
m> My class overrides contentsChanged() method of VirtualFileAdapter.
m> When I save file, this method is called twice. Can somebody tell me
m> why ?.
We can't guarantee any particular sequence of calls for VirtualFileListener
events, so you shouldn't rely on the method being called once after any operation.
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
No, that should not happen. The event should not come twice with the same file timestamp. I would really want to know the circumstances under which this happens.