|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension interface for IFindReplaceTarget.
Introduces the concepts of find/replace sessions, searching in a limiting scope and a replace-all mode.
If a scope is set, findAndSelect is limited to the scope. Occurrences outside of the scope are not considered.
Method Summary | |
void | beginSession()
Indicates that a session with the target begins. |
void | endSession()
Indicates that a session with the target ends. |
Point | getLineSelection()
Returns the currently selected range of lines as a offset and length. |
IRegion | getScope()
Returns the find scope of the target, null for global scope. |
void | setReplaceAllMode(boolean replaceAll)
Sets the target's replace-all mode. |
void | setScope(IRegion scope)
Sets the find scope of the target to operate on. |
void | setScopeHighlightColor(Color color)
Sets the scope highlight color |
void | setSelection(int offset,
int length)
Sets a selection. |
Method Detail |
public void beginSession()
public void endSession()
public IRegion getScope()
public void setScope(IRegion scope)
public Point getLineSelection()
public void setSelection(int offset, int length)
public void setScopeHighlightColor(Color color)
public void setReplaceAllMode(boolean replaceAll)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.