fun enableConfirmButtons() { confirmChangesButton.setToolTipText(SymbolicProgBundle.getMessage("TipConfirmChangesSheet")) confirmAllButton.setToolTipText(SymbolicProgBundle.getMessage("TipConfirmAllSheet")) if (_cvModel.getProgrammer() != null && !_cvModel.getProgrammer().getCanRead()) { confirmChangesButton.setEnabled(false) confirmAllButton.setEnabled(false) confirmChangesButton.setToolTipText(SymbolicProgBundle.getMessage("TipNoRead")) confirmAllButton.setToolTipText(SymbolicProgBundle.getMessage("TipNoRead")) } else { confirmChangesButton.setEnabled(true) confirmAllButton.setEnabled(true) } }
Enable the compare all and compare changes button if possible . This checks to make sure this is appropriate , given the attached programmer 's capability .