Access to path macros from plug-ins?

How can I get at a macro value given a VirtualFile?
For example, if I want to get the value of


1 comment
Comment actions Permalink

I'm dying to know a similar thing:

How to get the equivalent of the macro value:


Please sign in to leave a comment.