From 1221a25791c993a64c03e91f7b4608efe590d26f Mon Sep 17 00:00:00 2001 From: jkauttio Date: Thu, 4 Sep 2014 10:27:51 +0000 Subject: [PATCH] Add a shorthand for model write refs #5197 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30206 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/modelImport/model/Model.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/model/Model.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/model/Model.java index 14a82c80..5bfd82ae 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/model/Model.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/model/Model.java @@ -156,6 +156,10 @@ public class Model implements IWriteableObject { public Collection getFunctions() { return functions.values(); } + + public Resource write(WriteGraph graph, Resource project) throws DatabaseException { + return write(graph, project, new WriteContext()); + } @Override public Resource write(WriteGraph graph, Resource parent, WriteContext context) throws DatabaseException { -- 2.47.1