From c9de7d22f36c8866959c8c3ddbad72c2fa841f32 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 29 Jun 2020 11:04:05 +0100 Subject: [PATCH] JAL-3518 corrected pulled up focusView() command --- src/jalview/gui/ChimeraViewFrame.java | 6 ------ src/jalview/jbgui/GStructureViewer.java | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/jalview/gui/ChimeraViewFrame.java b/src/jalview/gui/ChimeraViewFrame.java index 5fd185d..810f40d 100644 --- a/src/jalview/gui/ChimeraViewFrame.java +++ b/src/jalview/gui/ChimeraViewFrame.java @@ -536,12 +536,6 @@ public class ChimeraViewFrame extends StructureViewerBase } @Override - protected void fitToWindow_actionPerformed() - { - jmb.focusView(); - } - - @Override public ViewerType getViewerType() { return ViewerType.CHIMERA; diff --git a/src/jalview/jbgui/GStructureViewer.java b/src/jalview/jbgui/GStructureViewer.java index 73180ee..4e13032 100644 --- a/src/jalview/jbgui/GStructureViewer.java +++ b/src/jalview/jbgui/GStructureViewer.java @@ -214,6 +214,7 @@ public abstract class GStructureViewer extends JInternalFrame protected void fitToWindow_actionPerformed() { + getBinding().focusView(); } protected void highlightSelection_actionPerformed() -- 1.7.10.2