Get map selected in DITA Map Manager through API?

Post here questions and problems related to oXygen frameworks/document types.
Patrik
Posts: 236
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Get map selected in DITA Map Manager through API?

Post by Patrik » Wed Sep 21, 2016 1:06 pm

I have a custom extension bundle with my own LinkTextResolver instance. Now I'd like to resolve some references depending on the currently selected map in the DITA Map manager - just as you do it for resolving keyrefs.

Is there a way to get access to it through the API?

Thanks and regards,
Patrik

Radu
Posts: 6566
Joined: Fri Jul 09, 2004 5:18 pm

Re: Get map selected in DITA Map Manager through API?

Post by Radu » Wed Sep 21, 2016 2:14 pm

Hi Patrik,

You can use something like:

Code: Select all

PluginWorkspaceProvider.getPluginWorkspace().getCurrentEditorAccess(PluginWorkspace.DITA_MAPS_EDITING_AREA)
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Patrik
Posts: 236
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Get map selected in DITA Map Manager through API?

Post by Patrik » Thu Sep 22, 2016 11:05 am

That works fine, thanks.
Patrik

Post Reply