VirtualFile from full path on disk

I'm working on a plugin where one of the features is to open a referenced file from within another file. I am able to get the filename to open from the current editor, and the path to the parent directory using:


Now, I need to open the file referenced by the combination of the parent directory and the filename (i.e. new File(path, fileName)).

Any pointers for this?

Thanks!

Todd Breiholz

0
4 comments

Hello Todd,

TB> Now, I need to open the file referenced by the combination of the
TB> parent directory and the filename (i.e. new File(path, fileName)).

Posted here
http://www.intellij.org/twiki/bin/view/Main/PluginDevelopmentHowTo00004

Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru


0

Awesome!

Thanks, Alexey.

Todd Breiholz

0

seems like the link is broken

0

This link is broken :(

0

Please sign in to leave a comment.