X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FClusterSetsSupportImpl2.java;h=db28af306b384be7284c9b54741a69e359f2c6db;hp=def2905e362b35d90208a36d131113cb5e32fce0;hb=ffdf837;hpb=d1a82fe1414c77b97bec886d6a3ae3c5d926c334 diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterSetsSupportImpl2.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterSetsSupportImpl2.java index def2905e3..db28af306 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterSetsSupportImpl2.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterSetsSupportImpl2.java @@ -13,8 +13,8 @@ public class ClusterSetsSupportImpl2 implements ClusterSetsSupport, Disposable { final private static boolean DEBUG = false; final private static Map sClusterSets = new HashMap(); - private Path writeDirectory; private Path readDirectory; + private Path writeDirectory; private String databaseId; // Unique identifier for database of session. Initialized in connect. private ClusterSets clusterSets; // Cluster sets for session. Initialized in connect. public ClusterSetsSupportImpl2() { @@ -70,17 +70,17 @@ public class ClusterSetsSupportImpl2 implements ClusterSetsSupport, Disposable { clusterSets.clear(); } @Override - public void updateReadAndWriteDirectories(Path read, Path write) { - setDirectories(read, write); - } - - private void setDirectories(Path readDirectory, Path writeDirectory) { - this.readDirectory = readDirectory; - this.writeDirectory = writeDirectory; + public void updateWriteDirectory(Path write) { + this.writeDirectory = write; if(clusterSets != null) { clusterSets.setWriteDirectory(writeDirectory.toFile()); clusterSets.touch(); } } + @Override + public void setReadDirectory(Path read) { + this.readDirectory = read; + } + }