| workbench.interfaces.Replaceable
All known Subclasses: workbench.gui.editor.SearchAndReplace, workbench.gui.components.TableReplacer,
Replaceable | public interface Replaceable (Code) | | author: support@sql-workbench.net |
Method Summary | |
int | findFirst(String aValue, boolean ignoreCase, boolean wholeWord, boolean useRegex) | int | findNext() Find and highlight the next occurance of the expression
initially found with findFirst()
If findFirst() has not been called before, -1 should be returned. | boolean | isTextSelected() | void | replace() | int | replaceAll(String value, String replacement, boolean selectedText, boolean ignoreCase, boolean wholeWord, boolean useRegex) Find and replace all occurances of the given value
with replacement. | boolean | replaceCurrent(String aReplacement, boolean useRegex) | boolean | replaceNext(String aReplacement, boolean useRegex) Find and replace the next occurance. |
findFirst | int findFirst(String aValue, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | Find and highlight the first occurance of the String
true if an occurance was found |
findNext | int findNext()(Code) | | Find and highlight the next occurance of the expression
initially found with findFirst()
If findFirst() has not been called before, -1 should be returned.
|
isTextSelected | boolean isTextSelected()(Code) | | |
replace | void replace()(Code) | | Initiate the replace Dialog
|
replaceAll | int replaceAll(String value, String replacement, boolean selectedText, boolean ignoreCase, boolean wholeWord, boolean useRegex)(Code) | | Find and replace all occurances of the given value
with replacement.
the number of occurances replaced |
replaceCurrent | boolean replaceCurrent(String aReplacement, boolean useRegex)(Code) | | Replace the currently highlighted (=found) text with the given value
|
replaceNext | boolean replaceNext(String aReplacement, boolean useRegex)(Code) | | Find and replace the next occurance.
Only valid if findFirst() was called.
true if an occurance was found |
|
|