JAL-4416 ensure the structure view is shown and any added annotation is displayed
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 15 May 2024 15:53:18 +0000 (16:53 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 15 May 2024 15:53:18 +0000 (16:53 +0100)
src/jalview/gui/StructureChooser.java

index 851bd32..170e76a 100644 (file)
@@ -1347,7 +1347,7 @@ public class StructureChooser extends GStructureChooser
           // TODO - tidy up this ugly hack so we call launchStructureViewer too
           StructureChooser.openStructureFileForSequence(ssm, sc, ap,
                   selectedSequence, true, pdbFilename, tft, paeFilename,false,
-                  true,true,getTargetedStructureViewer(ssm).getViewerType());
+                  true,false,getTargetedStructureViewer(ssm).getViewerType());
         }
         SwingUtilities.invokeLater(new Runnable()
         {
@@ -1856,6 +1856,7 @@ public class StructureChooser extends GStructureChooser
       sv = sc.launchStructureViewer(ssm, new PDBEntry[] { fileEntry }, ap,
               new SequenceI[]
               { seq }, viewerType);
+      sv.getJalviewStructureDisplay().raiseViewer();
     }
 
     sc.mainFrame.dispose();