How to invoke Synchronize from PSI

In my plugin I provide an option to remove file from the project. That works fine, but the project source tree remains unchanged until synchronize runs either from menu or on next scheduled synchro event. Is it possible (I guess so) to invoke that from plugin code?

Thanks for any idea!

Pavlin

2 comments

May be it's VirtualFile.refresh(boolean asynchronous, boolean recursive)

TIA,
Dmitry

0

Dmitry Kashin wrote:

May be it's VirtualFile.refresh(boolean asynchronous, boolean recursive)

TIA,
Dmitry


Basically, yes. Search for a whole lot of 'refresh' methods in
VirtualFileManager and friends.

Friendly,
Dmitry

--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.