How to refresh the project tree in the project view window

I have written my FileDropHandler and want the project view window to be updated with the new file.

I’ve tried VfsUtil.markDirtyAndRefresh, VirtualFile.refresh… but couldn’t get it to work.

I have now discovered that the Project view updates automatically,

However; only the files without the .extension is displayed.

Is there a filter I should create?

I had mistakenly included TextOnlyTreeStructureProvider in my code.
When I removed it everything worked fine.