PatchEdit.setEnabled(table.getSelectedRowCount() > 0 && myPatch.getDriver().hasEditor(), Actions.EN_EDIT);
Actions.setEnabled(table.getSelectedRowCount() > 0 && myPatch.getDriver().hasEditor(), Actions.EN_EDIT);
    private void enableActions() {	PatchEdit.setEnabled(table.getRowCount() > 0,			     Actions.EN_SAVE			     | Actions.EN_SAVE_AS			     | Actions.EN_SEARCH);	PatchEdit.setEnabled(table.getRowCount() > 1,			     Actions.EN_SORT			     | Actions.EN_DELETE_DUPLICATES);	// Why don't we select select at relase one item?	PatchEdit.setEnabled(table.getSelectedRowCount() > 0,			     Actions.EN_COPY			     | Actions.EN_CUT			     | Actions.EN_DELETE			     | Actions.EN_EXPORT			     | Actions.EN_EXTRACT			     | Actions.EN_PLAY			     | Actions.EN_SEND			     | Actions.EN_STORE);	// All entries are of the same type, so we can check the first one....	Patch myPatch = myModel.getPatchAt(0, 0);	PatchEdit.setEnabled(table.getSelectedRowCount() > 0			     && myPatch.getDriver().hasEditor(),			     Actions.EN_EDIT);    }