Page 1 of 1

Get map selected in DITA Map Manager through API?

Posted: Wed Sep 21, 2016 1:06 pm
by Patrik
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

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

Posted: Wed Sep 21, 2016 2:14 pm
by Radu
Hi Patrik,

You can use something like:

Code: Select all

PluginWorkspaceProvider.getPluginWorkspace().getCurrentEditorAccess(PluginWorkspace.DITA_MAPS_EDITING_AREA)
Regards,
Radu

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

Posted: Thu Sep 22, 2016 11:05 am
by Patrik
That works fine, thanks.
Patrik