updatePermissionsPanelWithNewEntity();
buttons.update();
}
private void updatePermissionsPanelWithNewEntity() {
ServerItem selectedUserOrGroup = usersPanel.getSelectedUserOrGroup();
if ((displayedEntity == null) || (selectedUserOrGroup == null)) {
permissionsPanel.clear();
} else {
permissionsPanel.update(selectedUserOrGroup, cache.getPermissions(selectedUserOrGroup));
}