This plugin type can be applied only to an XML
document. It can modify the current document which 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:
- The interface DocumentPluginExtension - Receives the context object
containing the current document in order to be processed. The
process(GeneralPluginContext) method can return a
DocumentPluginResult object containing a new document.
- The DocumentPluginContext object represents the context. It provides
three methods:
- getDocument() - Returns a
javax.swing.text.Document object that represents the current
document.
- getFrame() - Returns a java.awt.Frame object that
represents the currently editing frame.
- getPluginWorkspace() - Returns access to the application
workspace.