The FindHighlightPlugin provides support for finding
and highlighting occurrences of text. Highlights are added to the
editor pane for the given search text, and maintained across document
modifications until the next find is issued, or until clients
clear them explicitly.

To use this plugin, install it into the editor pane by calling
installPlugin()
on the BasicEditorPane. Once it is installed, you can
use the plugin by just calling findText() with the appropriate parameters.

deinstall(BasicEditorPane editor)
Called when the plugin is being removed from the BasicEditorPane
(for example when the editor is closed.) This is used to notify
plugins that they should unregister any listeners that were
attached.

int

findText(java.lang.String searchText,
int startOffset,
boolean searchForward,
boolean matchCase,
boolean wrapAround,
boolean highlightOccurrences)
This is the public entrypoint for users of this plugin for the find
operation.

int

findText(java.lang.String searchText,
int startOffset,
boolean searchForward,
boolean matchCase,
boolean wrapAround,
boolean wholeWordOnly,
boolean highlightOccurrences)
This is the public entrypoint for users of this plugin for the find
operation.

findText

This is the public entrypoint for users of this plugin for the find
operation. To do a "Find next..." type operation, make sure to
specify the appropriate start offset. If wrapAround is requested,
it will start at the beginning of the document as well and search
until startOffset. If highlightOccurrences is true, it will enable
find occurrence highlighting, otherwise, it will disable it. Note
that this will disable whole-word only matching.

findText

This is the public entrypoint for users of this plugin for the find
operation. To do a "Find next..." type operation, make sure to
specify the appropriate start offset. If wrapAround is requested,
it will start at the beginning of the document as well and search
until startOffset. If wholeWordOnly is requested, it will match
only whole words. If highlightOccurrences is true, it will enable
find occurrence highlighting, otherwise, it will disable it.