Finding ditamap integrated in main file

Post here questions and problems related to oXygen frameworks/document types.
tmakita
Posts: 100
Joined: Fri Apr 08, 2011 7:58 am

Finding ditamap integrated in main file

Post by tmakita »

I'm developing custom element insertion extension Java program via Oxygen frame work. The extension works only for topics that have customized public identifiers.
In this extension, I want to access ditamap file integrated in project's main file. Is it possible in the AuthorAccess interface described in the following URL?
https://www.oxygenxml.com/InstData/Edit ... ccess.html
Thanks for your help!
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Finding ditamap integrated in main file

Post by Radu »

Hi,

In the DITA Maps Manager view there is a "Context" combo box which points to a root DITA Map.
You can use the API "ro.sync.ecss.dita.DITAAccess.getRootMapURL()" to access the root map listed there.
We also have the API:
((StandalonePluginWorkspace)PluginWorkspaceProvider.getPluginWorkspace()).getProjectManager().getMainFileResourcesIterator()
if you want to iterate through all "Main Files" referenced in the "Main Files" folder.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tmakita
Posts: 100
Joined: Fri Apr 08, 2011 7:58 am

Re: Finding ditamap integrated in main file

Post by tmakita »

Thank you for your quick reply!
> You can use the API "ro.sync.ecss.dita.DITAAccess.getRootMapURL()" to access the root map listed there.
I got it.
I also found the source code written by my colleague that use this API.
Much appreciated.
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Post Reply