placeholder: use identifier to look up human-readable names from ResourceBundle instead of if/elsing on classes

(e.g. `resourceBundle.getString(identifier() + ".name")`)

TODO @infeo
This commit is contained in:
Sebastian Stenzel
2021-05-21 17:55:39 +02:00
parent e134d2f422
commit 944e3e6c50
@@ -26,7 +26,7 @@ class CheckListCell extends ListCell<HealthCheckTask> {
super.updateItem(item, empty);
if (item != null) {
setText(item.getTitle());
setText(item.getCheck().identifier()); // TODO lookup l18n key
item.stateProperty().addListener(this::stateChanged);
setGraphic(graphicForState(item.getState()));
stateIcon.setGlyph(glyphForState(item.getState()));