|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the interface for finding and replacing strings.
| Method Summary | |
boolean |
canPerformFind()
Returns whether a find operation can be performed. |
int |
findAndSelect(int offset,
String findString,
boolean searchForward,
boolean caseSensitive,
boolean wholeWord)
Searches for a string starting at the given offset and using the specified search directives. |
Point |
getSelection()
Returns the currently selected range of characters as a offset and length. |
String |
getSelectionText()
Returns the currently selected characters as a string. |
boolean |
isEditable()
Returns whether this target can be modified. |
void |
replaceSelection(String text)
Replaces the currently selected range of characters with the given text. |
| Method Detail |
public boolean canPerformFind()
public int findAndSelect(int offset,
String findString,
boolean searchForward,
boolean caseSensitive,
boolean wholeWord)
offset - the offset at which searching startsfindString - the string which should be foundsearchForward - true searches forward, false backwardscaseSensitive - true performes a case sensitve search, false an insensitive searchwholeWord - if true only occurences are reported in which the findString stands as a word by itself
public Point getSelection()
public String getSelectionText()
public boolean isEditable()
true if target can be modifiedpublic void replaceSelection(String text)
text - the substitution text
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||