Stabilise entity types.
[gpl/argeo-suite.git] / org.argeo.suite.ui / src / org / argeo / suite / ui / RecentItems.java
index bbe53b77c26af3aba62ff1f82afaa8601a5357ea..b9aa5b721784ecc309dcd943ff2a495d4eb94fe8 100644 (file)
@@ -20,7 +20,6 @@ import org.argeo.cms.ui.CmsUiProvider;
 import org.argeo.cms.ui.CmsView;
 import org.argeo.cms.ui.util.CmsUiUtils;
 import org.argeo.eclipse.ui.EclipseUiUtils;
-import org.argeo.entity.EntityConstants;
 import org.argeo.entity.EntityType;
 import org.argeo.jcr.Jcr;
 import org.argeo.jcr.JcrUtils;
@@ -61,6 +60,10 @@ public class RecentItems implements CmsUiProvider {
 
        private String entityType;
 
+       static enum Property {
+               entityTypes;
+       }
+
        @Override
        public Control createUi(Composite parent, Node context) throws RepositoryException {
                theme = CmsTheme.getCmsTheme(parent);
@@ -129,7 +132,7 @@ public class RecentItems implements CmsUiProvider {
 
        public void init(Map<String, String> properties) {
                // TODO manage multiple entities
-               entityType = properties.get(EntityConstants.TYPE);
+               entityType = properties.get(Property.entityTypes.name());
        }
 
        class SingleEntityViewer {