Download XML Author 10.3 User Manual

Transcript
How to develop an <oXygen/> plugin
2.
Write the plugin class (the ro.sync.exml.plugin.Plugin class must be extended in order to create the
new plugin)
3.
Write the plugin extension class. It is necessary that the plugin extension for the custom protocol implements the
URLStreamHandlerPluginExtension interface. Without it, you can’t use your plugin,because <oXygen/>
will not be able to find the protocol handler.
You can choose to implement also the URLChooserPluginExtension interface. It will allow you to write
and use your own customized dialog for this protocol.
4.
Write the plugin.xml file (remember to change the name of the plugin class to the one from the second step and
the plugin extension class name with the one you have chosen at step 3)
5.
Create a .jar archive and install your new plugin.
Installing the plugin
In the directory where <oXygen/> is installed there exists a directory called plugins. This contains all the available
plugins. In order for <oXygen/> to use the new functionality you provided follow the next steps:
1.
In the directory plugins create a new directory, generally named after your plugin. For instance in the uppercase
plugin example this can be Uppercase.
2.
Put in this new folder the plugin descriptor file, "plugin.xml" and the plugin files.
3.
Restart <oXygen/> and try your plugin.
458