Persist User Data on a Virtual File
I need to know when a filre has changed while IntelliJ was down. I use a UserData on the Virtual File but that is not restored after a restart. Then I tried to use the BulkFileListener but I don't receive an update during the initial refresh.
So is there a way to psersist user data on a virtual file so that I can detect a change when IntelliJ / Plugin is restarted? Or is there a way to discover changes on a file when the IntelliJ is restarted?
- Andy
Please sign in to leave a comment.
You can persist arbitrary data using com.intellij.openapi.vfs.newvfs.FileAttribute.
Thanks that did the trick. If anybody needs to know how I did it this is the code: