Fully implements state support.
[gpl/argeo-suite.git] / org.argeo.suite.ui / src / org / argeo / suite / ui / RecentItems.java
index 5c6fa0de79a754a11cde4d08ee8c74ddd008f038..bbe53b77c26af3aba62ff1f82afaa8601a5357ea 100644 (file)
@@ -20,6 +20,7 @@ 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;
@@ -56,10 +57,6 @@ public class RecentItems implements CmsUiProvider {
        private final static int SEARCH_TEXT_DELAY = 800;
        private final static int SEARCH_DEFAULT_LIMIT = 100;
 
-       public static enum Property {
-               entityTypes;
-       }
-
        private CmsTheme theme;
 
        private String entityType;
@@ -132,7 +129,7 @@ public class RecentItems implements CmsUiProvider {
 
        public void init(Map<String, String> properties) {
                // TODO manage multiple entities
-               entityType = properties.get(Property.entityTypes.name());
+               entityType = properties.get(EntityConstants.TYPE);
        }
 
        class SingleEntityViewer {