From: jkauttio Date: Thu, 4 Sep 2014 10:27:51 +0000 (+0000) Subject: Add a shorthand for model write X-Git-Tag: v1.29.0~195 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=1221a25791c993a64c03e91f7b4608efe590d26f;p=simantics%2Fsysdyn.git 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 --- 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 {