by alexrussell on Tue Aug 09, 2011 9:13 am
Actually there kinda is. Jon posted this the other day (saying it's currently undocumented but he plans to bring a proper project API out so it probably won't change) but I can't remember it right now. Something like view().getProject().getFilename() or whatever seems the most logical there (haven't done any plugin programming myself so I may be way out with my guess of view().getBlahBlah()).
I can't find it searching the forum right now but I'm sure I saw it the other day!