From: Jim Procter Date: Thu, 2 Dec 2021 11:22:54 +0000 (+0000) Subject: JAL-3904 simple method to make an alignPanel the currently viewed one in the alignframe X-Git-Tag: Release_2_11_2_0~21^2~1^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6b2dfe29409d0064c70554cd95fde1f610741419;p=jalview.git JAL-3904 simple method to make an alignPanel the currently viewed one in the alignframe --- diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 45e4b95..35b19c1 100644 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -1541,13 +1541,16 @@ public class AlignmentPanel extends GAlignmentPanel implements } catch (Exception ex) { } - if (b) { - alignFrame.setDisplayedView(this); + setAlignFrameView(); } } - + public void setAlignFrameView() + { + alignFrame.setDisplayedView(this); + } + @Override public StructureSelectionManager getStructureSelectionManager() {