use of org.kie.workbench.common.screens.library.client.settings.util.sections.Section in project kie-wb-common by kiegroup.
the class SettingsScreenPresenter method setupSection.
Promise<Object> setupSection(final SpaceScreenModel model, final Section<SpaceScreenModel> section) {
return section.setup(model).then(i -> {
sectionManager.resetDirtyIndicator(section);
return promises.resolve();
}).catch_(e -> {
sectionManager.remove(section);
notificationEvent.fire(new NotificationEvent(getSectionSetupErrorMessage(section), WARNING));
return promises.resolve();
});
}
use of org.kie.workbench.common.screens.library.client.settings.util.sections.Section in project kie-wb-common by kiegroup.
the class SettingsPresenter method setupSection.
Promise<Object> setupSection(final ProjectScreenModel model, final Section<ProjectScreenModel> section) {
return section.setup(model).then(i -> {
sectionManager.resetDirtyIndicator(section);
return promises.resolve();
}).catch_(e -> {
sectionManager.remove(section);
notificationEvent.fire(new NotificationEvent(getSectionSetupErrorMessage(section), WARNING));
return promises.resolve();
});
}
Aggregations