Get map selected in DITA Map Manager through API?

Post here questions and problems related to oXygen frameworks/document types.
Patrik
Posts: 216
Location: Hamburg/Germany

Get map selected in DITA Map Manager through API?

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: 5221

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

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: 216
Location: Hamburg/Germany

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

Thu Sep 22, 2016 11:05 am

That works fine, thanks.
Patrik

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests