From: Jim Procter Date: Wed, 15 May 2024 15:53:18 +0000 (+0100) Subject: JAL-4416 ensure the structure view is shown and any added annotation is displayed X-Git-Tag: Release_2_11_4_0~39^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e4fb2f7856752c156a8e013050835489210dffa7;p=jalview.git JAL-4416 ensure the structure view is shown and any added annotation is displayed --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 851bd32..170e76a 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -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();