throw new RuntimeException("Could not find the criterion " + criterion);
}
public void saveCriterionSatisfaction() {
Criterion choosenCriterion = getChoosenCriterion();
CriterionWithItsType criterionWithItsType = fromCriterionToType
.get(choosenCriterion);
satisfactionEdited.setCriterion(choosenCriterion);
AddingSatisfactionResult addSatisfaction = workerModel.addSatisfaction(
criterionWithItsType.getType(), originalSatisfaction,
satisfactionEdited);
switch (addSatisfaction) {
case OK:
messagesForUser.showMessage(Level.INFO, _("Time period saved"));
this.workerCRUDController.goToEditForm();