question: private void updateButtonsState ( ISelection selection ) { removeButton . setEnabled ( ! selection . isEmpty ( ) ) ; duplicateButton . setEnabled ( ! selection . isEmpty ( ) ) ; }
target:  Updates the state of the remove button depending on the current selection.