From 5bb42b3567011fac02bc8b4bc2116d1b87af9763 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 12 Nov 2024 15:37:59 +0000 Subject: [PATCH] JAL-4077 additional trace output to help track down temporary files saved/loaded for sesions --- src/jalview/project/Jalview2XML.java | 2 ++ src/jalview/structures/models/AAStructureBindingModel.java | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index afcd450..43f795e 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -3670,6 +3670,8 @@ public class Jalview2XML copyAll(jin, os); } String t = outFile.getAbsolutePath(); + Console.trace("Successfully extracted "+jarEntryName+" as local temporary file: "+outFile.getCanonicalPath()+" (using template "+suffixModel+")"); + return t; } else diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index dc3cc1e..4b87d3e 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -1572,12 +1572,17 @@ public abstract class AAStructureBindingModel */ protected void saveSession(File f) { + try { + Console.trace("Saving session to "+f.getCanonicalPath().toString()); + } catch (Exception foo) {}; StructureCommandI cmd = commandGenerator.saveSession(f.getPath()); if (cmd != null) { - executeCommand(cmd, false); + executeCommand(cmd, true); } - } + try { + Console.trace("Done saving session to "+f.getCanonicalPath().toString()); + } catch (Exception foo) {}; } /** * Returns true if the viewer is an external structure viewer for which the -- 1.7.10.2