From: villberg Date: Sun, 18 Jul 2010 20:48:37 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16690 ac1ea38d-2e2b... X-Git-Tag: simantics-1.2.0~177 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6191cd92fb659940d70f1e2f7b3afb9fb93890d8;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16690 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java index 43056443..a58e08a5 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java @@ -8,6 +8,7 @@ import java.util.TreeMap; import org.simantics.databoard.Accessors; import org.simantics.databoard.Bindings; +import org.simantics.databoard.Files; import org.simantics.databoard.accessor.Accessor; import org.simantics.databoard.accessor.MapAccessor; import org.simantics.databoard.accessor.RecordAccessor; @@ -48,7 +49,7 @@ public class SysdynResult { this.resultName = result; File file = new File(path); try { - BinaryVariant bv = (BinaryVariant)Accessors.openFile(file); + BinaryVariant bv = (BinaryVariant)Accessors.openAccessor(file); BinaryRecord br = bv.getValueAccessor(); accessor = br; } catch (AccessorConstructionException e) { @@ -113,7 +114,7 @@ public class SysdynResult { if(recordingSession == null) return; try { Binding binding = Bindings.getBinding( recordingSession.getClass() ); - Accessors.createFile(file, binding, recordingSession); + Files.createFile(file, binding, recordingSession); } catch (IOException e) { e.printStackTrace(); } catch (BindingConstructionException e) {