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;
private String entityType;
+ static enum Property {
+ entityTypes;
+ }
+
@Override
public Control createUi(Composite parent, Node context) throws RepositoryException {
theme = CmsTheme.getCmsTheme(parent);
public void init(Map<String, String> properties) {
// TODO manage multiple entities
- entityType = properties.get(EntityConstants.TYPE);
+ entityType = properties.get(Property.entityTypes.name());
}
class SingleEntityViewer {