import org.eclipse.jface.resource.ImageDescriptor;\r
import org.eclipse.jface.viewers.ISelection;\r
import org.simantics.browsing.ui.content.Labeler.Modifier;\r
-import org.simantics.db.Builtins;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.Session;\r
import org.eclipse.jface.resource.ImageDescriptor;\r
import org.eclipse.jface.viewers.ISelection;\r
import org.simantics.browsing.ui.content.Labeler.Modifier;\r
-import org.simantics.db.Builtins;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.Session;\r
import java.util.List;\r
import java.util.Stack;\r
\r
-import org.simantics.db.Builtins;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.Statement;\r
import org.simantics.db.exception.ManyObjectsForFunctionalRelationException;\r
import org.simantics.db.exception.ServiceException;\r
import org.simantics.db.exception.ValidationException;\r
+import org.simantics.layer0.Layer0;\r
import org.simantics.layer0.utils.direct.GraphUtils;\r
import org.simantics.utils.datastructures.BijectionMap;\r
import org.simantics.utils.datastructures.MapList;\r
// runtime attributes\r
\r
private ReadGraph g;\r
- private Builtins b;\r
+ private Layer0 b;\r
\r
ArrayList<Resource> rs1 = new ArrayList<Resource>();\r
ArrayList<Resource> rs2 = new ArrayList<Resource>();\r
\r
public void test(ReadGraph g, Resource r1, Resource r2) throws ServiceException, DoesNotContainValueException, ValidationException {\r
this.g = g;\r
- this.b = g.getBuiltins();\r
+ this.b = Layer0.getInstance(g);\r
\r
changes1.clear();\r
changes2.clear();\r
import org.simantics.db.exception.ValidationException;\r
import org.simantics.db.request.Read;\r
import org.simantics.db.service.SerialisationSupport;\r
+import org.simantics.layer0.Layer0;\r
import org.simantics.layer0.utils.direct.GraphUtils;\r
import org.simantics.ui.SimanticsUI;\r
import org.simantics.ui.dnd.LocalObjectTransfer;\r
@Override\r
public void run(final ReadGraph graph) throws DatabaseException {\r
comparator.clearRels();\r
- comparator.addTraversed(graph.getBuiltins().ConsistsOf);\r
- comparator.addTested(graph.getBuiltins().IsWeaklyRelatedTo);\r
+ Layer0 l0 = Layer0.getInstance(graph);\r
+ comparator.addTraversed(l0.ConsistsOf);\r
+ comparator.addTested(l0.IsWeaklyRelatedTo);\r
comparator.test(graph, r1, r2);\r
BijectionMap<Statement, Statement> map = comparator.getComparable();\r
Map<Statement, Integer> indices = new HashMap<Statement, Integer>();\r