def METHOD_NAME(self, item):
    dlg = widgets.dialog.Dialog(self,
        _("Please enter a local path or a URL:"),
        app.caption("LilyPond Documentation"),
        icon = icons.get('lilypond-run'))
    urlreq = widgets.urlrequester.UrlRequester()
    urlreq.lineEdit.setCompleter(QCompleter([
        "http://lilypond.org/doc/stable/",
        "http://lilypond.org/doc/latest/",
        ], urlreq.lineEdit))
    dlg.setMainWidget(urlreq)
    urlreq.setPath(item.text())
    urlreq.setMinimumWidth(320)
    urlreq.lineEdit.setFocus()
    if dlg.exec_():
        item.setText(urlreq.path())
        return True
    return False