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=refs%2Fchanges%2F21%2F4421%2F1;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) {