JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / ws / jws2 / jabaws2 / Jws2Instance.java
index e092192..a4e2e75 100644 (file)
@@ -38,7 +38,7 @@ import compbio.data.msa.SequenceAnnotation;
 import compbio.metadata.PresetManager;
 import compbio.metadata.RunnerConfig;
 
-public class Jws2Instance implements AutoCloseable
+public class Jws2Instance
 {
   public String hosturl;
 
@@ -164,7 +164,7 @@ public class Jws2Instance implements AutoCloseable
   }
 
   @Override
-  public void close()
+  protected void finalize() throws Throwable
   {
     if (service != null)
     {
@@ -176,7 +176,7 @@ public class Jws2Instance implements AutoCloseable
         // ignore
       }
     }
-    // super.finalize();
+    super.finalize();
   }
 
   public ParamDatastoreI getParamStore()
@@ -186,7 +186,7 @@ public class Jws2Instance implements AutoCloseable
       try
       {
         paramStore = new JabaParamStore(this,
-                (Desktop.instance != null ? Desktop.getUserParameterStore()
+                (Desktop.getInstance() != null ? Desktop.getUserParameterStore()
                         : null));
       } catch (Exception ex)
       {