| java.lang.Object workbench.gui.editor.SearchAndReplace
SearchAndReplace | public class SearchAndReplace implements Replaceable,Searchable(Code) | | This class offeres Search & Replace for a TextContainer
author: support@sql-workbench.net |
Method Summary | |
public int | find() Show the find dialog and start searching. | public int | findFirst(String aValue, boolean ignoreCase, boolean wholeWord, boolean useRegex) | public int | findNext() | public int | findText(String anExpression, boolean ignoreCase) | public int | findText(String anExpression, boolean ignoreCase, boolean wholeWord, boolean useRegex) | final public static String | fixSpecialReplacementChars(String input, boolean useRegex) Replace special characters in the input string so that it can be used
as a replacement using regular expressions. | public FindAction | getFindAction() | public FindAgainAction | getFindAgainAction() | public ReplaceAction | getReplaceAction() | final public static String | getSearchExpression(String anExpression, boolean ignoreCase, boolean wholeWord, boolean useRegex) | public boolean | isCurrentSearchCriteria(String aValue, boolean ignoreCase, boolean wholeWord, boolean useRegex) | public boolean | isTextSelected() | public void | replace() | public int | replaceAll(String value, String replacement, boolean selectedText, boolean ignoreCase, boolean wholeWord, boolean useRegex) | public boolean | replaceCurrent(String replacement, boolean useRegex) | public boolean | replaceNext(String aReplacement, boolean useRegex) | public boolean | searchPatternMatchesSelectedText() |
SearchAndReplace | public SearchAndReplace(Container parentContainer, TextContainer text)(Code) | | Create a new SearchAndReplace support.
Parameters: parentContainer - the parent of the textcontainer, needed for displaying dialogs Parameters: text - the container holding the text |
find | public int find()(Code) | | Show the find dialog and start searching.
-1 if nothing was found, the position of the found text otherwise |
findFirst | public int findFirst(String aValue, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | |
findNext | public int findNext()(Code) | | |
findText | public int findText(String anExpression, boolean ignoreCase)(Code) | | |
findText | public int findText(String anExpression, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | |
fixSpecialReplacementChars | final public static String fixSpecialReplacementChars(String input, boolean useRegex)(Code) | | Replace special characters in the input string so that it can be used
as a replacement using regular expressions.
|
getSearchExpression | final public static String getSearchExpression(String anExpression, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | |
isCurrentSearchCriteria | public boolean isCurrentSearchCriteria(String aValue, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | |
isTextSelected | public boolean isTextSelected()(Code) | | |
replace | public void replace()(Code) | | |
replaceAll | public int replaceAll(String value, String replacement, boolean selectedText, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | |
replaceCurrent | public boolean replaceCurrent(String replacement, boolean useRegex)(Code) | | |
replaceNext | public boolean replaceNext(String aReplacement, boolean useRegex)(Code) | | Find and replace the next occurance of the current search string
|
searchPatternMatchesSelectedText | public boolean searchPatternMatchesSelectedText()(Code) | | |
|
|