String term = getSearchTerm(view, view.getTextArea().getSelectedText()); if(term != null) { jEdit.setProperty("ruby-ri-search-term", term);  showDialog(view, "", ri(term)); }
instance.performSearch(view);
    public static void doSearch(View view) throws IOException, InterruptedException {        String term = getSearchTerm(view, view.getTextArea().getSelectedText());        if(term != null) {            jEdit.setProperty("ruby-ri-search-term", term);    //    Macros.message(view, ri(term));            showDialog(view, "", ri(term));        }    }