How to get current file path?

Jeffrey
Posts: 2

How to get current file path?

Sat Mar 24, 2012 4:00 am

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
Radu
Posts: 5223

Re: How to get current file path?

Mon Mar 26, 2012 10:19 am

Hi Jeffrey,

The method you are looking for is this one:

Code: Select all

AuthorAccess authorAccess = ...;
URL currentEditorLocation = authorAccess.getEditorAccess().getEditorLocation()


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Jeffrey
Posts: 2

Re: How to get current file path?

Mon Mar 26, 2012 9:07 pm

Great, I will give a try then. Thanks.

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 1 guest