1 package org.simantics.export.core.impl;
3 import java.util.Collection;
4 import java.util.HashMap;
7 import org.simantics.db.exception.DatabaseException;
8 import org.simantics.export.core.ExportContext;
9 import org.simantics.export.core.error.ExportException;
10 import org.simantics.export.core.intf.ContentTypeAction;
11 import org.simantics.export.core.util.ExportQueries;
13 public class DefaultContentTypeAction implements ContentTypeAction {
16 public Map<String, String> getLabels( ExportContext ctx, Collection<String> contents) throws ExportException {
18 Map<String, String> labels = new HashMap<String, String>();
19 labels.putAll( ctx.session.syncRequest( ExportQueries.labels( contents ) ) );
21 } catch (DatabaseException e) {
22 throw new ExportException(e);