Using Plugins with the Oxygen XML Author Component
To bundle Workspace Access plugins, that are developed for standalone application with the Oxygen XML Author Component, follow these steps:
- The
bundle-pluginsmodule must contain the additional plugin directories in thedropinssubdirectory. The content must also contain aplugin.dtdfile. Copy theplugin.dtdfile from an[OXYGEN_INSTALL_DIR]\pluginsfolder. - In the class that instantiates the
AuthorComponentFactory, for example thero.sync.ecss.samples.AuthorComponentSampleclass, call the methodsAuthorComponentFactory.getPluginToolbarCustomizers(),AuthorComponentFactory.getPluginViewCustomizers()andAuthorComponentFactory.getMenubarCustomizers(), obtain the customizers that have been added by the plugins and call them to obtain the custom swing components that they contribute. There is a commented-out example for this in theAuthorComponentSample.reconfigureActionsToolbar()method for adding the toolbar from the Acrolinx plugin.
Important
As the Oxygen XML Author Component is just a subset of the entire
application, there is no guarantee that all the functionality of the plugin works.