How to Refresh Project Tool Window

Hi, it's me again.

I have a folder in project tree:
forum5.jpg

And I can generate an xml in ChangeLog folder. But I can't see generated xml files until I clicked on ChangeLog folder and re-open it. It triggers my BunkFileListener, so I need to auto-refresh for Project Tool Window or at least ChangeLog folder.

Is there a way to do it in code or is it a bug or something?

2 comments
Comment actions Permalink

You need to refresh the virtual file system. VirtualFileManager.getInstance().asyncRefresh(null) is the easiest way to do that.

0
Comment actions Permalink

Thanks for the reply, it worked.


0

Please sign in to leave a comment.