private void canEditCheck(){
  canEdit=!profile.isCommonProfile();
  if (!canEdit) {
    addButton.setEnabled(false);
    removeButton.setEnabled(false);
  }
}

private void canEditCheck ( ) { canEdit = ! profile . isCommonProfile ( ) ; if ( ! canEdit ) { addButton . setEnabled ( false ) ; removeButton . setEnabled ( false ) ; } }
executes the can edit check .
