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=33950652cff5957b8fa6bdea13d05b57b805462d;hp=def2905e362b35d90208a36d131113cb5e32fce0;hb=5930811a7911090a0c4984380c3b45ed81a93cde;hpb=969bd23cab98a79ca9101af33334000879fb60c5 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..33950652c 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,22 @@ 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; + } + + @Override + public void setReadDirectory(Path read) { + this.readDirectory = read; + } }