X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FPymolBindingModel.java;h=fc957bb6e4f55520c07706802d29a2c7a7812965;hb=d85a2741994c169e1b81db8f9166f5214ff1f561;hp=fcf586a261f57d8ac01ed9151e04dd2c78d463fd;hpb=74e963518532e173a8b026bf0de00993ab678ad0;p=jalview.git diff --git a/src/jalview/gui/PymolBindingModel.java b/src/jalview/gui/PymolBindingModel.java index fcf586a..fc957bb 100644 --- a/src/jalview/gui/PymolBindingModel.java +++ b/src/jalview/gui/PymolBindingModel.java @@ -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)