2 comments

LocalFileSystem.getInstance().findFileByIoFile(File file) (if the file
already exists in VFS)
or LocalFileSystem.getInstance().refreshAndFindFileByIoFile(File file)

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Dragon" <jbuilder@vip.sina.com> wrote in message
news:c31noc$89q$1@is.intellij.net...

this File(a java class) is in a Project

>
>


0

Dragon wrote:

this File(a java class) is in a Project


use LocalFileSystem.refreshAndFindFileByIOFile() or
LocalFileSystem.findFileByIOFile()

(the file does not have to be in project).

Friendly,
Dmitry

--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.