How to get a plugins root directory? Follow
Hi Guys,
Another query about my Spell Checker progress / API usage.. I need to
be able to offer users the option to select a dictionary file and be able
to let them add new dict files for use later.. It seems I'll have to move
from a single Jar plugin to an expand zip into plugins folder kind.
Following that train of thought I was intending on putting the dict files
into the root of the spell checker plugins folder - then I noticed IDEA has
it's own Virtual File System..
So my query is how do I get the directory of my plugin?
Is this the best method for providing user/modifiable external resources?
Any hints on retrieving the list of files therein and returning an
inputstream/file object from the selected file / VFS would also help speed
things along nicely..
Thanks
Richard
Please sign in to leave a comment.
It would also help me a lot to know an answer to these questions?
Thanks,
Holger
I didn't try it, but com.intellij.openapi.application.PathManager#getPluginsPath should be a start