Listening for file changes
Is there anyway to listen for file changes after idea synchronizes them ?
For my perforce plugin I am trying to get the file status from the server.
For that I need to do some amount of caching, otherwise the UI gets really
really slow. However I would like to flush the cache when any change on the
file is noticed. The change could be from IDEA or outside.
I tried to listen to the VirtualFileListener.propertyChanged event, however
does not look like thats very reliable. Sometimes when I sync the files with
repository that event does not fire.
How is it done in other vcs plugins ?
Thanks in advance,
-Dash.
Please sign in to leave a comment.
propertyChanged() works only when name or writable status changes. Use contentsChanged()
Debabrata Dash wrote:
--
Erb
==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================
Thanks Erb, that did the trick.
-Dash.
"Erb" <dont@evenbother.com> wrote in message
news:bnr82q$dk8$1@is.intellij.net...
contentsChanged()
>
>
?
server.
really
the
however
with
>
>
>
>