60. searchReplace
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 60. searchReplace

Parameter syntax:

    [ search|searchBackwards|replace|replaceBackwards|
      findAgain|findAgainBackwards ]?

Displays a modal dialog box which allows to search and replace text in the document being edited (same as the Search tool in XMLmind XML Editor).

search

  Displays the dialog box configured to be used for a text search from caret position to end of document.

searchBackwards

  Displays the dialog box configured to be used for a text search from caret position to beginning of document.

replace

  Displays the dialog box configured to be used for a search/replace operation from caret position to end of document.

replaceBackwards

  Displays the dialog box configured to be used for a search/replace operation from caret position to beginning of document.

findAgain

  The dialog box is not displayed. Repeats last text search from caret position to end of document.

findAgainBackwards

  The dialog box is not displayed. Repeats last text search from caret position to beginning of document.

Without a parameter, the state of the dialog box is not changed. That is, the displayed dialog box is configured as it was the last time it has been used.

This command has been added mainly to allow simple XML editors built using XXE components (that is, not XXE itself) to have the same facilities than XXE.

Prev | Up | Next
59. search | Home | 61. selectAt