PatchEditorFrame pf = (PatchEditorFrame) (p.getDriver().editPatch(p));
PatchEditorFrame pf = (PatchEditorFrame) p.edit();
    public JSLFrame editSelectedPatch() {        if (!checkSelected()) return null;        IPatch p = getSelectedPatch();        if (p == null) {	    ErrorMsg.reportError("Error", "That patch is blank.");	    return null;	}        PatchEditorFrame pf = (PatchEditorFrame) (p.getDriver().editPatch(p));        pf.setBankEditorInformation(this, table.getSelectedRow(), table.getSelectedColumn());        return pf;    }