]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterSetsSupportImpl2.java
Sync git svn branch with SVN repository r33249.
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / ClusterSetsSupportImpl2.java
index def2905e362b35d90208a36d131113cb5e32fce0..db28af306b384be7284c9b54741a69e359f2c6db 100644 (file)
@@ -13,8 +13,8 @@ public class ClusterSetsSupportImpl2 implements ClusterSetsSupport, Disposable {
 \r
     final private static boolean DEBUG = false;\r
     final private static Map<String, ClusterSets> sClusterSets = new HashMap<String, ClusterSets>();\r
-    private Path writeDirectory;\r
     private Path readDirectory;\r
+    private Path writeDirectory;\r
     private String databaseId; // Unique identifier for database of session. Initialized in connect. \r
     private ClusterSets clusterSets; // Cluster sets for session. Initialized in connect.\r
     public ClusterSetsSupportImpl2() {\r
@@ -70,17 +70,17 @@ public class ClusterSetsSupportImpl2 implements ClusterSetsSupport, Disposable {
        clusterSets.clear();\r
     }\r
     @Override\r
-    public void updateReadAndWriteDirectories(Path read, Path write) {\r
-        setDirectories(read, write);\r
-    }\r
-    \r
-    private void setDirectories(Path readDirectory, Path writeDirectory) {\r
-        this.readDirectory = readDirectory;\r
-        this.writeDirectory = writeDirectory;\r
+    public void updateWriteDirectory(Path write) {\r
+        this.writeDirectory = write;\r
         if(clusterSets != null) {\r
             clusterSets.setWriteDirectory(writeDirectory.toFile());\r
             clusterSets.touch();\r
         }\r
     }\r
 \r
+    @Override\r
+    public void setReadDirectory(Path read) {\r
+        this.readDirectory = read;\r
+    }\r
+\r
 }\r