From db06b57ef3e37b14c301d3de57291b5de153f893 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 22 Aug 2012 19:20:35 +0000 Subject: [PATCH] SplittingWriteGraph and WriteGraphProxy went out of date after ReadGraph.isImmutable(Resource) was added. refs #3619 git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@25498 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../interop/mapping/SplittingWriteGraph.java | 14 ++++++++++++++ .../simantics/interop/mapping/WriteGraphProxy.java | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java index a91c8c0..791ab0a 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java @@ -6183,4 +6183,18 @@ public class SplittingWriteGraph implements WriteGraph { return null; } + @Override + public boolean isImmutable(final Resource resource) throws DatabaseException { + try { + return session.syncRequest(new Read() { + @Override + public Boolean perform(ReadGraph graph) throws DatabaseException { + return graph.isImmutable(resource); + } + }); + } catch (DatabaseException e) { + throw new ServiceException(e); + } + } + } diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java index cefc761..204d801 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java @@ -2742,4 +2742,9 @@ public class WriteGraphProxy implements WriteGraph { return graph.getProvider(); } + @Override + public boolean isImmutable(Resource resource) throws DatabaseException { + return graph.isImmutable(resource); + } + } -- 2.47.1