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-plugins
module must contain the additional plugin directories in thedropins
subdirectory. The content must also contain aplugin.dtd
file. Copy theplugin.dtd
file from an[OXYGEN_INSTALL_DIR]\plugins
folder. - In the class that instantiates the
AuthorComponentFactory
, for example thero.sync.ecss.samples.AuthorComponentSample
class, 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.