Author Extension - List open files?

Oxygen general issues.
todji
Posts: 3
Joined: Thu Oct 07, 2010 8:08 pm

Author Extension - List open files?

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

Re: Author Extension - List open files?

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
todji
Posts: 3
Joined: Thu Oct 07, 2010 8:08 pm

Re: Author Extension - List open files?

Post by todji »

Thanks for the input. I'm looking forward to trying it out when I get back to that project.
Post Reply