Document Plugin Extension
This plugin type can only be applied to an XML document. It can modify the current document that is received as callback parameter.
The plugin is started by selecting the corresponding menu item from the contextual menu of the XML editor (Text mode), Plugins submenu. It provides the following API:
- Interface DocumentPluginExtension - Receives the context object containing the current document. The process(GeneralPluginContext) method can return a DocumentPluginResult object containing a new document.
- DocumentPluginContext object - Represents the context and
provides three methods:
- getDocument() - Returns a
javax.swing.text.Documentobject that represents the current document. - getFrame() - Returns a
java.awt.Frameobject that represents the editing frame. - getPluginWorkspace() - Returns access to the workspace of Oxygen XML Editor.
- getDocument() - Returns a