VirtualFileAdapter

My class overrides contentsChanged() method of VirtualFileAdapter. When I save file, this method is called twice. Can somebody tell me why ?.

Thanks.
MSDoni

2 comments

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!"


0

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.

0

Please sign in to leave a comment.