]> gerrit.simantics Code Review - simantics/3d.git/blob
87a3307d099e1ca6380e29f3b44a670c7aa7f5aa
[simantics/3d.git] /
1 package org.simantics.processeditor.handlers;\r
2 \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
7 \r
8 public class Plant3DProjectAdapter implements ResourceAdapter {\r
9         @SuppressWarnings("unchecked")\r
10         @Override\r
11         public <T> T adapt(Graph graph, Resource resource, Resource mia) throws AdaptionException {\r
12                 return (T) new Plant3DProjectType(graph,resource);\r
13         }\r
14 }\r