/* * JDocs_Search.bsh - Beanshell macro to search 0) { searchTerm = ta.getSelectedText(selections[0]); } else { searchTerm = Macros.input(view, "Please enter the item you want to search for : "); } if(searchTerm != null) { try { jEdit.getPlugin("infoviewer.InfoViewerPlugin").openURL(view, baseURL + searchTerm); } catch (MalformedURLException mu) { Macros.error(view,"Cannot find the url " + urlStr); } } /* Macro index data (in DocBook format) JDocs_Search.bsh Provides a means to search www.jdocs.com. This macros allows you to search JDocs based on a selection in the current buffer or if no selection is made, will prompt you for the item to search for. The InfoViewer plugin is used to display the results. */