]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Add a shorthand for model write
authorjkauttio <jkauttio@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 4 Sep 2014 10:27:51 +0000 (10:27 +0000)
committerjkauttio <jkauttio@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 4 Sep 2014 10:27:51 +0000 (10:27 +0000)
refs #5197

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30206 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/modelImport/model/Model.java

index 14a82c8083acb06f5cc8b4f0d60bdd77cbf56bbf..5bfd82ae944db5215df9081c4fc0611d1c067d86 100644 (file)
@@ -156,6 +156,10 @@ public class Model implements IWriteableObject {
        public Collection<Function> getFunctions() {\r
                return functions.values();\r
        }\r
+       \r
+       public Resource write(WriteGraph graph, Resource project) throws DatabaseException {\r
+               return write(graph, project, new WriteContext());\r
+       }\r
 \r
        @Override\r
        public Resource write(WriteGraph graph, Resource parent, WriteContext context) throws DatabaseException {\r