ElementIds.assignElementId(panel.getElement(),
ElementIds.FIND_REPLACE_BAR);
HorizontalPanel findReplacePanel = new HorizontalPanel();
findReplacePanel.addStyleName(RES.styles().findPanel());
findReplacePanel.add(txtFind_ = new FindTextBox("Find"));
txtFind_.setIconVisible(true);
Commands cmds = RStudioGinjector.INSTANCE.getCommands();
findReplacePanel.add(btnFindNext_ = new SmallButton(cmds.findNext()));
findReplacePanel.add(btnFindPrev_ = new SmallButton(cmds.findPrevious()));
findReplacePanel.add(txtReplace_ = new FindTextBox("Replace"));
txtReplace_.addStyleName(RES.styles().replaceTextBox());
findReplacePanel.add(btnReplace_ = new SmallButton(cmds.replaceAndFind()));
findReplacePanel.add(btnReplaceAll_ = new SmallButton("All"));
panel.add(findReplacePanel);