JAL-4077 additional trace output to help track down temporary files saved/loaded...
authorJim Procter <jprocter@dundee.ac.uk>
Tue, 12 Nov 2024 15:37:59 +0000 (15:37 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Tue, 12 Nov 2024 15:37:59 +0000 (15:37 +0000)
src/jalview/project/Jalview2XML.java
src/jalview/structures/models/AAStructureBindingModel.java

index afcd450..43f795e 100644 (file)
@@ -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
index dc3cc1e..4b87d3e 100644 (file)
@@ -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