import org.simantics.db.exception.DatabaseException;
import org.simantics.db.layer0.util.TGConfigurer;
import org.simantics.db.layer0.util.TransferableGraphConfiguration2;
-import org.simantics.db.layer0.util.TransferableGraphConfiguration2.RootSpec;
+import org.simantics.db.layer0.util.TransferableGraphConfiguration2.SeedSpec;
+import org.simantics.db.layer0.util.TransferableGraphConfiguration2.SeedSpec.SeedSpecType;
public class SharedOntologyCopyHandler extends DefaultCopyHandler {
Resource root = resources.iterator().next();
String uri = graph.getURI(root);
- Collection<RootSpec> roots = Collections.singletonList(new RootSpec(root, uri, true));
+ Collection<SeedSpec> roots = Collections.singletonList(new SeedSpec(root, uri, SeedSpecType.ROOT));
return new TGConfigurer(graph, true, false).roots(roots).create();
}