Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: 43fec27f by Tony Chemit at 2021-03-20T14:01:47+01:00 FIX installCreateNewOpenableAction NPE - - - - - f4bdfee4 by Tony Chemit at 2021-03-20T14:01:50+01:00 FIX ListUI title - - - - - 2 changed files: - client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/list/ContentListUIHandler.java - client/datasource/editor/spi/src/main/java/fr/ird/observe/client/datasource/editor/spi/content/CapabilityDescriptor.java Changes: ===================================== client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/list/ContentListUIHandler.java ===================================== @@ -118,8 +118,7 @@ public abstract class ContentListUIHandler<D extends DataDto, R extends DataDtoR public final void onInit(U ui) { super.onInit(ui); - //FIXME Add this in states ? - //contentTitle='{ContentListUII18nHelper.getListTitle(getStates().getBeanType())}' + ui.getListHeader().setLabelText(getModel().getSource().getScope().getI18nTranslation("list.title")); ui.getEmptyFormInformation().setText(getModel().getSource().getScope().getI18nTranslation("list.message.none")); // set list renderer ListCellRenderer renderer = ui.getList().getCellRenderer(); ===================================== client/datasource/editor/spi/src/main/java/fr/ird/observe/client/datasource/editor/spi/content/CapabilityDescriptor.java ===================================== @@ -127,11 +127,11 @@ public class CapabilityDescriptor { public static final String INSTALL_CREATE_NEW_ACTION_WITH_PREDICATE2 = "" + " installCreateNewOpenableAction(%1$s.class, %2$s.%3$s(ui, %4$s.class), getModel().getSource()::addEmpty%5$s);\n"; public static final String INSTALL_CREATE_NEW_ACTION_WITH_PREDICATE2_LIST = "" + - " installCreateNewOpenableAction(%1$s.class, %2$s.%3$s(ui, %4$s.class), getModel().getSource().get%5$s()::addEmpty%6$s);\n"; + " installCreateNewOpenableAction(%1$s.class, %2$s.%3$s(ui, %4$s.class), () -> getModel().getSource().get%5$s().addEmpty%6$s());\n"; public static final String INSTALL_CREATE_NEW_ACTION2 = "" + " installCreateNewOpenableAction(%1$s.class, t-> true, getModel().getSource()::addEmpty%2$s);\n"; public static final String INSTALL_CREATE_NEW_ACTION2_LIST = "" + - " installCreateNewOpenableAction(%1$s.class, t-> true, getModel().getSource().get%2$s()::addEmpty%3$s);\n"; + " installCreateNewOpenableAction(%1$s.class, t-> true, () -> getModel().getSource().get%2$s().addEmpty%3$s());\n"; private final ContentNodeType contentNodeType; private final CapacityNodeType capacityNodeType; private final String nodeTypeName; View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/3381e95bf0328c9de40b37ba2... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/3381e95bf0328c9de40b37ba2... You're receiving this email because of your account on gitlab.com.