X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2FAbstractCmsApp.java;h=77cd9838305b1c14dfc2ace95a06b887a4e2b27b;hb=c5d120d226b31b3d930fc3006c56ac9e4d29ed2a;hp=98f9adfa0db822e3ea00ee4699ab211e2a7480c5;hpb=ebdd232d5f7d14000c423caede5cf2b0248b234a;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/AbstractCmsApp.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/AbstractCmsApp.java index 98f9adfa0..77cd98383 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/AbstractCmsApp.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/AbstractCmsApp.java @@ -5,7 +5,6 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Set; import javax.jcr.Repository; @@ -19,12 +18,6 @@ public abstract class AbstractCmsApp implements CmsApp { private Repository repository; - @Override - public Set getUiNames() { - // TODO Auto-generated method stub - return null; - } - protected abstract String getThemeId(String uiName); @Override @@ -32,10 +25,13 @@ public abstract class AbstractCmsApp implements CmsApp { String themeId = getThemeId(uiName); if (themeId == null) return null; + if (!themes.containsKey(themeId)) + throw new IllegalArgumentException("Theme " + themeId + " not found."); return themes.get(themeId); } - protected boolean allThemesAvailable() { + @Override + public boolean allThemesAvailable() { boolean themeMissing = false; uiNames: for (String uiName : getUiNames()) { String themeId = getThemeId(uiName);