Page 1 of 1

Author Extension - List open files?

Posted: Mon Oct 18, 2010 9:16 pm
by todji
I'm trying to create and extension in java to post DITA files from Oxygen up to a data base via a web service. Is there a way I can get a list of the documents that are open in Oxygen? What about in the DITA Map Manager?

Re: Author Extension - List open files?

Posted: Tue Oct 19, 2010 9:13 am
by Radu
Hi,

For the Oxygen standalone edition we have a set of sample plugins available here (+ JavaDoc and PDF documentation):
http://www.oxygenxml.com/developer.html#Plugins

An Oxygen plugin is usually installed by copying it to the "OXYGEN_INSTALL_DIR/plugins" directory.

The type of sample plugin you should look into is the Workspace Access plugin.
In this type of plugin you get access to a StandalonePluginWorkspace which contains methods like:

Code: Select all


  /**
* Get all the editor locations.
*
* @param editingArea One of the constants in this class:
* <br>
* {@link #MAIN_EDITING_AREA} - for the editors in the main Oxygen workspace area.
* <br>
* {@link #DITA_MAPS_EDITING_AREA} - for the editors in the DITA Maps Manager view workspace area.
* <br>
* @return All the editor locations or empty array if no editor is opened
*/
URL[] getAllEditorLocations(int editingArea);
This type of plugin also allows you to add your own actions to the toolbar and main menu.

Regards,
Radu

Re: Author Extension - List open files?

Posted: Wed Nov 10, 2010 11:01 pm
by todji
Thanks for the input. I'm looking forward to trying it out when I get back to that project.