Search in sources :

Example 1 with FindReplace

use of org.rstudio.studio.client.workbench.views.source.editors.text.findreplace.FindReplace 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());
    }
}
Also used : FindReplace(org.rstudio.studio.client.workbench.views.source.editors.text.findreplace.FindReplace) ClickHandler(com.google.gwt.event.dom.client.ClickHandler) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) FindReplaceBar(org.rstudio.studio.client.workbench.views.source.editors.text.findreplace.FindReplaceBar)

Aggregations

ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 FindReplace (org.rstudio.studio.client.workbench.views.source.editors.text.findreplace.FindReplace)1 FindReplaceBar (org.rstudio.studio.client.workbench.views.source.editors.text.findreplace.FindReplaceBar)1