mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
update VirtualFileSystem.refreshAndFindFileByPath javadoc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user