From 2d60b6301c529166c61075cab1bc6fec36b4ed30 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sat, 9 Apr 2022 08:29:27 +0200 Subject: [PATCH] Revert "Temporarily disable recognition of standard Map layer." This reverts commit 97055245ef1ad8a2ee9ed8d6e26110ee11b05ea1. --- org.argeo.app.ui/config/mapLayer.properties | 2 +- org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/org.argeo.app.ui/config/mapLayer.properties b/org.argeo.app.ui/config/mapLayer.properties index b03787d..37bf3c7 100644 --- a/org.argeo.app.ui/config/mapLayer.properties +++ b/org.argeo.app.ui/config/mapLayer.properties @@ -3,4 +3,4 @@ service.pid=argeo.geo.ui.mapLayer title=%map icon=map -#entity.type=entity:geopoint +entity.type=entity:geopoint diff --git a/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java b/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java index 4c4f1bb..e4d40cf 100644 --- a/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java +++ b/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java @@ -321,7 +321,6 @@ public class SuiteApp extends AbstractCmsApp implements EventHandler { if (types.size() == 0) throw new IllegalArgumentException("No type found for " + context + " (" + listTypes(context) + ")"); String type = types.iterator().next(); - // FIXME deals with multiple types if (!byType.containsKey(type)) throw new IllegalArgumentException("No component found for " + context + " with type " + type); return byType.get(type).get(); -- 2.30.2