Page 1 of 1

How to get current file path?

Posted: Sat Mar 24, 2012 4:00 am
by Jeffrey
Hi There,

I'm trying to add a new menu for DocBook5. How can I get current file path from API? Looks like AuthorAccess doesn't have related function. Thanks.

- Jeffrey

Re: How to get current file path?

Posted: Mon Mar 26, 2012 10:19 am
by Radu
Hi Jeffrey,

The method you are looking for is this one:

Code: Select all

AuthorAccess authorAccess = ...;
URL currentEditorLocation = authorAccess.getEditorAccess().getEditorLocation()
Regards,
Radu

Re: How to get current file path?

Posted: Mon Mar 26, 2012 9:07 pm
by Jeffrey
Great, I will give a try then. Thanks.