]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/impl/SharedOntologyCopyHandler.java
Clean up and support internal seed resources in tg export
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / adapter / impl / SharedOntologyCopyHandler.java
index 16ec6e7cbaac927092d40c3e7ffa33efb3fbbc6f..3c7dfb40a4e5d5f21024683b31c518f5f4065880 100644 (file)
@@ -19,7 +19,8 @@ import org.simantics.db.Resource;
 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 {
 
@@ -38,7 +39,7 @@ 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();
        
     }