]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/src/org/simantics/modeling/ContentDumps.java
Improved shared library structure dump to take more types into account
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / ContentDumps.java
index bc3b65a036154788dc2e0887eb9e940c7b73377b..687544e78a52d99306436408d0211f23fa157157 100644 (file)
@@ -30,6 +30,12 @@ public class ContentDumps {
         return def.getBytes(UTF8);
     }
 
+    public static byte[] sclScriptContentDump(ReadGraph graph, Resource resource) throws DatabaseException {
+        Layer0 L0 = Layer0.getInstance(graph);
+        String def = graph.getRelatedValue(resource, L0.SCLScript_definition, Bindings.STRING); 
+        return def.getBytes(UTF8);
+    }
+
     public static byte[] pgraphContentDump(ReadGraph graph, Resource resource) throws DatabaseException {
         Layer0 L0 = Layer0.getInstance(graph);
         String def = graph.getRelatedValue(resource, L0.PGraph_definition, Bindings.STRING);