JAL-3551 pull up Close Viewer dialog to base class
[jalview.git] / src / jalview / gui / PymolBindingModel.java
index fcf586a..fc957bb 100644 (file)
@@ -129,14 +129,16 @@ public class PymolBindingModel extends AAStructureBindingModel
     return ViewerType.PYMOL;
   }
 
-  public boolean isPymolRunning()
+  @Override
+  public boolean isViewerRunning()
   {
     return pymolManager.isPymolLaunched();
   }
 
+  @Override
   public void closeViewer(boolean closePymol)
   {
-    getSsm().removeStructureViewerListener(this, this.getStructureFiles());
+    super.closeViewer(closePymol);
     if (closePymol)
     {
       pymolManager.exitPymol();
@@ -147,7 +149,6 @@ public class PymolBindingModel extends AAStructureBindingModel
     {
       pymolMonitor.interrupt();
     }
-    releaseUIResources();
   }
 
   public boolean openSession(String pymolSessionFile)