From e4fb2f7856752c156a8e013050835489210dffa7 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 15 May 2024 16:53:18 +0100 Subject: [PATCH] JAL-4416 ensure the structure view is shown and any added annotation is displayed --- src/jalview/gui/StructureChooser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 1.7.10.2