]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Opening external editor for GraphFile did not take account data updates. 21/4421/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 3 Sep 2020 06:41:37 +0000 (09:41 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 3 Sep 2020 06:41:37 +0000 (09:41 +0300)
gitlab #595

Change-Id: I700a33abfa2528e60edee479da4d2ae8e398f990

bundles/org.simantics.document.ui/src/org/simantics/document/ui/graphfile/ExternalEditorAdapter.java

index 07ed6432771cced743a3a1ac5e17f3c7478c913c..8e60aa7352065ce8fbe7286a05eeaeac19114512 100644 (file)
@@ -82,7 +82,7 @@ public class ExternalEditorAdapter extends AbstractResourceEditorAdapter impleme
                     }
                     sb.append(graph.getRelatedValue(input, Layer0.getInstance(graph).HasName).toString());
                     Path filePath = Activator.getInstanceLocation().resolve(sb.toString());
-                    tempFiles.computeIfAbsent(filePath, t -> {
+                    tempFiles.compute(filePath, (t,y) -> {
                         try {
                             GraphFileUtil.writeDataToFile(graph, input, filePath.toFile());
                         } catch (IOException | DatabaseException e) {