1 package org.simantics.export.core.intf;
3 import java.util.Collection;
6 import org.eclipse.jface.resource.ImageDescriptor;
7 import org.simantics.export.core.ExportContext;
8 import org.simantics.export.core.error.ExportException;
11 * Content Type extension
13 * @author toni.kalajainen@semantum.fi
15 public interface ContentType extends ContentTypeAction {
18 * The identifier for the content type.
24 * The ui label for the content type.
30 * The ui label for the content type in plural.
36 * Content-based icon for a content entity of this content type.
40 ImageDescriptor icon(String contentUri);
43 * Fixed icon for the content type
44 * @return (Optional) icon
46 ImageDescriptor icon();
49 * Returns true if the content type is a model type.
55 * Read labels for a collection of contents
60 * @throws ExportException if failed to get a label
62 Map<String, String> getLabels( ExportContext ctx, Collection<String> contents ) throws ExportException;