From 29d8b4c32cede03db76d47e3f0e02306c354e0ce Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Sun, 5 Mar 2023 01:37:02 +0100 Subject: [PATCH] add input widget to UI SitemapProviderImpl Signed-off-by: Mark Herwege --- .../ui/internal/components/UIComponentSitemapProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java index 5f4e7c36763..577f8228e9a 100644 --- a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java +++ b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java @@ -45,6 +45,7 @@ import org.openhab.core.model.sitemap.sitemap.impl.FrameImpl; import org.openhab.core.model.sitemap.sitemap.impl.GroupImpl; import org.openhab.core.model.sitemap.sitemap.impl.ImageImpl; +import org.openhab.core.model.sitemap.sitemap.impl.InputImpl; import org.openhab.core.model.sitemap.sitemap.impl.ListImpl; import org.openhab.core.model.sitemap.sitemap.impl.MappingImpl; import org.openhab.core.model.sitemap.sitemap.impl.MapviewImpl; @@ -236,6 +237,10 @@ protected Sitemap buildSitemap(RootUIComponent rootComponent) { addWidgetMappings(selectionWidget.getMappings(), component); widget = selectionWidget; break; + case "Input": + InputImpl inputWidget = (InputImpl) SitemapFactory.eINSTANCE.createInput(); + widget = inputWidget; + break; case "List": ListImpl listWidget = (ListImpl) SitemapFactory.eINSTANCE.createList(); widget = listWidget;