ot.save();
}
catch(Exception e) {
logger.error("Exception while trying to save object template: " + e.getLocalizedMessage(), e);
alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
.getLocalizedMessage()));
}
}
else {
logger.warn("Object property already exists for: " + selectedObject);
alertService
.addAlert(new Alert(
Alert.Type.WARN,
this.getClass().getSimpleName(),
Messages
.getString("object.instance.editor.action.object_data.create_property.error.property_already_exists.text")));
}
}
else {
logger.warn("No selected object!");
alertService
.addAlert(new Alert(
Alert.Type.WARN,
this.getClass().getSimpleName(),
Messages
.getString("object.instance.editor.action.object_data.create_property.error.no_selected_object.text")));
}