From: Mathieu Baudier Date: Thu, 7 Apr 2022 09:31:31 +0000 (+0200) Subject: Temporarily disable recognition of standard Map layer. X-Git-Tag: v2.3.8~126 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;ds=sidebyside;h=97055245ef1ad8a2ee9ed8d6e26110ee11b05ea1;p=gpl%2Fargeo-suite.git Temporarily disable recognition of standard Map layer. --- 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();