Prepare next development cycle
[gpl/argeo-suite.git] / swt / org.argeo.app.swt / src / org / argeo / app / swt / ux / SwtAppUi.java
index 30053033b9c5d7b6fe66d760b78444ec3ef606ac..9654a8ed81c67a8ee68e5e7c8565b7e773161c09 100644 (file)
@@ -16,6 +16,10 @@ import org.eclipse.swt.widgets.Composite;
 
 /** The view for the default UX of Argeo Suite. */
 public class SwtAppUi extends CmsSwtUi implements AppUi {
+       static enum Structural {
+               header, footer, leadPane, sidePane, loginScreen, adminLeadPane;
+       }
+
        private static final long serialVersionUID = 6207018859086689108L;
        private final static CmsLog log = CmsLog.getLog(SwtAppUi.class);
 
@@ -149,6 +153,11 @@ public class SwtAppUi extends CmsSwtUi implements AppUi {
        }
 
        public void addLayer(String id, SwtAppLayer layer) {
+               if (!id.equals(layer.getId())) {
+                       log.error("Layer id as key '" + id + "' is not consistent with layer id '" + layer.getId()
+                                       + "', ignoring...");
+                       return;
+               }
                layers.put(id, layer);
        }