use of org.rstudio.studio.client.workbench.views.source.editors.text.findreplace.FindReplaceBar in project rstudio by rstudio.
the class TextEditingTargetFindReplace method ensureFindReplaceBar.
private void ensureFindReplaceBar(boolean defaultForward) {
if (findReplaceBar_ == null) {
findReplaceBar_ = new FindReplaceBar(showReplace_, defaultForward);
findReplace_ = new FindReplace(container_.getEditor(), findReplaceBar_, RStudioGinjector.INSTANCE.getGlobalDisplay(), showReplace_);
container_.insertFindReplace(findReplaceBar_);
findReplaceBar_.getCloseButton().addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
hideFindReplace();
}
});
findReplaceButton_.setLeftImage(FindReplaceBar.getFindLatchedIcon());
}
}
Aggregations