|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension interface for IFindReplaceTarget
. Extends the find replace target with
the concept of searching in a limiting scope and introduces the state of a replace-all mode.
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()
beginSession()
and endSession()
to
IFindReplaceTarget
and
IFindReplaceTargetExtension
must be embedded within calls to
beginSession()
and endSession()
.
endSession()
public void endSession()
beginSession()
public IRegion getScope()
null
for global scope.
null
public void setScope(IRegion scope)
null
indicates that the global scope should be used.
scope
- the find scope of the target, may be null
public Point getLineSelection()
public void setSelection(int offset, int length)
offset
- the offset of the selectionlength
- the length of the selectionpublic void setScopeHighlightColor(Color color)
color
- the color of the scope highlightpublic void setReplaceAllMode(boolean replaceAll)
replaceAll
- true
if this target should switch into replace-all mode,
false
if it should leave the replace-all state
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |