From 33b6f68dc3569c76b5c77c88a9ad2d22723a8a7d Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Thu, 3 Sep 2020 09:41:37 +0300 Subject: [PATCH] Opening external editor for GraphFile did not take account data updates. gitlab #595 Change-Id: I700a33abfa2528e60edee479da4d2ae8e398f990 --- .../simantics/document/ui/graphfile/ExternalEditorAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.document.ui/src/org/simantics/document/ui/graphfile/ExternalEditorAdapter.java b/bundles/org.simantics.document.ui/src/org/simantics/document/ui/graphfile/ExternalEditorAdapter.java index 07ed64327..8e60aa735 100644 --- a/bundles/org.simantics.document.ui/src/org/simantics/document/ui/graphfile/ExternalEditorAdapter.java +++ b/bundles/org.simantics.document.ui/src/org/simantics/document/ui/graphfile/ExternalEditorAdapter.java @@ -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) { -- 2.47.1