JAL-3904 simple method to make an alignPanel the currently viewed one in the alignframe
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 2 Dec 2021 11:22:54 +0000 (11:22 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 2 Dec 2021 11:22:54 +0000 (11:22 +0000)
src/jalview/gui/AlignmentPanel.java

index 45e4b95..35b19c1 100644 (file)
@@ -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()
   {