Actions.EN_CROSSBREED | Actions.EN_DELETE_DUPLICATES | Actions.EN_SORT);
Actions.EN_DELETE_DUPLICATES | Actions.EN_SORT);
    void enableActions() {        // one or more patches are included.        Actions.setEnabled(table.getRowCount() > 0,                 Actions.EN_SAVE                | Actions.EN_SAVE_AS | Actions.EN_SEARCH);        // more than one patches are included.        Actions.setEnabled(table.getRowCount() > 1,                 Actions.EN_CROSSBREED                | Actions.EN_DELETE_DUPLICATES | Actions.EN_SORT);        // one or more patches are selected        Actions.setEnabled(table.getSelectedRowCount() > 0,                Actions.EN_DELETE);        // one patch is selected        Actions.setEnabled(table.getSelectedRowCount() == 1,                Actions.EN_COPY                | Actions.EN_CUT | Actions.EN_EXPORT | Actions.EN_REASSIGN                | Actions.EN_STORE | Actions.EN_UPLOAD);        // one signle patch is selected        Actions.setEnabled(table.getSelectedRowCount() == 1                && myModel.getPatchAt(table.getSelectedRow()).isSinglePatch(),                Actions.EN_SEND | Actions.EN_SEND_TO | Actions.EN_PLAY);        // one bank patch is selected        Actions.setEnabled(table.getSelectedRowCount() == 1                && myModel.getPatchAt(table.getSelectedRow()).isBankPatch(),                Actions.EN_EXTRACT);        // one patch is selected and it implements patch        Actions.setEnabled(table.getSelectedRowCount() == 1                && myModel.getPatchAt(table.getSelectedRow()).hasEditor(),                Actions.EN_EDIT);        // enable paste if the clipboard has contents.        Actions.setEnabled(Toolkit.getDefaultToolkit().getSystemClipboard()                .getContents(this) != null, Actions.EN_PASTE);    }