From 840204286baa36421749534e8c3e6935b5a6e564 Mon Sep 17 00:00:00 2001 From: Bogdan Bondar Date: Tue, 23 Mar 2021 18:48:15 +0100 Subject: [PATCH] adapted ui initialization for custom theme example according to restructured ui error handling Signed-off-by: Bogdan Bondar --- .../main/java/org/eclipse/hawkbit/app/MyUI.java | 14 ++++++++------ pom.xml | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hawkbit-custom-theme-example/src/main/java/org/eclipse/hawkbit/app/MyUI.java b/hawkbit-custom-theme-example/src/main/java/org/eclipse/hawkbit/app/MyUI.java index 8e4b1b7..416e889 100644 --- a/hawkbit-custom-theme-example/src/main/java/org/eclipse/hawkbit/app/MyUI.java +++ b/hawkbit-custom-theme-example/src/main/java/org/eclipse/hawkbit/app/MyUI.java @@ -1,4 +1,5 @@ package org.eclipse.hawkbit.app; + /** * Copyright (c) 2015 Bosch Software Innovations GmbH and others. * @@ -23,6 +24,7 @@ import com.vaadin.annotations.Push; import com.vaadin.annotations.Theme; import com.vaadin.annotations.Title; +import com.vaadin.server.ErrorHandler; import com.vaadin.shared.communication.PushMode; import com.vaadin.shared.ui.ui.Transport; import com.vaadin.spring.annotation.SpringUI; @@ -46,11 +48,11 @@ public class MyUI extends AbstractHawkbitUI { private static final long serialVersionUID = 1L; @Autowired - MyUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus, final UIEventProvider eventProvider, final SpringViewProvider viewProvider, - final ApplicationContext context, final DashboardMenu dashboardMenu, final ErrorView errorview, - final NotificationUnreadButton notificationUnreadButton, final UiProperties uiProperties, - final VaadinMessageSource i18n) { - super(pushStrategy, eventBus, eventProvider, viewProvider, context, dashboardMenu, errorview, notificationUnreadButton, - uiProperties, i18n); + MyUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus, final UIEventProvider eventProvider, + final SpringViewProvider viewProvider, final ApplicationContext context, final DashboardMenu dashboardMenu, + final ErrorView errorview, final NotificationUnreadButton notificationUnreadButton, + final UiProperties uiProperties, final VaadinMessageSource i18n, final ErrorHandler uiErrorHandler) { + super(pushStrategy, eventBus, eventProvider, viewProvider, context, dashboardMenu, errorview, + notificationUnreadButton, uiProperties, i18n, uiErrorHandler); } } diff --git a/pom.xml b/pom.xml index ab2bd4c..ce1526b 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ org.eclipse.hawkbit hawkbit-parent - 0.3.0M7 + 0.3.0M8 hawkbit-examples-parent @@ -47,7 +47,7 @@ - 0.3.0M7 + 0.3.0M8 10.1.0