update VirtualFileSystem.refreshAndFindFileByPath javadoc

This commit is contained in:
peter
2015-05-17 09:40:23 +02:00
parent e2b9cb2dc3
commit fac26d1c7e
@@ -89,8 +89,9 @@ public abstract class VirtualFileSystem {
* This method is useful when the file was created externally and you need to find <code>{@link VirtualFile}</code>
* corresponding to it.<p>
* <p/>
* This method should be only called within write-action.
* See {@link Application#runWriteAction}.
* If this method is invoked not from Swing event dispatch thread, then it must not happen inside a read action. The reason is that
* then the method call won't return until proper VFS events are fired, which happens on Swing thread and in write action. So invoking
* this method in a read action would result in a deadlock.
*
* @param path the path
* @return <code>{@link VirtualFile}</code> if the file was found, <code>null</code> otherwise