From: Jussi Koskela Date: Wed, 4 Sep 2019 05:40:57 +0000 (+0300) Subject: Pass graphs as ReadGraph instead of Object for clarity X-Git-Tag: v1.43.0~136^2~82 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f8e677c07ef7385f2771f099bb09faeae6c18f17;p=simantics%2Fplatform.git Pass graphs as ReadGraph instead of Object for clarity gitlab #321 Change-Id: Id061b4d16f95a403a861e3cc06f1980c1a1dab60 --- diff --git a/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java b/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java index d8f83e05f..2fd74b21e 100644 --- a/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java +++ b/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java @@ -151,7 +151,7 @@ public class SCLFunctions { } } - public static T evaluateGraph(String module, String function, Object graph, Object ... args) throws DatabaseException { + public static T evaluateGraph(String module, String function, ReadGraph graph, Object ... args) throws DatabaseException { final SCLContext context = SCLContext.getCurrent(); SCLContext.push(context); Object oldGraph = context.put(GRAPH, graph); @@ -163,7 +163,7 @@ public class SCLFunctions { } } - public static void runWithGraph(Object graph, Runnable r) { + public static void runWithGraph(ReadGraph graph, Runnable r) { final SCLContext context = SCLContext.getCurrent(); SCLContext.push(context); Object oldGraph = context.put(GRAPH, graph);