Forcing a prefresh of the project view, or simpler ??


In some cases, the project view tree (PVT) doesn't refresh its view soon
enough. Can we force it?

Use case:
step 1:
In a modal dialog (DialogWrapper..), I create a file, and load it
into a virtual file with
return LocalFileSystem.getInstance
().refreshAndFindFileByIoFile (f);
problem: the PVT doesn't show the new file yet.
step 2:
The user presses escape => cancel => the new file appears in the PVT.

Question: is there a way to force the PVT to refresh sooner (ie, in step
1, while the modal dialog is still showing, rather than after step 2).


Please sign in to leave a comment.