SelectionPluginExtension
- This interface is intended for
selection processing plugins. A selection plugin can be applied to both an XML document
and a non XML document. It works as follows: the user makes a selection in the editor and
then goes to the contextual menu and selects from the Plugins section
the corresponding entry. The context containing the selection is passed to the extension
and the processed result is going to replace the initial selection.
The context is represented by an SelectionPluginContext
object,
this provides two methods:
getSelection()
- String
-
returns the current selection of text.
getFrame()
- Frame
- returns the
currently editing frame.
The process method must return a
SelectionPluginResult
object which contains the result of the
processing.