Problem with refreshing the project view


I am writing a SCM plugin similar to CVS. I have extended the rename/ move functionality of IntelliJ. I am facing some problem while refreshing the project view.
When I move a file which is not under the directory of my SCM, I throw an error saying it cannot be moved and file disappears from the project view. I do call projectView.refresh() api on my project but it does not refresh the tree. If I swap the window, I can see that the file appears again in the project view.

Is there something I am missing on refresh that happens on window switch?

Can someone please provide me with some pointers?



Please sign in to leave a comment.