How to Refresh Project Tool Window

Hi, it's me again.

I have a folder in project tree:

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?

Comment actions Permalink

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

Comment actions Permalink

Thanks for the reply, it worked.


Please sign in to leave a comment.