From 6b2dfe29409d0064c70554cd95fde1f610741419 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 2 Dec 2021 11:22:54 +0000 Subject: [PATCH] JAL-3904 simple method to make an alignPanel the currently viewed one in the alignframe --- src/jalview/gui/AlignmentPanel.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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() { -- 1.7.10.2