From 97055245ef1ad8a2ee9ed8d6e26110ee11b05ea1 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Thu, 7 Apr 2022 11:31:31 +0200 Subject: [PATCH] Temporarily disable recognition of standard Map layer. --- org.argeo.app.ui/config/mapLayer.properties | 2 +- org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/org.argeo.app.ui/config/mapLayer.properties b/org.argeo.app.ui/config/mapLayer.properties index 37bf3c7..b03787d 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 e4d40cf..4c4f1bb 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,6 +321,7 @@ 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