From: Marko Luukkainen Date: Thu, 3 Sep 2020 06:41:37 +0000 (+0300) Subject: Opening external editor for GraphFile did not take account data updates. X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=33b6f68dc3569c76b5c77c88a9ad2d22723a8a7d;p=simantics%2Fplatform.git Opening external editor for GraphFile did not take account data updates. gitlab #595 Change-Id: I700a33abfa2528e60edee479da4d2ae8e398f990 --- 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) {