1 package fi.vtt.simantics.processeditor.handlers;
\r
3 import org.simantics.db.Graph;
\r
4 import org.simantics.db.Resource;
\r
5 import org.simantics.db.adaption.AdaptionException;
\r
6 import org.simantics.db.adaption.ResourceAdapter;
\r
8 public class Plant3DProjectAdapter implements ResourceAdapter {
\r
9 @SuppressWarnings("unchecked")
\r
11 public <T> T adapt(Graph graph, Resource resource, Resource mia) throws AdaptionException {
\r
12 return (T) new Plant3DProjectType(graph,resource);
\r