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