]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16690 ac1ea38d-2e2b...
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sun, 18 Jul 2010 20:48:37 +0000 (20:48 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sun, 18 Jul 2010 20:48:37 +0000 (20:48 +0000)
org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java

index 430564432867841cd421ef743a6446bdda111fe5..a58e08a5c34016f8682668cba20b189a2042dd0a 100644 (file)
@@ -8,6 +8,7 @@ import java.util.TreeMap;
 \r
 import org.simantics.databoard.Accessors;\r
 import org.simantics.databoard.Bindings;\r
+import org.simantics.databoard.Files;\r
 import org.simantics.databoard.accessor.Accessor;\r
 import org.simantics.databoard.accessor.MapAccessor;\r
 import org.simantics.databoard.accessor.RecordAccessor;\r
@@ -48,7 +49,7 @@ public class SysdynResult {
         this.resultName = result;\r
         File file = new File(path);\r
         try {\r
-            BinaryVariant bv = (BinaryVariant)Accessors.openFile(file);\r
+            BinaryVariant bv = (BinaryVariant)Accessors.openAccessor(file);\r
             BinaryRecord br = bv.getValueAccessor();\r
             accessor = br;\r
          } catch (AccessorConstructionException e) {\r
@@ -113,7 +114,7 @@ public class SysdynResult {
         if(recordingSession == null) return;\r
         try {\r
             Binding binding = Bindings.getBinding( recordingSession.getClass() );\r
-            Accessors.createFile(file, binding, recordingSession);\r
+            Files.createFile(file, binding, recordingSession);\r
         } catch (IOException e) {\r
             e.printStackTrace();\r
         } catch (BindingConstructionException e) {\r