Get map selected in DITA Map Manager through API?

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

Get map selected in DITA Map Manager through API?

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

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: 280
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 »

That works fine, thanks.
Patrik
Post Reply