if (!checkSelected()) return null; IPatch p = getSelectedPatch(); if (p == null) { ErrorMsg.reportError("Error", "That patch is blank."); return null; } PatchEditorFrame pf = (PatchEditorFrame) p.edit(); pf.setBankEditorInformation(this, table.getSelectedRow(), table.getSelectedColumn());
PatchEditorFrame pf = (PatchEditorFrame) getSelectedPatch().edit(); pf.setBankEditorInformation(this, table.getSelectedRow(), table.getSelectedColumn());
    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.edit();        pf.setBankEditorInformation(this, table.getSelectedRow(), table.getSelectedColumn());        return pf;    }