]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.ui/src/org/simantics/document/ui/graphfile/ExternalEditorAdapter.java
Opening external editor for GraphFile did not take account data updates.
[simantics/platform.git] / 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) {