From 5083b11b78afee5758e4325bbdb62997b7af5827 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 21 Aug 2013 11:07:56 +0000 Subject: [PATCH] New graph compiler -generated Resource classes committed where getInstance(Session) has changed to getInstance(RequestProcessor). Please update your graph compilers to 1.1.13.201308191458. refs #4393 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27765 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/JFreeChartResource.java | 3 ++- .../src/org/simantics/sysdyn/SysdynResource.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/org.simantics.jfreechart.ontology/src/org/simantics/sysdyn/JFreeChartResource.java b/org.simantics.jfreechart.ontology/src/org/simantics/sysdyn/JFreeChartResource.java index 543c17dd..88ccbc83 100644 --- a/org.simantics.jfreechart.ontology/src/org/simantics/sysdyn/JFreeChartResource.java +++ b/org.simantics.jfreechart.ontology/src/org/simantics/sysdyn/JFreeChartResource.java @@ -1,5 +1,6 @@ package org.simantics.sysdyn; +import org.simantics.db.RequestProcessor; import org.simantics.db.Resource; import org.simantics.db.ReadGraph; import org.simantics.db.request.Read; @@ -423,7 +424,7 @@ public class JFreeChartResource { return ret; } - public static JFreeChartResource getInstance(Session session) throws DatabaseException { + public static JFreeChartResource getInstance(RequestProcessor session) throws DatabaseException { JFreeChartResource ret = session.peekService(JFreeChartResource.class); if(ret == null) { ret = session.syncRequest(new Read() { diff --git a/org.simantics.sysdyn.ontology/src/org/simantics/sysdyn/SysdynResource.java b/org.simantics.sysdyn.ontology/src/org/simantics/sysdyn/SysdynResource.java index ad3b3f54..dd5bebb8 100644 --- a/org.simantics.sysdyn.ontology/src/org/simantics/sysdyn/SysdynResource.java +++ b/org.simantics.sysdyn.ontology/src/org/simantics/sysdyn/SysdynResource.java @@ -1,5 +1,6 @@ package org.simantics.sysdyn; +import org.simantics.db.RequestProcessor; import org.simantics.db.Resource; import org.simantics.db.ReadGraph; import org.simantics.db.request.Read; @@ -2232,7 +2233,7 @@ public class SysdynResource { return ret; } - public static SysdynResource getInstance(Session session) throws DatabaseException { + public static SysdynResource getInstance(RequestProcessor session) throws DatabaseException { SysdynResource ret = session.peekService(SysdynResource.class); if(ret == null) { ret = session.syncRequest(new Read() { -- 2.47.1