@Override
public void mouseClicked(MouseEvent event) {
gantt.grabFocus();
WorkPackage wp = gantt.getSelectedWorkPackage();
if (wp != null) {
Employee user = logic.getEmployee();
btnAddWorkPackage.setEnabled(user.isAllowedToAdd(wp, WorkPackage.class));
btnEditWorkPackage.setEnabled(user.isAllowedToEdit(wp));
btnDeleteWorkPackage.setEnabled(user.isAllowedToDelete(wp));
btnLinkWorkPackage.setEnabled(user.isAllowedToEdit(wp));
btnUnlinkWorkPackage.setEnabled(user.isAllowedToEdit(wp));
} else {
btnAddWorkPackage.setEnabled(false);
btnEditWorkPackage.setEnabled(false);
btnDeleteWorkPackage.setEnabled(false);
btnLinkWorkPackage.setEnabled(false);